Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
执行以下技术:
for(int light=GL_LIGHT0; light<=GL_LIGHT7; light++) glEnable(light);
总是完美无缺地GL_LIGHT0启用?GL_LIGHT7我想知道#defineOpenGL 灯的 s 是否总是像在我的 OpenGL 头文件中那样一个接一个地递增。
GL_LIGHT0
GL_LIGHT7
#define
是的。OpenGL规范明确指出
GL_LIGHT<n> == GL_LIGHT0 + n