Pyrogenesis  13997
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Attributes | Friends | List of all members
CTextureProperties Class Reference

Represents the filename and GL parameters of a texture, for passing to CTextureManager::CreateTexture. More...

#include <TextureManager.h>

Public Member Functions

 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...
 

Private Attributes

VfsPath m_Path
 
GLint m_Filter
 
GLint m_WrapS
 
GLint m_WrapT
 
float m_Aniso
 

Friends

class CTextureManagerImpl
 
struct TextureCacheCmp
 
struct TPequal_to
 
struct TPhash
 

Detailed Description

Represents the filename and GL parameters of a texture, for passing to CTextureManager::CreateTexture.

Definition at line 122 of file TextureManager.h.

Constructor & Destructor Documentation

CTextureProperties::CTextureProperties ( const VfsPath path)
inlineexplicit

Use the given texture name, and default GL parameters.

Definition at line 133 of file TextureManager.h.

Member Function Documentation

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.

Friends And Related Function Documentation

friend class CTextureManagerImpl
friend

Definition at line 124 of file TextureManager.h.

friend struct TextureCacheCmp
friend

Definition at line 125 of file TextureManager.h.

friend struct TPequal_to
friend

Definition at line 126 of file TextureManager.h.

friend struct TPhash
friend

Definition at line 127 of file TextureManager.h.

Member Data Documentation

float CTextureProperties::m_Aniso
private

Definition at line 182 of file TextureManager.h.

GLint CTextureProperties::m_Filter
private

Definition at line 179 of file TextureManager.h.

VfsPath CTextureProperties::m_Path
private

Definition at line 178 of file TextureManager.h.

GLint CTextureProperties::m_WrapS
private

Definition at line 180 of file TextureManager.h.

GLint CTextureProperties::m_WrapT
private

Definition at line 181 of file TextureManager.h.


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