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

#include <GLUtil.hh>

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

Public Member Functions

 ColorTexture ()
 Default constructor, zero-sized texture. More...
 
 ColorTexture (ColorTexture &&other)
 Move constructor and assignment. More...
 
ColorTextureoperator= (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...
 
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 92 of file GLUtil.hh.

Constructor & Destructor Documentation

openmsx::ColorTexture::ColorTexture ( )
inline

Default constructor, zero-sized texture.

Definition at line 96 of file GLUtil.hh.

openmsx::ColorTexture::ColorTexture ( ColorTexture &&  other)
inline

Move constructor and assignment.

Definition at line 99 of file GLUtil.hh.

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

Create color texture with given size.

Initial content is undefined.

Definition at line 93 of file GLUtil.cc.

References resize().

Member Function Documentation

GLsizei openmsx::ColorTexture::getHeight ( ) const
inline
GLsizei openmsx::ColorTexture::getWidth ( ) const
inline

Definition at line 118 of file GLUtil.hh.

Referenced by openmsx::GLTVScaler::scaleImage().

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

Definition at line 105 of file GLUtil.hh.

void openmsx::ColorTexture::resize ( GLsizei  width,
GLsizei  height 
)

Definition at line 98 of file GLUtil.cc.

References openmsx::Texture::bind().

Referenced by ColorTexture().


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