openMSX
|
#include <GLUtil.hh>
Public Member Functions | |
ColorTexture () | |
Default constructor, zero-sized texture. More... | |
ColorTexture (ColorTexture &&other) | |
Move constructor and assignment. More... | |
ColorTexture & | operator= (ColorTexture &&other) |
ColorTexture (GLsizei width, GLsizei height) | |
Create color texture with given size. More... | |
void | resize (GLsizei width, GLsizei height) |
GLsizei | getWidth () const |
GLsizei | getHeight () const |
Public Member Functions inherited from openmsx::Texture | |
Texture () | |
Default constructor, allocate a openGL texture name. More... | |
Texture (Texture &&other) | |
Move constructor and assignment. More... | |
Texture & | operator= (Texture &&other) |
~Texture () | |
Release openGL texture name. More... | |
void | bind () |
Makes this texture the active GL texture. More... | |
void | enableInterpolation () |
Enables bilinear interpolation for this texture. More... | |
void | disableInterpolation () |
Disables bilinear interpolation for this texture and uses nearest neighbour instead. More... | |
void | setWrapMode (bool wrap) |
void | drawRect (GLfloat tx, GLfloat ty, GLfloat twidth, GLfloat theight, GLint x, GLint y, GLint width, GLint height) |
Draws this texture as a rectangle on the frame buffer. More... | |
Additional Inherited Members | |
Protected Attributes inherited from openmsx::Texture | |
GLuint | textureId |
|
inline |
|
inline |
openmsx::ColorTexture::ColorTexture | ( | GLsizei | width, |
GLsizei | height | ||
) |
|
inline |
Definition at line 119 of file GLUtil.hh.
Referenced by openmsx::GLSaIScaler::scaleImage(), openmsx::GLScaleNxScaler::scaleImage(), openmsx::GLHQScaler::scaleImage(), openmsx::GLHQLiteScaler::scaleImage(), openmsx::GLSimpleScaler::scaleImage(), openmsx::GLTVScaler::scaleImage(), openmsx::GLRGBScaler::scaleImage(), and openmsx::GLScaler::scaleImage().
|
inline |
Definition at line 118 of file GLUtil.hh.
Referenced by openmsx::GLTVScaler::scaleImage().
|
inline |
void openmsx::ColorTexture::resize | ( | GLsizei | width, |
GLsizei | height | ||
) |
Definition at line 98 of file GLUtil.cc.
References openmsx::Texture::bind().
Referenced by ColorTexture().