| 289 | |
| 290 | |
| 291 | bool 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 | |
| 305 | GLenum LuaTextureRef::GetTarget() const { |
no test coverage detected