Function ccGLUseProgram

#include <Geode/cocos/shaders/ccGLStateCache.h>voidccGLUseProgram(
_::GLuintprogram
)

Since v2.0.0

Uses the GL program in case program is different than the current one. If CC_ENABLE_GL_STATE_CACHE is disabled, it will the glUseProgram() directly.

Examples0