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

Method Activate

teapots/textured-teapot/src/main/cpp/Texture.cpp:89–95  ·  view source on GitHub ↗

* TextureCubemap implementations */

Source from the content-addressed store, hash-verified

87 * TextureCubemap implementations
88 */
89bool Texture::Activate(void) {
90 assert(texId_ != GL_INVALID_VALUE);
91
92 glBindTexture(texId_, GL_TEXTURE0);
93 glActiveTexture(GL_TEXTURE0 + 0);
94 return true;
95}
96
97/**
98 Return used sampler names and units

Callers 1

InitMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected