gpt4 book ai didi

objective-c - OpenGL GL_POINTS 大小

转载 作者:行者123 更新时间:2023-12-03 16:50:42 24 4
gpt4 key购买 nike

如何使我的 GL_POINT 更大?我正在使用 glPointSize,但它只能工作到一定大小。所以如果我写

glPointSize(100);

大小相同

glPointSize(500);

如何使其达到我需要的大小?

最佳答案

OpenGL wiki说:

There is an implementation-defined range for point sizes, and the size given by either method is clamped to that range. You can query the range with GL_POINT_SIZE_RANGE​ (returns 2 floats). There is also a point granularity that you can query with GL_POINT_SIZE_GRANULARITY​; the implementation will clamp sizes to its granularity as needed.

如果您想要的点的大小不在允许的范围内,请考虑使用纹理四边形甚至 TRIANGLE_FAN 来制作您想要的任何大小的(接近)圆形多边形。

关于objective-c - OpenGL GL_POINTS 大小,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11414713/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com