openMSX
Public Member Functions | List of all members
openmsx::LuminanceTexture Class Reference

#include <GLUtil.hh>

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

Public Member Functions

 LuminanceTexture (LuminanceTexture &&other)
 Move constructor and assignment. More...
 
LuminanceTextureoperator= (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...
 
Textureoperator= (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
 

Detailed Description

Definition at line 130 of file GLUtil.hh.

Constructor & Destructor Documentation

openmsx::LuminanceTexture::LuminanceTexture ( LuminanceTexture &&  other)
inline

Move constructor and assignment.

Definition at line 134 of file GLUtil.hh.

openmsx::LuminanceTexture::LuminanceTexture ( GLsizei  width,
GLsizei  height 
)

Create grayscale texture with given size.

Initial content is undefined.

Definition at line 118 of file GLUtil.cc.

Member Function Documentation

LuminanceTexture& openmsx::LuminanceTexture::operator= ( LuminanceTexture &&  other)
inline

Definition at line 138 of file GLUtil.hh.

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().


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