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

#include <GLImage.hh>

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

Public Member Functions

 GLImage (OutputSurface &output, const std::string &filename)
 
 GLImage (OutputSurface &output, SDLSurfacePtr image)
 
 GLImage (OutputSurface &output, const std::string &filename, float scaleFactor)
 
 GLImage (OutputSurface &output, const std::string &filename, gl::ivec2 size)
 
 GLImage (OutputSurface &output, gl::ivec2 size, unsigned rgba)
 
 GLImage (OutputSurface &output, gl::ivec2 size, const unsigned *rgba, int 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 13 of file GLImage.hh.

Constructor & Destructor Documentation

◆ GLImage() [1/6]

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

Definition at line 55 of file GLImage.cc.

◆ GLImage() [2/6]

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

Definition at line 115 of file GLImage.cc.

◆ GLImage() [3/6]

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

Definition at line 60 of file GLImage.cc.

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

◆ GLImage() [4/6]

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

Definition at line 67 of file GLImage.cc.

References openmsx::BaseImage::checkSize(), and openmsx::BaseImage::size.

◆ GLImage() [5/6]

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

Definition at line 74 of file GLImage.cc.

References openmsx::BaseImage::checkSize(), and openmsx::BaseImage::size.

◆ GLImage() [6/6]

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

Definition at line 91 of file GLImage.cc.

References openmsx::BaseImage::checkSize(), and openmsx::BaseImage::size.

Member Function Documentation

◆ draw()

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

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