| Support Forum Library Source SourceForge Page G3D Web Page |
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 ImageFormat * | format [Field::COUNT] |
| Formats corresponding to the values of Field. | |
| 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.
|
inline |
| 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().
1.8.2