MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / Bind

Method Bind

src/lua/LuaTextures.cpp:291–302  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

289
290
291bool LuaTextureRef::Bind() const {
292 if (bzTexID < 0) {
293 return false;
294 }
295 const ImageInfo& ii = TEXMGR.getInfo(bzTexID);
296 if (ii.texture == NULL) {
297 return false;
298 }
299 glEnable(GL_TEXTURE_2D);
300 ii.texture->execute();
301 return true;
302}
303
304
305GLenum LuaTextureRef::GetTarget() const {

Callers 6

ParseTextureMethod · 0.80
TexParameterMethod · 0.80
TexSubImageMethod · 0.80
CopyToTextureMethod · 0.80
GenerateMipMapMethod · 0.80
TexBufferMethod · 0.80

Calls 1

executeMethod · 0.45

Tested by

no test coverage detected