OpenEnroth 73e68f7
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
GraphicsImage Class Reference

#include <Image.h>

Public Member Functions

 GraphicsImage (bool lazy_initialization=true)
 
ssize_t width ()
 
ssize_t height ()
 
Sizei size ()
 
RgbaImagergba ()
 
const Palettepalette ()
 
const GrayscaleImageindexed ()
 
const std::string & GetName ()
 
void Release ()
 
TextureRenderId renderId (bool load=true)
 
void releaseRenderId ()
 

Static Public Member Functions

static GraphicsImageCreate (RgbaImage image)
 
static GraphicsImageCreate (ssize_t width, ssize_t height)
 
static GraphicsImageCreate (Sizei size)
 
static GraphicsImageCreate (std::unique_ptr< ImageLoader > loader)
 

Protected Member Functions

 ~GraphicsImage ()
 
bool LoadImageData ()
 

Protected Attributes

bool _lazyInitialization = false
 
bool _initialized = false
 
std::unique_ptr< ImageLoader_loader
 
std::string _name
 
RgbaImage _rgbaImage
 
GrayscaleImage _indexedImage
 
Palette _palette
 
TextureRenderId _renderId
 

Constructor & Destructor Documentation

◆ GraphicsImage()

GraphicsImage::GraphicsImage ( bool  lazy_initialization = true)
explicit

◆ ~GraphicsImage()

GraphicsImage::~GraphicsImage ( )
protecteddefault

Member Function Documentation

◆ Create() [1/4]

GraphicsImage * GraphicsImage::Create ( RgbaImage  image)
static

◆ Create() [2/4]

GraphicsImage * GraphicsImage::Create ( Sizei  size)
static

◆ Create() [3/4]

GraphicsImage * GraphicsImage::Create ( ssize_t  width,
ssize_t  height 
)
static

◆ Create() [4/4]

GraphicsImage * GraphicsImage::Create ( std::unique_ptr< ImageLoader loader)
static

◆ GetName()

const std::string & GraphicsImage::GetName ( )

◆ height()

ssize_t GraphicsImage::height ( )

◆ indexed()

const GrayscaleImage & GraphicsImage::indexed ( )

◆ LoadImageData()

bool GraphicsImage::LoadImageData ( )
protected

◆ palette()

const Palette & GraphicsImage::palette ( )

◆ Release()

void GraphicsImage::Release ( )

◆ releaseRenderId()

void GraphicsImage::releaseRenderId ( )

◆ renderId()

TextureRenderId GraphicsImage::renderId ( bool  load = true)

◆ rgba()

RgbaImage & GraphicsImage::rgba ( )

◆ size()

Sizei GraphicsImage::size ( )

◆ width()

ssize_t GraphicsImage::width ( )

Member Data Documentation

◆ _indexedImage

GrayscaleImage GraphicsImage::_indexedImage
protected

◆ _initialized

bool GraphicsImage::_initialized = false
protected

◆ _lazyInitialization

bool GraphicsImage::_lazyInitialization = false
protected

◆ _loader

std::unique_ptr<ImageLoader> GraphicsImage::_loader
protected

◆ _name

std::string GraphicsImage::_name
protected

◆ _palette

Palette GraphicsImage::_palette
protected

◆ _renderId

TextureRenderId GraphicsImage::_renderId
protected

◆ _rgbaImage

RgbaImage GraphicsImage::_rgbaImage
protected

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