Pyrogenesis  trunk
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>

Collaboration diagram for CTextureProperties:
Collaboration graph
[legend]

Public Member Functions

 CTextureProperties (const VfsPath &path)
 Use the given texture name, and default GL parameters. More...
 
 CTextureProperties (const VfsPath &path, const Renderer::Backend::Format formatOverride)
 
void SetAddressMode (const Renderer::Backend::Sampler::AddressMode addressMode)
 Set sampler address mode. More...
 
void SetAddressMode (const Renderer::Backend::Sampler::AddressMode addressModeU, const Renderer::Backend::Sampler::AddressMode addressModeV)
 Set sampler address mode separately for different coordinates. More...
 
void SetAnisotropicFilter (const bool enabled)
 The value of max anisotropy is set by options. More...
 
void SetIgnoreQuality (bool ignore)
 

Private Attributes

VfsPath m_Path
 
Renderer::Backend::Sampler::AddressMode m_AddressModeU
 
Renderer::Backend::Sampler::AddressMode m_AddressModeV
 
bool m_AnisotropicFilterEnabled = false
 
Renderer::Backend::Format m_FormatOverride
 
bool m_IgnoreQuality = false
 

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.

Constructor & Destructor Documentation

◆ CTextureProperties() [1/2]

CTextureProperties::CTextureProperties ( const VfsPath path)
inlineexplicit

Use the given texture name, and default GL parameters.

◆ CTextureProperties() [2/2]

CTextureProperties::CTextureProperties ( const VfsPath path,
const Renderer::Backend::Format  formatOverride 
)
inline

Member Function Documentation

◆ SetAddressMode() [1/2]

void CTextureProperties::SetAddressMode ( const Renderer::Backend::Sampler::AddressMode  addressMode)
inline

Set sampler address mode.

◆ SetAddressMode() [2/2]

void CTextureProperties::SetAddressMode ( const Renderer::Backend::Sampler::AddressMode  addressModeU,
const Renderer::Backend::Sampler::AddressMode  addressModeV 
)
inline

Set sampler address mode separately for different coordinates.

◆ SetAnisotropicFilter()

void CTextureProperties::SetAnisotropicFilter ( const bool  enabled)
inline

The value of max anisotropy is set by options.

Though it might make sense to add an override.

◆ SetIgnoreQuality()

void CTextureProperties::SetIgnoreQuality ( bool  ignore)
inline

Friends And Related Function Documentation

◆ CTextureManagerImpl

friend class CTextureManagerImpl
friend

◆ TextureCacheCmp

friend struct TextureCacheCmp
friend

◆ TPequal_to

friend struct TPequal_to
friend

◆ TPhash

friend struct TPhash
friend

Member Data Documentation

◆ m_AddressModeU

Renderer::Backend::Sampler::AddressMode CTextureProperties::m_AddressModeU
private

◆ m_AddressModeV

Renderer::Backend::Sampler::AddressMode CTextureProperties::m_AddressModeV
private

◆ m_AnisotropicFilterEnabled

bool CTextureProperties::m_AnisotropicFilterEnabled = false
private

◆ m_FormatOverride

Renderer::Backend::Format CTextureProperties::m_FormatOverride
private

◆ m_IgnoreQuality

bool CTextureProperties::m_IgnoreQuality = false
private

◆ m_Path

VfsPath CTextureProperties::m_Path
private

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