MCPcopy Create free account
hub / github.com/android/ndk-samples / Activate

Method Activate

teapots/image-decoder/src/main/cpp/Texture.cpp:196–203  ·  view source on GitHub ↗

* TextureCubemap implementations */

Source from the content-addressed store, hash-verified

194 * TextureCubemap implementations
195 */
196bool TextureCubemap::Activate(void) {
197 assert(texId_ != GL_INVALID_VALUE);
198
199 glBindTexture(texId_, GL_TEXTURE0);
200 glActiveTexture(GL_TEXTURE0 + 0);
201 activated_ = true;
202 return true;
203}
204
205GLuint TextureCubemap::GetTexType() { return GL_TEXTURE_CUBE_MAP; }
206

Callers 1

InitMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected