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.
是否有任何类似的功能isEnabled(GL_LIGHTING);或任何方法来检测是否启用或禁用了某些功能?
isEnabled(GL_LIGHTING);
glGet — 返回选定参数的一个或多个值。
glGetBooleanv(GL_LIGHTING,&status)
对于全局照明,如何:
glIsEnabled(GL_LIGHTING)