ScummVM API documentation
GLESBaseTexture Class Referenceabstract
Inheritance diagram for GLESBaseTexture:
GLESFakePaletteTexture GLESTexture GLESFakePalette16Texture GLESFakePalette8888Texture GLESFakePalette888Texture GLES4444Texture GLES5551Texture GLES565Texture GLES8888Texture GLES888Texture

Public Member Functions

void release ()
 
void reinit ()
 
void setLinearFilter (bool value)
 
virtual void allocBuffer (GLuint w, GLuint h)
 
virtual void updateBuffer (GLuint x, GLuint y, GLuint width, GLuint height, const void *buf, int pitch_buf)=0
 
virtual void fillBuffer (uint32 color)=0
 
void drawTexture (GLshort x, GLshort y, GLshort w, GLshort h)
 
void drawTexture (GLshort x, GLshort y, GLshort w, GLshort h, const Common::Rect &clip)
 
void setDrawRect (const Common::Rect &rect)
 
void setDrawRect (int16 w, int16 h)
 
void setDrawRect (int16 x1, int16 y1, int16 x2, int16 y2)
 
const Common::RectgetDrawRect () const
 
void drawTextureRect ()
 
void drawTextureOrigin ()
 
GLuint width () const
 
GLuint height () const
 
GLuint texWidth () const
 
GLuint texHeight () const
 
uint16 pitch () const
 
bool isEmpty () const
 
const Graphics::Surfacesurface_const () const
 
Graphics::Surfacesurface ()
 
virtual void setPalette (const byte *colors, uint start, uint num)=0
 
virtual void setKeycolor (byte color)=0
 
virtual void grabPalette (byte *colors, uint start, uint num) const =0
 
bool hasPalette () const
 
bool dirty () const
 
virtual const Graphics::PixelFormatgetPixelFormat () const
 
const Graphics::PixelFormatgetPalettePixelFormat () const
 
GLuint getTextureName () const
 
void setGameTexture ()
 
void setAlpha (float alpha)
 

Static Public Member Functions

static void initGL ()
 
static void unbindShader ()
 

Protected Member Functions

 GLESBaseTexture (GLenum glFormat, GLenum glType, Graphics::PixelFormat pixelFormat)
 
void initSize ()
 
virtual void * prepareTextureBuffer (const Common::Rect &rect)=0
 
void setDirty ()
 
void clearDirty ()
 
void setDirtyRect (const Common::Rect &r)
 

Protected Attributes

GLenum _glFormat
 
GLenum _glType
 
GLint _glFilter
 
GLuint _texture_name
 
Graphics::Surface _surface
 
GLuint _texture_width
 
GLuint _texture_height
 
Common::Rect _draw_rect
 
bool _all_dirty
 
Common::Rect _dirty_rect
 
Graphics::PixelFormat _pixelFormat
 
Graphics::PixelFormat _palettePixelFormat
 
bool _is_game_texture
 
GLfloat _alpha
 

Static Protected Attributes

static bool _npot_supported
 
static OpenGL::Shader_box_shader
 
static GLuint _verticesVBO
 

The documentation for this class was generated from the following file: