openMSX
|
#include <BaseImage.hh>
Public Member Functions | |
virtual | ~BaseImage ()=default |
virtual void | draw (OutputSurface &output, gl::ivec2 pos, uint8_t r, uint8_t g, uint8_t b, uint8_t alpha)=0 |
gl::ivec2 | getSize () const |
void | draw (OutputSurface &output, gl::ivec2 pos, uint8_t alpha=255) |
Static Public Member Functions | |
static void | checkSize (gl::ivec2 size) |
Performs a sanity check on image size. More... | |
Protected Attributes | |
gl::ivec2 | size |
Definition at line 11 of file BaseImage.hh.
|
virtualdefault |
|
static |
Performs a sanity check on image size.
Throws MSXException if width or height is excessively large. Negative image sizes are valid and flip the image.
Definition at line 8 of file BaseImage.cc.
References size.
Referenced by openmsx::GLImage::GLImage().
|
inline |
Definition at line 26 of file BaseImage.hh.
References draw().
|
pure virtual |
Implemented in openmsx::GLImage, and openmsx::SDLImage.
Referenced by draw().
|
inline |
Definition at line 24 of file BaseImage.hh.
References size.
|
protected |
Definition at line 31 of file BaseImage.hh.
Referenced by checkSize(), openmsx::GLImage::draw(), openmsx::SDLImage::draw(), getSize(), openmsx::GLImage::GLImage(), and openmsx::SDLImage::SDLImage().