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.
Getting Started
Modding Tutorials
Geode Mods
Handbook
An Introduction to GD Modding (using Geode)
#include <Geode/cocos/shaders/ccGLStateCache.h>
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.