Represents the filename and GL parameters of a texture, for passing to CTextureManager::CreateTexture.
More...
#include <TextureManager.h>
|
| CTextureProperties (const VfsPath &path) |
| Use the given texture name, and default GL parameters. More...
|
|
void | SetFilter (GLint filter) |
| Set min/mag filter mode (typically GL_LINEAR_MIPMAP_LINEAR, GL_NEAREST, etc). More...
|
|
void | SetWrap (GLint wrap) |
| Set wrapping mode (typically GL_REPEAT, GL_CLAMP_TO_EDGE, etc). More...
|
|
void | SetWrap (GLint wrap_s, GLint wrap_t) |
| Set wrapping mode (typically GL_REPEAT, GL_CLAMP_TO_EDGE, etc), separately for S and T. More...
|
|
void | SetMaxAnisotropy (float aniso) |
| Set maximum anisotropy value. More...
|
|
Represents the filename and GL parameters of a texture, for passing to CTextureManager::CreateTexture.
Definition at line 122 of file TextureManager.h.
CTextureProperties::CTextureProperties |
( |
const VfsPath & |
path | ) |
|
|
inlineexplicit |
Use the given texture name, and default GL parameters.
Definition at line 133 of file TextureManager.h.
void CTextureProperties::SetFilter |
( |
GLint |
filter | ) |
|
|
inline |
Set min/mag filter mode (typically GL_LINEAR_MIPMAP_LINEAR, GL_NEAREST, etc).
Definition at line 142 of file TextureManager.h.
void CTextureProperties::SetMaxAnisotropy |
( |
float |
aniso | ) |
|
|
inline |
Set maximum anisotropy value.
Must be >= 1.0. Should be a power of 2.
Definition at line 158 of file TextureManager.h.
void CTextureProperties::SetWrap |
( |
GLint |
wrap | ) |
|
|
inline |
Set wrapping mode (typically GL_REPEAT, GL_CLAMP_TO_EDGE, etc).
Definition at line 147 of file TextureManager.h.
void CTextureProperties::SetWrap |
( |
GLint |
wrap_s, |
|
|
GLint |
wrap_t |
|
) |
| |
|
inline |
Set wrapping mode (typically GL_REPEAT, GL_CLAMP_TO_EDGE, etc), separately for S and T.
Definition at line 153 of file TextureManager.h.
friend struct TextureCacheCmp |
|
friend |
float CTextureProperties::m_Aniso |
|
private |
GLint CTextureProperties::m_Filter |
|
private |
GLint CTextureProperties::m_WrapS |
|
private |
GLint CTextureProperties::m_WrapT |
|
private |
The documentation for this class was generated from the following file: