Simple GUI Library
Sgl::Image Class Reference
Collaboration diagram for Sgl::Image:

Public Member Functions

 Image (const char *filename, ImageFormat format)
 
 Image (const Sml::Texture *texture)
 
int32_t getWidth () const
 
int32_t getHeight () const
 
ImageFormat getFormat () const
 
const Sml::Texture * getTexture () const
 

Detailed Description

Definition at line 22 of file image.h.

Constructor & Destructor Documentation

◆ Image() [1/2]

Sgl::Image::Image ( const char *  filename,
ImageFormat  format 
)

Definition at line 14 of file image.cpp.

◆ Image() [2/2]

Sgl::Image::Image ( const Sml::Texture *  texture)

Definition at line 22 of file image.cpp.

Member Function Documentation

◆ getFormat()

ImageFormat Sgl::Image::getFormat ( ) const

Definition at line 27 of file image.cpp.

◆ getHeight()

int32_t Sgl::Image::getHeight ( ) const

Definition at line 26 of file image.cpp.

◆ getTexture()

const Sml::Texture * Sgl::Image::getTexture ( ) const

Definition at line 28 of file image.cpp.

◆ getWidth()

int32_t Sgl::Image::getWidth ( ) const

Definition at line 25 of file image.cpp.


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