ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

Stark::Gfx::OpenGlTexture Class Reference

An OpenGL texture wrapper. More...

#include <opengltexture.h>

Inheritance diagram for Stark::Gfx::OpenGlTexture:
Collaboration diagram for Stark::Gfx::OpenGlTexture:

List of all members.

Public Member Functions

 OpenGlTexture ()
virtual ~OpenGlTexture ()
void bind () const override
 Make the texture active.
void update (const Graphics::Surface *surface, const byte *palette=nullptr) override
 Define or update the texture pixel data.
void setLevelCount (uint32 count) override
 Define the total number of levels of details.
void addLevel (uint32 level, const Graphics::Surface *surface, const byte *palette=nullptr) override
 Add a detail level to the texture.

Protected Member Functions

void updateLevel (uint32 level, const Graphics::Surface *surface, const byte *palette=nullptr)

Protected Attributes

GLuint _id
uint32 _levelCount

Detailed Description

An OpenGL texture wrapper.

Definition at line 36 of file opengltexture.h.


Constructor & Destructor Documentation

Stark::Gfx::OpenGlTexture::OpenGlTexture (  ) 

Definition at line 32 of file opengltexture.cpp.

Stark::Gfx::OpenGlTexture::~OpenGlTexture (  )  [virtual]

Definition at line 47 of file opengltexture.cpp.


Member Function Documentation

void Stark::Gfx::OpenGlTexture::addLevel ( uint32  level,
const Graphics::Surface surface,
const byte palette = nullptr 
) [override, virtual]

Add a detail level to the texture.

Implements Stark::Gfx::Texture.

Definition at line 100 of file opengltexture.cpp.

void Stark::Gfx::OpenGlTexture::bind (  )  const [override, virtual]

Make the texture active.

Implements Stark::Gfx::Texture.

Definition at line 51 of file opengltexture.cpp.

void Stark::Gfx::OpenGlTexture::setLevelCount ( uint32  count  )  [override, virtual]

Define the total number of levels of details.

Must be called before adding levels

Implements Stark::Gfx::Texture.

Definition at line 81 of file opengltexture.cpp.

void Stark::Gfx::OpenGlTexture::update ( const Graphics::Surface surface,
const byte palette = nullptr 
) [override, virtual]

Define or update the texture pixel data.

Implements Stark::Gfx::Texture.

Definition at line 76 of file opengltexture.cpp.

void Stark::Gfx::OpenGlTexture::updateLevel ( uint32  level,
const Graphics::Surface surface,
const byte palette = nullptr 
) [protected]

Definition at line 55 of file opengltexture.cpp.


Member Data Documentation

GLuint Stark::Gfx::OpenGlTexture::_id [protected]

Definition at line 50 of file opengltexture.h.

Definition at line 51 of file opengltexture.h.


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


Generated on Sat Jan 12 2019 05:05:17 for ResidualVM by doxygen 1.7.1
curved edge   curved edge