Support Forum       Library Source       SourceForge Page       G3D Web Page     
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Public Member Functions | Public Attributes | List of all members
G3D::GBuffer::Specification Class Reference

Classes

class  SameFields
 Can be used with G3D::Table as an Equals and Hash function for a GBuffer::Specification. More...
 

Public Member Functions

 Specification ()
 All fields for specific buffers default to NULL.
 
size_t hashCode () const
 

Public Attributes

DepthEncoding depthEncoding
 Reserved for future use–not currently supported.
 
Encoding encoding [Field::COUNT]
 Parallel array to format[].
 
const ImageFormatformat [Field::COUNT]
 Formats corresponding to the values of Field.
 

Constructor & Destructor Documentation

G3D::GBuffer::Specification::Specification ( )

All fields for specific buffers default to NULL.

In the future, more buffers may be added, which will also default to NULL for backwards compatibility.

Member Function Documentation

size_t G3D::GBuffer::Specification::hashCode ( ) const
inline

Member Data Documentation

DepthEncoding G3D::GBuffer::Specification::depthEncoding

Reserved for future use–not currently supported.

Referenced by hashCode().

Encoding G3D::GBuffer::Specification::encoding[Field::COUNT]

Parallel array to format[].

The default encoding for Field::WS_NORMAL, Field::CS_NORMAL, Field::WS_FACE_NORMAL, and Field::CS_FACE_NORMAL is Encoding(2.0f, -1.0f) to map [0, 1] to [-1, +1].

The default encoding for Field::SS_POSITION_CHANGE is Encoding(64.0f, -32.0f) to map [0, 1] to [-32, +32]. For all other fields the default encoding is Encoding(1.0, 0.0).

const ImageFormat* G3D::GBuffer::Specification::format[Field::COUNT]

Formats corresponding to the values of Field.

If a format is NULL, it is not allocated or rendered.

Referenced by G3D::GBuffer::Specification::SameFields::hashCode().


documentation generated on Sat Jan 12 2013 22:49:55 using doxygen 1.8.2