Lines Matching refs:texture
32 // Must define as many texture units as specified by kTextureUnitsCount
48 "At least %d texture units are required!", kTextureUnitsCount);
63 * This is used to populate the shadow LUT texture for quick lookup in the
89 "Tried to use texture unit index %d, only %d exist",
101 void TextureState::bindTexture(GLuint texture) {
102 if (mBoundTextures[mTextureUnit] != texture) {
103 glBindTexture(GL_TEXTURE_2D, texture);
104 mBoundTextures[mTextureUnit] = texture;
108 void TextureState::bindTexture(GLenum target, GLuint texture) {
110 bindTexture(texture);
115 glBindTexture(target, texture);
119 void TextureState::deleteTexture(GLuint texture) {
120 // When glDeleteTextures() is called on a currently bound texture,
121 // OpenGL ES specifies that the texture is then considered unbound
124 // glGenTextures -> creates texture name 2
130 // call, any texture operation will be performed on the default
131 // texture (name=0)
133 unbindTexture(texture);
135 glDeleteTextures(1, &texture);
144 void TextureState::unbindTexture(GLuint texture) {
146 if (mBoundTextures[i] == texture) {