openMSX
|
#include <GLUtil.hh>
Public Member Functions | |
LuminanceTexture (LuminanceTexture &&other) | |
Move constructor and assignment. More... | |
LuminanceTexture & | operator= (LuminanceTexture &&other) |
LuminanceTexture (GLsizei width, GLsizei height) | |
Create grayscale texture with given size. More... | |
void | updateImage (GLint x, GLint y, GLsizei width, GLsizei height, GLbyte *data) |
Redefines (part of) the image for this texture. More... | |
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 |
openmsx::LuminanceTexture::LuminanceTexture | ( | GLsizei | width, |
GLsizei | height | ||
) |
|
inline |
void openmsx::LuminanceTexture::updateImage | ( | GLint | x, |
GLint | y, | ||
GLsizei | width, | ||
GLsizei | height, | ||
GLbyte * | data | ||
) |
Redefines (part of) the image for this texture.
Definition at line 134 of file GLUtil.cc.
References openmsx::Texture::bind().