openMSX
|
#include <GLUtil.hh>
Public Member Functions | |
ColorTexture ()=default | |
Default constructor, zero-sized texture. | |
ColorTexture (GLsizei width, GLsizei height) | |
Create color texture with given size. | |
void | resize (GLsizei width, GLsizei height) |
GLsizei | getWidth () const |
GLsizei | getHeight () const |
Public Member Functions inherited from gl::Texture | |
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. | |
Texture (Null) | |
Create null-handle (not yet allocate an openGL handle). | |
~Texture () | |
Release openGL texture name. | |
Texture (Texture &&other) noexcept | |
Move constructor and assignment. | |
Texture & | operator= (Texture &&other) noexcept |
void | allocate () |
Allocate an openGL texture name. | |
void | reset () |
Release openGL texture name. | |
GLuint | get () const |
Returns the underlying openGL handler id. | |
void * | getImGui () const |
Return as a 'void*' (needed for 'Dear ImGui'). | |
void | bind () const |
Makes this texture the active GL texture. | |
void | setInterpolation (bool interpolation) |
Enable/disable bilinear interpolation for this texture. | |
void | setWrapMode (bool wrap) |
Additional Inherited Members | |
Protected Attributes inherited from gl::Texture | |
GLuint | textureId |
|
default |
Default constructor, zero-sized texture.
gl::ColorTexture::ColorTexture | ( | GLsizei | width, |
GLsizei | height | ||
) |
|
inline |
Definition at line 117 of file GLUtil.hh.
Referenced by openmsx::GLScaler::execute(), and openmsx::GLHQScaler::scaleImage().
void gl::ColorTexture::resize | ( | GLsizei | width, |
GLsizei | height | ||
) |
Definition at line 86 of file GLUtil.cc.
References gl::Texture::bind().
Referenced by ColorTexture().