zenilib
0.5.3.0
|
#include <Texture.h>
Inherits Zeni::Texture.
Public Member Functions | |
Texture_GL (const String &filename, const bool &repeat, const bool &lazy_loading=false) | |
Texture_GL (const Image &image) | |
Texture_GL (const Point2i &size, const bool &repeat) | |
For render-to-texture. More... | |
virtual | ~Texture_GL () |
virtual void | apply_Texture () const |
Apply a Texture to upcoming polygons. More... | |
const Point2i & | get_size () const |
Get the resolution of the Texture on the GPU. More... | |
Public Member Functions inherited from Zeni::Texture | |
Texture (const bool &repeat_) | |
virtual | ~Texture () |
Friends | |
class | Video_GL_Fixed |
class | Video_GL_Shader |
Additional Inherited Members | |
Protected Attributes inherited from Zeni::Texture | |
const bool | m_repeat |
Zeni::Texture_GL::Texture_GL | ( | const String & | filename, |
const bool & | repeat, | ||
const bool & | lazy_loading = false |
||
) |
Definition at line 151 of file Texture.cpp.
References Zeni::Texture::m_repeat.
Definition at line 162 of file Texture.cpp.
For render-to-texture.
Definition at line 174 of file Texture.cpp.
|
virtual |
Definition at line 186 of file Texture.cpp.
References glDeleteBuffers(), glDeleteFramebuffersEXT, glDeleteRenderbuffersEXT, and glDeleteTextures.
|
virtual |
Apply a Texture to upcoming polygons.
Implements Zeni::Texture.
Definition at line 204 of file Texture.cpp.
References GL_MODULATE, GL_TEXTURE_2D, GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, glBindTexture, glEnable, glTexEnvf, and Zeni::Texture::m_repeat.
Get the resolution of the Texture on the GPU.
Implements Zeni::Texture.
Definition at line 48 of file Texture.hxx.
Referenced by Zeni::Video_GL_Shader::get_render_target_size(), Zeni::Video_GL_Fixed::set_render_target(), and Zeni::Video_GL_Shader::set_render_target().
|
friend |
|
friend |