| 303 | |
| 304 | |
| 305 | GLenum 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 | |
| 317 | GLenum LuaTextureRef::GetFormat() const { |
no outgoing calls
no test coverage detected