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.
Function ccGLBindTexture2DN
#include <Geode/cocos/shaders/ccGLStateCache.h>
GLuinttextureUnit
,GLuinttextureId
)