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

Method GetTarget

src/lua/LuaTextures.cpp:305–314  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

303
304
305GLenum LuaTextureRef::GetTarget() const {
306 if (bzTexID < 0) {
307 return -1;
308 }
309 const ImageInfo& ii = TEXMGR.getInfo(bzTexID);
310 if (ii.texture == NULL) {
311 return -1;
312 }
313 return GL_TEXTURE_2D;
314}
315
316
317GLenum LuaTextureRef::GetFormat() const {

Callers 9

MetaIndexMethod · 0.45
ParseTextureMethod · 0.45
TexParameterMethod · 0.45
TexSubImageMethod · 0.45
CopyToTextureMethod · 0.45
GenerateMipMapMethod · 0.45
TexBufferMethod · 0.45
RunQueryMethod · 0.45
AttachObjectMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected