Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | Related Pages

RenderCaps Class Reference

#include <rendercaps.h>

List of all members.


Detailed Description

Describe capabilities for a render device.

Author:
Mattias Jansson (mattias@realityrift.com)


Public Types

enum  RENDERCAPS {
  BUFFER_GROUP = 0x00000000, STENCILBUFFER = 0x00000001, PIXELFORMAT = 0x00000100, PIXELBUFFER = 0x00000200,
  RENDERTEXTURE = 0x00000400, PROGRAM_GROUP = 0x01000000, VERTEXPROGRAM = 0x01000001, FRAGMENTPROGRAM = 0x01000002,
  MULTITEXTURE_GROUP = 0x02000000, MULTITEXTURE = 0x02000001, CUBEMAP = 0x02000010, BLENDMODE_FACTOR = 0x02000100,
  MULTITEXTURE_UNITS_MASK = 0x00FF0000, MULTITEXTURE_UNITS_SHIFT = 0x00000010, MISC_GROUP = 0x04000000, NORMALIZATION = 0x04000001,
  WINDOW_GROUP = 0x0F000000, DOUBLEBUFFER = 0x0F000001, FULLSCREEN = 0x0F000002, ACCELERATION_GROUP = 0xF0000000,
  HARDWAREACCELERATED = 0xF0000100
}
 Render capabilities bitfields (256 groups of 24 caps each). More...


Public Member Functions

 RenderCaps ()
 ~RenderCaps ()
bool IsSet (unsigned int uiCaps) const
void Set (unsigned int uiCaps)
void Reset (unsigned int uiCaps)
void ResetAll ()
unsigned int GetGroupFlags (unsigned int uiGroup) const
RenderCapsoperator= (const RenderCaps &rkCaps)

Protected Attributes

unsigned int m_auiCaps [256]


Member Enumeration Documentation

enum RENDERCAPS
 

Render capabilities bitfields (256 groups of 24 caps each).

Enumeration values:
BUFFER_GROUP  Group for caps related to buffers (frame, stencil, z, pixel)
STENCILBUFFER  Stencil buffer present
PIXELFORMAT  Advanced pixel format enumeration
PIXELBUFFER  Device can create pixel buffers
RENDERTEXTURE  Device can render to texture (i.e use pixel buffer as texture)
PROGRAM_GROUP  Group for caps related to programmable pipeline
VERTEXPROGRAM  Vertex programs supported
FRAGMENTPROGRAM  Fragment programs supported
MULTITEXTURE_GROUP  Group for caps related to multitexturing
MULTITEXTURE  Device can multitexture
CUBEMAP  Device can use cubemaps
BLENDMODE_FACTOR  Device can use factor blend mode
MULTITEXTURE_UNITS_MASK  Mask for number of texture units
MULTITEXTURE_UNITS_SHIFT  Shift bitcount for number of texture units
MISC_GROUP  Group for misc caps
NORMALIZATION  Normalize vertex normals in vertex lighting path
WINDOW_GROUP  Group for caps related to the rendering window
DOUBLEBUFFER  Frame buffer is double buffered
FULLSCREEN  Open render device in fullscreen mode
ACCELERATION_GROUP  Group for caps related to the acceleration state of the driver
HARDWAREACCELERATED  Rendering path is hardware accelerated


Constructor & Destructor Documentation

RenderCaps  )  [inline]
 

~RenderCaps  )  [inline]
 


Member Function Documentation

bool IsSet unsigned int  uiCaps  )  const [inline]
 

Query if cap is set

Parameters:
uiCaps Caps bits to query for
Returns:
true if capability flag is set, false if not

void Set unsigned int  uiCaps  )  [inline]
 

Set caps (don't combine flags from different groups)

Parameters:
uiCaps Capability bits to set

void Reset unsigned int  uiCaps  )  [inline]
 

Reset caps

Parameters:
uiCaps Capability bits to reset

void ResetAll  )  [inline]
 

Reset all caps

unsigned int GetGroupFlags unsigned int  uiGroup  )  const [inline]
 

Parameters:
uiGroup Group identifier (0x00000000, 0x01000000, 0x02000000, ...)
Returns:
Flags bitfield for a group

RenderCaps& operator= const RenderCaps rkCaps  )  [inline]
 

Assign from reference object

Parameters:
rkCaps Reference caps object to copy data from


Member Data Documentation

unsigned int m_auiCaps[256] [protected]
 

Caps


The documentation for this class was generated from the following file:
Generated on Wed Jan 21 14:21:14 2004 for NeoEngine by doxygen 1.3.5