openMSX
Public Member Functions | List of all members
openmsx::SDLImage Class Referencefinal

#include <SDLImage.hh>

Inheritance diagram for openmsx::SDLImage:
Inheritance graph
[legend]
Collaboration diagram for openmsx::SDLImage:
Collaboration graph
[legend]

Public Member Functions

 SDLImage (OutputSurface &output, const std::string &filename)
 
 SDLImage (OutputSurface &output, SDLSurfacePtr image)
 
 SDLImage (OutputSurface &output, const std::string &filename, float scaleFactor)
 
 SDLImage (OutputSurface &output, const std::string &filename, gl::ivec2 size)
 
 SDLImage (OutputSurface &output, gl::ivec2 size, unsigned rgba)
 
 SDLImage (OutputSurface &output, gl::ivec2 size, const unsigned *rgba, unsigned borderSize, unsigned borderRGBA)
 
void draw (OutputSurface &output, gl::ivec2 pos, uint8_t r, uint8_t g, uint8_t b, uint8_t alpha) override
 
- Public Member Functions inherited from openmsx::BaseImage
virtual ~BaseImage ()=default
 
gl::ivec2 getSize () const
 
void draw (OutputSurface &output, gl::ivec2 pos, uint8_t alpha=255)
 

Additional Inherited Members

- Static Public Member Functions inherited from openmsx::BaseImage
static void checkSize (gl::ivec2 size)
 Performs a sanity check on image size. More...
 
- Protected Attributes inherited from openmsx::BaseImage
gl::ivec2 size
 

Detailed Description

Definition at line 10 of file SDLImage.hh.

Constructor & Destructor Documentation

◆ SDLImage() [1/6]

openmsx::SDLImage::SDLImage ( OutputSurface output,
const std::string &  filename 
)

Definition at line 198 of file SDLImage.cc.

◆ SDLImage() [2/6]

openmsx::SDLImage::SDLImage ( OutputSurface output,
SDLSurfacePtr  image 
)

◆ SDLImage() [3/6]

openmsx::SDLImage::SDLImage ( OutputSurface output,
const std::string &  filename,
float  scaleFactor 
)

Definition at line 206 of file SDLImage.cc.

References openmsx::BaseImage::size, and gl::trunc().

◆ SDLImage() [4/6]

openmsx::SDLImage::SDLImage ( OutputSurface output,
const std::string &  filename,
gl::ivec2  size 
)

Definition at line 214 of file SDLImage.cc.

References openmsx::BaseImage::size.

◆ SDLImage() [5/6]

openmsx::SDLImage::SDLImage ( OutputSurface output,
gl::ivec2  size,
unsigned  rgba 
)

Definition at line 221 of file SDLImage.cc.

◆ SDLImage() [6/6]

openmsx::SDLImage::SDLImage ( OutputSurface output,
gl::ivec2  size,
const unsigned *  rgba,
unsigned  borderSize,
unsigned  borderRGBA 
)

Definition at line 228 of file SDLImage.cc.

Member Function Documentation

◆ draw()

void openmsx::SDLImage::draw ( OutputSurface output,
gl::ivec2  pos,
uint8_t  r,
uint8_t  g,
uint8_t  b,
uint8_t  alpha 
)
overridevirtual

Implements openmsx::BaseImage.

Definition at line 363 of file SDLImage.cc.

References openmsx::OutputSurface::getSDLRenderer().


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