22 #ifndef STARK_GFX_OPENGL_TEXTURE_H 23 #define STARK_GFX_OPENGL_TEXTURE_H 25 #include "engines/stark/gfx/texture.h" 27 #include "graphics/opengl/system_headers.h" 29 #if defined(USE_OPENGL_GAME) || defined(USE_OPENGL_SHADERS) 37 class OpenGlTexture :
public Texture {
40 virtual ~OpenGlTexture();
43 void bind()
const override;
44 void setLevelCount(uint32 count)
override;
45 void addLevel(uint32 level,
const Graphics::Surface *surface,
const byte *palette =
nullptr)
override;
48 void updateLevel(uint32 level,
const Graphics::Surface *surface,
const byte *palette =
nullptr);
57 #endif // defined(USE_OPENGL_GAME) || defined(USE_OPENGL_SHADERS) 59 #endif // STARK_GFX_OPENGL_TEXTURE_H