Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

# 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 String & | GetMaxVertexProgramVersion (void) const
| Gets the best low-level vertex program version supported.
const String & | GetMaxFragmentProgramVersion (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.

## Private Attributes

ushort | m_nNumTextureUnits
| The number of texture units available.
String | m_strMaxVertexProgramVersion
| The best vertex program that this card / rendersystem supports.
String | m_strMaxFragmentProgramVersion
| The best fragment program that this card / rendersystem supports.
int | m_nCapabilities
| Stores the capabilities flags.

## 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 40 of file KeosRenderSystemCapabilities.cpp.

## Member Function Documentation

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

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

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

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::CD3D9RenderSystem::InitCapabilities(), Keos::COGLRenderSystem::InitGL(), and Log().

void Keos::CRenderSystemCapabilities::Log | ( |  | ) |

| Write the capabilities in the logger. Definition at line 45 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(), and HasCapability().

Referenced by Keos::CD3D9RenderSystem::InitCapabilities(), and Keos::COGLRenderSystem::LoadExtensions().

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

| Adds a capability flag to m_nCapabilities. Definition at line 130 of file KeosRenderSystemCapabilities.h. Referenced by Keos::CD3D9RenderSystem::InitCapabilities(), Keos::COGLRenderSystem::LoadExtensions(), Keos::CD3D9RenderSystem::SearchPixelShaderCaps(), and Keos::CD3D9RenderSystem::SearchVertexShaderCaps().

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. Referenced by Keos::COGLRenderSystem::LoadExtensions(), and Keos::CD3D9RenderSystem::SearchPixelShaderCaps().

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. Referenced by Keos::COGLRenderSystem::LoadExtensions(), and Keos::CD3D9RenderSystem::SearchVertexShaderCaps().

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. Referenced by Keos::CD3D9RenderSystem::InitCapabilities(), and Keos::COGLRenderSystem::LoadExtensions().

## Member Data Documentation

int Keos::CRenderSystemCapabilities::m_nCapabilities`[private]`

| Stores the capabilities flags. Definition at line 100 of file KeosRenderSystemCapabilities.h.

ushort Keos::CRenderSystemCapabilities::m_nNumTextureUnits`[private]`

| The number of texture units available. Definition at line 93 of file KeosRenderSystemCapabilities.h.

String Keos::CRenderSystemCapabilities::m_strMaxFragmentProgramVersion`[private]`

| The best fragment program that this card / rendersystem supports. Definition at line 97 of file KeosRenderSystemCapabilities.h.

String Keos::CRenderSystemCapabilities::m_strMaxVertexProgramVersion`[private]`

| The best vertex program that this card / rendersystem supports. Definition at line 95 of file KeosRenderSystemCapabilities.h.

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

- KeosEngine/KeosRenderSystemCapabilities.h
- KeosEngine/KeosRenderSystemCapabilities.cpp