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

#include <tinyglbitmap.h>

Inheritance diagram for Stark::Gfx::TinyGlBitmap:
Stark::Gfx::Bitmap

Public Member Functions

void bind () const override
 
TinyGL::BlitImage * getBlitImage () const
 
void update (const Graphics::Surface *surface, const byte *palette=nullptr) override
 
void setSamplingFilter (SamplingFilter filter) override
 
Graphics::PixelFormat getBestPixelFormat () const override
 
- Public Member Functions inherited from Stark::Gfx::Bitmap
uint32 width () const
 
uint32 height () const
 

Protected Attributes

TinyGL::BlitImage * _blitImage
 
- Protected Attributes inherited from Stark::Gfx::Bitmap
uint32 _width
 
uint32 _height
 

Additional Inherited Members

- Public Types inherited from Stark::Gfx::Bitmap
enum  SamplingFilter { kNearest, kLinear }
 

Detailed Description

A TinyGL bitmap wrapper

Member Function Documentation

◆ bind()

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

Make the texture active

Implements Stark::Gfx::Bitmap.

◆ update()

void Stark::Gfx::TinyGlBitmap::update ( const Graphics::Surface surface,
const byte *  palette = nullptr 
)
overridevirtual

Define or update the texture pixel data

Implements Stark::Gfx::Bitmap.

◆ setSamplingFilter()

void Stark::Gfx::TinyGlBitmap::setSamplingFilter ( SamplingFilter  filter)
overridevirtual

Set the filter used when sampling the texture

Implements Stark::Gfx::Bitmap.

◆ getBestPixelFormat()

Graphics::PixelFormat Stark::Gfx::TinyGlBitmap::getBestPixelFormat ( ) const
overridevirtual

Get the most ideal pixel format for uploading to a texture

Implements Stark::Gfx::Bitmap.


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