Point to grow and shrink by using gl_PointSize

喜欢而已 提交于 2020-01-11 12:34:28

问题


I'm Trying to grow and shrink an point by using this function glPointSize()

    float i;
    for (i = 0.0; i < 400.0; i ++) {
        glPointSize(i);
    }
    while (i > 0.0) {
        glPointSize(i);
        i--;
    }

it just point, Couldn't know how to make it move?


回答1:


Implementations have a limitation on the size of points. The GL_POINT_SIZE_RANGE can be used to fetch this limit, but it will generally be rather less than 400. A larger point size will be clamped to this range.



来源:https://stackoverflow.com/questions/57936064/point-to-grow-and-shrink-by-using-gl-pointsize

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!