通过使用gl_PointSize来指定要扩大和缩小 [英] Point to grow and shrink by using gl_PointSize

查看:546
本文介绍了通过使用gl_PointSize来指定要扩大和缩小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试通过使用此功能glPointSize()

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?

推荐答案

实施对点数有限制. GL_POINT_SIZE_RANGE可用于获取此限制,但通常会小于400.较大的磅值将被限制在此范围内.

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.

这篇关于通过使用gl_PointSize来指定要扩大和缩小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆