ScummVM API documentation
Stark::Gfx::Bitmap Class Referenceabstract

#include <bitmap.h>

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

Public Types

enum  SamplingFilter { kNearest, kLinear }
 

Public Member Functions

virtual void bind () const =0
 
virtual void update (const Graphics::Surface *surface, const byte *palette=nullptr)=0
 
virtual void setSamplingFilter (SamplingFilter filter)=0
 
virtual Graphics::PixelFormat getBestPixelFormat () const =0
 
uint32 width () const
 
uint32 height () const
 

Protected Attributes

uint32 _width
 
uint32 _height
 

Detailed Description

An abstract bitmap

Member Function Documentation

◆ bind()

virtual void Stark::Gfx::Bitmap::bind ( ) const
pure virtual

Make the texture active

Implemented in Stark::Gfx::TinyGlBitmap.

◆ update()

virtual void Stark::Gfx::Bitmap::update ( const Graphics::Surface surface,
const byte *  palette = nullptr 
)
pure virtual

Define or update the texture pixel data

Implemented in Stark::Gfx::TinyGlBitmap.

◆ setSamplingFilter()

virtual void Stark::Gfx::Bitmap::setSamplingFilter ( SamplingFilter  filter)
pure virtual

Set the filter used when sampling the texture

Implemented in Stark::Gfx::TinyGlBitmap.

◆ getBestPixelFormat()

virtual Graphics::PixelFormat Stark::Gfx::Bitmap::getBestPixelFormat ( ) const
pure virtual

Get the most ideal pixel format for uploading to a texture

Implemented in Stark::Gfx::TinyGlBitmap.

◆ width()

uint32 Stark::Gfx::Bitmap::width ( ) const
inline

Get the texture width

◆ height()

uint32 Stark::Gfx::Bitmap::height ( ) const
inline

Get the texture height


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