ScummVM API documentation
GLESTexture Class Reference
Inheritance diagram for GLESTexture:
GLESBaseTexture GLES4444Texture GLES5551Texture GLES565Texture GLES8888Texture GLES888Texture

Public Member Functions

void allocBuffer (GLuint w, GLuint h) override
 
void updateBuffer (GLuint x, GLuint y, GLuint width, GLuint height, const void *buf, int pitch_buf) override
 
void fillBuffer (uint32 color) override
 
void setPalette (const byte *colors, uint start, uint num) override
 
void setKeycolor (byte color) override
 
void grabPalette (byte *colors, uint start, uint num) const override
 
void readPixels ()
 
- Public Member Functions inherited from GLESBaseTexture
void release ()
 
void reinit ()
 
void setLinearFilter (bool value)
 
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 ()
 
bool hasPalette () const
 
bool dirty () const
 
virtual const Graphics::PixelFormatgetPixelFormat () const
 
const Graphics::PixelFormatgetPalettePixelFormat () const
 
GLuint getTextureName () const
 
void setGameTexture ()
 
void setAlpha (float alpha)
 

Protected Member Functions

 GLESTexture (GLenum glFormat, GLenum glType, Graphics::PixelFormat pixelFormat)
 
void * prepareTextureBuffer (const Common::Rect &rect) override
 
- Protected Member Functions inherited from GLESBaseTexture
 GLESBaseTexture (GLenum glFormat, GLenum glType, Graphics::PixelFormat pixelFormat)
 
void initSize ()
 
void setDirty ()
 
void clearDirty ()
 
void setDirtyRect (const Common::Rect &r)
 

Protected Attributes

byte * _pixels
 
byte * _buf
 
- Protected Attributes inherited from GLESBaseTexture
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
 

Additional Inherited Members

- Static Public Member Functions inherited from GLESBaseTexture
static void initGL ()
 
static void unbindShader ()
 
- Static Protected Attributes inherited from GLESBaseTexture
static bool _npot_supported
 
static OpenGL::Shader_box_shader
 
static GLuint _verticesVBO
 

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