Function ccGLBindTexture2DN

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

Since v2.1.0

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

Examples0