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

#include <GLUtil.hh>

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

Public Member Functions

 ColorTexture ()
 Default constructor, zero-sized texture. More...
 
 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 gl::Texture
 Texture (const Texture &)=delete
 
Textureoperator= (const Texture &)=delete
 
 Texture (bool interpolation=false, bool wrap=false)
 Allocate a openGL texture name and enable/disable interpolation. More...
 
 Texture (Null)
 Create null-handle (not yet allocate an openGL handle). More...
 
 ~Texture ()
 Release openGL texture name. More...
 
 Texture (Texture &&other) noexcept
 Move constructor and assignment. More...
 
Textureoperator= (Texture &&other) noexcept
 
void allocate ()
 Allocate an openGL texture name. More...
 
void reset ()
 Release openGL texture name. More...
 
GLuint get () const
 Returns the underlying openGL handler id. More...
 
void bind ()
 Makes this texture the active GL texture. More...
 
void setInterpolation (bool interpolation)
 Enable/disable bilinear interpolation for this texture. More...
 
void setWrapMode (bool wrap)
 

Additional Inherited Members

- Protected Attributes inherited from gl::Texture
GLuint textureId
 

Detailed Description

Definition at line 94 of file GLUtil.hh.

Constructor & Destructor Documentation

◆ ColorTexture() [1/2]

gl::ColorTexture::ColorTexture ( )
inline

Default constructor, zero-sized texture.

Definition at line 98 of file GLUtil.hh.

◆ ColorTexture() [2/2]

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

Create color texture with given size.

Initial content is undefined.

Definition at line 74 of file GLUtil.cc.

Member Function Documentation

◆ getHeight()

GLsizei gl::ColorTexture::getHeight ( ) const
inline

◆ getWidth()

GLsizei gl::ColorTexture::getWidth ( ) const
inline

Definition at line 106 of file GLUtil.hh.

Referenced by openmsx::GLPostProcessor::update().

◆ resize()

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

Definition at line 79 of file GLUtil.cc.

Referenced by openmsx::GLPostProcessor::update().


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