openMSX
|
#include <GLUtil.hh>
Public Member Functions | |
ColorTexture ()=default | |
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 |
![]() | |
Texture (const Texture &)=delete | |
Texture & | operator= (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... | |
Texture & | operator= (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 | |
![]() | |
GLuint | textureId |
|
default |
Default constructor, zero-sized texture.
gl::ColorTexture::ColorTexture | ( | GLsizei | width, |
GLsizei | height | ||
) |
|
inline |
Definition at line 111 of file GLUtil.hh.
Referenced by openmsx::GLScaler::execute(), and openmsx::GLHQScaler::scaleImage().
void gl::ColorTexture::resize | ( | GLsizei | width, |
GLsizei | height | ||
) |
Definition at line 71 of file GLUtil.cc.
References gl::Texture::bind().
Referenced by ColorTexture().