16 bool use_padding =
false,
17 GLint filter = GL_NEAREST,
18 GLint wrap = GL_CLAMP_TO_EDGE);
21 const GLuint textureID,
24 bool use_padding =
false,
25 GLint filter = GL_NEAREST,
26 GLint wrap = GL_CLAMP_TO_EDGE);
29 if (glIsTexture(_textureId)) {
31 gl_log(GL_VERBOSE,
"~GLPlainTexture() - deleting texture %d\n", _textureId);
32 glDeleteTextures(1, &_textureId);
35 gl_log(GL_ERR,
"not deleting texture %d\n", _textureId);
39 GLuint name()
const {
return _textureId; };
41 GLenum target()
const {
return GL_TEXTURE_2D; };
43 bool flipped()
const {
return false; };