openMSX
|
#include <GLImage.hh>
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, uint32_t rgba) | |
GLImage (OutputSurface &output, gl::ivec2 size, std::span< const uint32_t, 4 > rgba, int borderSize, uint32_t borderRGBA) | |
void | draw (OutputSurface &output, gl::ivec2 pos, uint8_t r, uint8_t g, uint8_t b, uint8_t alpha) override |
![]() | |
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) |
Additional Inherited Members | |
![]() | |
static void | checkSize (gl::ivec2 size) |
Performs a sanity check on image size. More... | |
![]() | |
gl::ivec2 | size |
Definition at line 15 of file GLImage.hh.
openmsx::GLImage::GLImage | ( | OutputSurface & | output, |
const std::string & | filename | ||
) |
Definition at line 57 of file GLImage.cc.
openmsx::GLImage::GLImage | ( | OutputSurface & | output, |
SDLSurfacePtr | image | ||
) |
Definition at line 113 of file GLImage.cc.
openmsx::GLImage::GLImage | ( | OutputSurface & | output, |
const std::string & | filename, | ||
float | scaleFactor | ||
) |
Definition at line 62 of file GLImage.cc.
References openmsx::BaseImage::checkSize(), openmsx::BaseImage::size, and gl::trunc().
openmsx::GLImage::GLImage | ( | OutputSurface & | output, |
const std::string & | filename, | ||
gl::ivec2 | size | ||
) |
Definition at line 69 of file GLImage.cc.
References openmsx::BaseImage::checkSize(), and openmsx::BaseImage::size.
openmsx::GLImage::GLImage | ( | OutputSurface & | output, |
gl::ivec2 | size, | ||
uint32_t | rgba | ||
) |
Definition at line 76 of file GLImage.cc.
References openmsx::BaseImage::checkSize(), openmsx::BaseImage::size, and xrange().
openmsx::GLImage::GLImage | ( | OutputSurface & | output, |
gl::ivec2 | size, | ||
std::span< const uint32_t, 4 > | rgba, | ||
int | borderSize, | ||
uint32_t | borderRGBA | ||
) |
Definition at line 90 of file GLImage.cc.
References openmsx::BaseImage::checkSize(), openmsx::BaseImage::size, and xrange().
|
overridevirtual |
Implements openmsx::BaseImage.
Definition at line 127 of file GLImage.cc.
References gl::Texture::bind(), gl::context, g, gl::Texture::get(), gl::BufferObject::get(), openmsx::get(), and openmsx::BaseImage::size.