SaturnRingLibrary 0.7
SGL wrapper
 
Loading...
Searching...
No Matches
SRL::Bitmap::TGA Struct Reference

Detailed Description

TGA image handling.

#include <srl_tga.hpp>

Inheritance diagram for SRL::Bitmap::TGA:
SRL::Bitmap::IBitmap

Classes

struct  LoaderSettings
 Settings for TGA loader. More...
 

Public Member Functions

 TGA (Cd::File *data, TGA::LoaderSettings settings=TGA::LoaderSettings())
 Construct RGB555 TGA image from file.
 
 TGA (const char *filename, TGA::LoaderSettings settings=TGA::LoaderSettings())
 Construct RGB555 TGA image from file.
 
 ~TGA ()
 Destroy the TGA image.
 
uint8_t * GetData () override
 Get image data.
 
BitmapInfo GetInfo () override
 Get image info.
 

Constructor & Destructor Documentation

◆ TGA() [1/2]

SRL::Bitmap::TGA::TGA ( Cd::File * data,
TGA::LoaderSettings settings = TGA::LoaderSettings() )
inline

Construct RGB555 TGA image from file.

Parameters
dataTGA file
settingsTGA loader settings

◆ TGA() [2/2]

SRL::Bitmap::TGA::TGA ( const char * filename,
TGA::LoaderSettings settings = TGA::LoaderSettings() )
inline

Construct RGB555 TGA image from file.

Parameters
filenameTGA file name
settingsTGA loader settings

Member Function Documentation

◆ GetData()

uint8_t * SRL::Bitmap::TGA::GetData ( )
inlineoverridevirtual

Get image data.

Returns
Pointer to image data

Reimplemented from SRL::Bitmap::IBitmap.

◆ GetInfo()

BitmapInfo SRL::Bitmap::TGA::GetInfo ( )
inlineoverridevirtual

Get image info.

Returns
image info

Reimplemented from SRL::Bitmap::IBitmap.