Function ccGLBindTexture2D

#include <Geode/cocos/shaders/ccGLStateCache.h>voidccGLBindTexture2D(
_::GLuinttextureId
)

Since v2.0.0

If the texture is not already bound to texture unit 0, it binds it. If CC_ENABLE_GL_STATE_CACHE is disabled, it will call glBindTexture() directly.

Examples0