ScummVM API documentation
Stark::Gfx::TinyGlTexture Class Reference

#include <tinygltexture.h>

Inheritance diagram for Stark::Gfx::TinyGlTexture:
Stark::Gfx::Texture

Public Member Functions

void bind () const override
 
void setLevelCount (uint32 count) override
 
void addLevel (uint32 level, const Graphics::Surface *surface, const byte *palette=nullptr) override
 

Protected Member Functions

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

Protected Attributes

TGLuint _id
 
uint32 _levelCount
 

Detailed Description

A TinyGL texture wrapper

Member Function Documentation

◆ bind()

void Stark::Gfx::TinyGlTexture::bind ( ) const
overridevirtual

Make the texture active

Implements Stark::Gfx::Texture.

◆ setLevelCount()

void Stark::Gfx::TinyGlTexture::setLevelCount ( uint32  count)
overridevirtual

Define the total number of levels of details

Must be called before adding levels

Implements Stark::Gfx::Texture.

◆ addLevel()

void Stark::Gfx::TinyGlTexture::addLevel ( uint32  level,
const Graphics::Surface surface,
const byte *  palette = nullptr 
)
overridevirtual

Add a detail level to the texture

Implements Stark::Gfx::Texture.


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