Keos::CRenderSystemCapabilities Class Reference

Class for storing the capabilities of the graphics card. More...

#include <KeosRenderSystemCapabilities.h>

List of all members.

Public Member Functions

 CRenderSystemCapabilities ()
 Default constructor.
 ~CRenderSystemCapabilities ()
 Destructor.
void SetNumTextureUnits (ushort nNum)
 Set the number of texture units the current output hardware supports.
ushort GetNumTextureUnits (void) const
 Return the number of texture units the current output hardware supports.
void SetCapability (const TCapability c)
 Adds a capability flag to m_nCapabilities.
bool HasCapability (const TCapability c) const
 Checks for a capability.
const StringGetMaxVertexProgramVersion (void) const
 Gets the best low-level vertex program version supported.
const StringGetMaxFragmentProgramVersion (void) const
 Gets the best fragment program that this card / rendersystem supports.
void SetMaxVertexProgramVersion (const String &strVer)
 Sets the best low-level vertex program version supported.
void SetMaxFragmentProgramVersion (const String &strVer)
 Sets the best fragment program that this card / rendersystem supports.
void Log ()
 Write the capabilities in the logger.


Detailed Description

Class for storing the capabilities of the graphics card.

Definition at line 88 of file KeosRenderSystemCapabilities.h.


Constructor & Destructor Documentation

Keos::CRenderSystemCapabilities::CRenderSystemCapabilities (  ) 

Default constructor.

Definition at line 34 of file KeosRenderSystemCapabilities.cpp.

Keos::CRenderSystemCapabilities::~CRenderSystemCapabilities (  ) 

Destructor.

Definition at line 39 of file KeosRenderSystemCapabilities.cpp.


Member Function Documentation

void Keos::CRenderSystemCapabilities::SetNumTextureUnits ( ushort  nNum  )  [inline]

Set the number of texture units the current output hardware supports.

Definition at line 115 of file KeosRenderSystemCapabilities.h.

ushort Keos::CRenderSystemCapabilities::GetNumTextureUnits ( void   )  const [inline]

Return the number of texture units the current output hardware supports.

Definition at line 123 of file KeosRenderSystemCapabilities.h.

Referenced by Log().

void Keos::CRenderSystemCapabilities::SetCapability ( const TCapability  c  )  [inline]

Adds a capability flag to m_nCapabilities.

Definition at line 130 of file KeosRenderSystemCapabilities.h.

bool Keos::CRenderSystemCapabilities::HasCapability ( const TCapability  c  )  const [inline]

Checks for a capability.

Definition at line 137 of file KeosRenderSystemCapabilities.h.

Referenced by Keos::CD3D9RenderSystem::CreateTexture(), Keos::COGLRenderSystem::InitGL(), and Log().

const String& Keos::CRenderSystemCapabilities::GetMaxVertexProgramVersion ( void   )  const [inline]

Gets the best low-level vertex program version supported.

Definition at line 151 of file KeosRenderSystemCapabilities.h.

Referenced by Log().

const String& Keos::CRenderSystemCapabilities::GetMaxFragmentProgramVersion ( void   )  const [inline]

Gets the best fragment program that this card / rendersystem supports.

Definition at line 158 of file KeosRenderSystemCapabilities.h.

Referenced by Log().

void Keos::CRenderSystemCapabilities::SetMaxVertexProgramVersion ( const String strVer  )  [inline]

Sets the best low-level vertex program version supported.

Definition at line 165 of file KeosRenderSystemCapabilities.h.

void Keos::CRenderSystemCapabilities::SetMaxFragmentProgramVersion ( const String strVer  )  [inline]

Sets the best fragment program that this card / rendersystem supports.

Definition at line 172 of file KeosRenderSystemCapabilities.h.

void Keos::CRenderSystemCapabilities::Log (  ) 

Write the capabilities in the logger.

Definition at line 43 of file KeosRenderSystemCapabilities.cpp.

References Keos::CAP_FRAGMENT_PROGRAM, Keos::CAP_HW_MIPMAPPING, Keos::CAP_NON_POWER_OF_2_TEXTURES, Keos::CAP_TEXTURE_COMPRESSION_DXT, Keos::CAP_VERTEX_PROGRAM, GetMaxFragmentProgramVersion(), GetMaxVertexProgramVersion(), GetNumTextureUnits(), HasCapability(), Keos::ILogger::Log(), and Keos::CStringConverter::ToString().


The documentation for this class was generated from the following files:
Generated on Fri Mar 9 14:29:27 2007 for Keos by  doxygen 1.5.1-p1