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

Method SetTexture

endless-tunnel/app/src/main/cpp/our_shader.cpp:79–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79void OurShader::SetTexture(Texture* t) {
80 MY_ASSERT(mPreparedVertexBuf != NULL);
81 t->Bind(GL_TEXTURE0);
82 glUniform1i(mSamplerLoc, 0);
83}
84
85void OurShader::EnablePointLight(glm::vec3 pos, float r, float g, float b) {
86 MY_ASSERT(mPreparedVertexBuf != NULL);

Callers 3

RenderMethod · 0.80
RenderTunnelMethod · 0.80
RenderObstaclesMethod · 0.80

Calls 1

BindMethod · 0.45

Tested by

no test coverage detected