Om
1.0.0
A universal framework for multimedia simulation
|
A class that represents the type of a shader attribute. More...
#include <omGraphicsAttributeType.h>
Public Member Functions | |
AttributeType () | |
Create an undefined attribute type with 0 rows and columns. More... | |
AttributeType (const ScalarType &newScalarType) | |
Create a scalar attribute type for the specified scalar type. More... | |
AttributeType (ScalarType::Enum newScalarType) | |
Create a scalar attribute type for the specified scalar type. More... | |
AttributeType (ScalarType::Enum newScalarType, Size newNumberOfRows) | |
Create a vector attribute type for the specified scalar type and number of components (rows). More... | |
AttributeType (ScalarType::Enum newScalarType, Size newNumberOfRows, Size newNumberOfColumns) | |
Create a matrix attribute type for the specified scalar type and number of rows/columns. More... | |
Bool | operator== (const AttributeType &other) const |
Return whether or not this attribute type is equal to another. More... | |
Bool | operator!= (const AttributeType &other) const |
Return whether or not this attribute type is not equal to another. More... | |
Bool | isFloatingPoint () const |
Return whether or not this attribute's scalar type is a floating-point format (32 or 64-bit). More... | |
ScalarType | getScalarType () const |
Get the scalar type of this attribute type. More... | |
void | setScalarType (ScalarType newScalarType) |
Set the scalar type of this attribute type. More... | |
Size | getRowCount () const |
Get the number of rows of this attribute type. More... | |
void | setRowCount (Size newNumRows) |
Set the number of rows of this attribute type. More... | |
Size | getColumnCount () const |
Get the number of columns of this attribute type. More... | |
void | setColumnCount (Size newNumColumns) |
Set the number of columns of this attribute type. More... | |
Size | getComponentCount () const |
Return the total number of components that are part of this attribute type (rows * columns). More... | |
Bool | isIndex () const |
Return whether or not this attribute type represents an index type, e.g. unsigned integers. More... | |
Bool | isScalar () const |
Return whether or not this attribute type represents a scalar type. More... | |
Bool | isVector () const |
Return whether or not this attribute type represents a vector type. More... | |
Bool | isMatrix () const |
Return whether or not this attribute type represents a matrix type. More... | |
Size | getSizeInBytes () const |
Return the size of an attribute with this type in bytes. More... | |
String | toString () const |
Return a string representation of the attribute type. More... | |
operator String () const | |
Convert this attribute type into a string representation. More... | |
template<> | |
AttributeType | of () |
template<> | |
AttributeType | of () |
template<> | |
AttributeType | of () |
template<> | |
AttributeType | of () |
template<> | |
AttributeType | of () |
template<> | |
AttributeType | of () |
template<> | |
AttributeType | of () |
template<> | |
AttributeType | of () |
template<> | |
AttributeType | of () |
template<> | |
AttributeType | of () |
template<> | |
AttributeType | of () |
template<> | |
AttributeType | of () |
template<> | |
AttributeType | of () |
template<> | |
AttributeType | of () |
template<> | |
AttributeType | of () |
template<> | |
AttributeType | of () |
template<> | |
AttributeType | of () |
template<> | |
AttributeType | of () |
template<> | |
AttributeType | of () |
template<> | |
AttributeType | of () |
template<> | |
AttributeType | of () |
template<> | |
AttributeType | of () |
template<> | |
AttributeType | of () |
template<> | |
AttributeType | of () |
template<> | |
AttributeType | of () |
template<> | |
AttributeType | of () |
template<> | |
AttributeType | of () |
template<> | |
AttributeType | of () |
template<> | |
AttributeType | of () |
template<> | |
AttributeType | of () |
template<> | |
AttributeType | of () |
template<> | |
AttributeType | of () |
template<> | |
AttributeType | of () |
template<> | |
AttributeType | of () |
template<> | |
AttributeType | of () |
template<> | |
AttributeType | of () |
template<> | |
AttributeType | of () |
template<> | |
AttributeType | of () |
template<> | |
AttributeType | of () |
template<> | |
AttributeType | of () |
template<> | |
AttributeType | of () |
template<> | |
AttributeType | of () |
template<> | |
AttributeType | of () |
template<> | |
AttributeType | of () |
template<> | |
AttributeType | of () |
template<> | |
AttributeType | of () |
template<> | |
AttributeType | of () |
template<> | |
AttributeType | of () |
template<> | |
AttributeType | of () |
template<> | |
AttributeType | of () |
template<> | |
AttributeType | of () |
template<> | |
AttributeType | of () |
template<> | |
AttributeType | of () |
template<> | |
AttributeType | of () |
template<> | |
AttributeType | of () |
template<> | |
AttributeType | of () |
template<> | |
AttributeType | of () |
template<> | |
AttributeType | of () |
template<> | |
AttributeType | of () |
template<> | |
AttributeType | of () |
template<> | |
AttributeType | of () |
template<> | |
AttributeType | of () |
template<> | |
AttributeType | of () |
template<> | |
AttributeType | of () |
template<> | |
AttributeType | of () |
template<> | |
AttributeType | of () |
template<> | |
AttributeType | of () |
template<> | |
AttributeType | of () |
template<> | |
AttributeType | of () |
template<> | |
AttributeType | of () |
template<> | |
AttributeType | of () |
template<> | |
AttributeType | of () |
template<> | |
AttributeType | of () |
template<> | |
AttributeType | of () |
template<> | |
AttributeType | of () |
template<> | |
AttributeType | of () |
template<> | |
AttributeType | of () |
template<> | |
AttributeType | of () |
template<> | |
AttributeType | of () |
template<> | |
AttributeType | of () |
template<> | |
AttributeType | of () |
template<> | |
AttributeType | of () |
template<> | |
AttributeType | of () |
template<> | |
AttributeType | of () |
template<> | |
AttributeType | of () |
template<> | |
AttributeType | of () |
template<> | |
AttributeType | of () |
template<> | |
AttributeType | of () |
template<> | |
AttributeType | of () |
template<> | |
AttributeType | of () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
template<> | |
void | check () |
Static Public Member Functions | |
template<typename T > | |
static AttributeType | of () |
Return an AttributeType object for the specified templated type. More... | |
template<typename T > | |
static void | check () |
Check to see if the templated type is a supported attribute type. More... | |
Static Public Attributes | |
static const AttributeType | UNDEFINED |
static const AttributeType | BOOLEAN |
static const AttributeType | BYTE |
static const AttributeType | UNSIGNED_BYTE |
static const AttributeType | SHORT |
static const AttributeType | UNSIGNED_SHORT |
static const AttributeType | INT |
static const AttributeType | UNSIGNED_INT |
static const AttributeType | FLOAT16 |
static const AttributeType | FLOAT |
static const AttributeType | DOUBLE |
A class that represents the type of a shader attribute.
A AttributeType can represent either a scalar, vector, or matrix shader attribute. It is specified by a scalar type enumeration indicating the type of the elements of the attribute, plus the number of rows and columns of the attribute type. For instance, a 3-component vector would have 3 rows and 1 column.
|
inline |
Create an undefined attribute type with 0 rows and columns.
|
inline |
Create a scalar attribute type for the specified scalar type.
|
inline |
Create a scalar attribute type for the specified scalar type.
|
inline |
Create a vector attribute type for the specified scalar type and number of components (rows).
|
inline |
Create a matrix attribute type for the specified scalar type and number of rows/columns.
|
inlinestatic |
Return an AttributeType object for the specified templated type.
This method returns a valid attribute type for all standard scalar/vector/matrix/color types. For all other types, an undefined attribute type is returned.
|
inlinestatic |
Check to see if the templated type is a supported attribute type.
Calling this empty method will produce a compiler error if the templated type is not a supported attribute type.
|
inline |
Return whether or not this attribute type is equal to another.
|
inline |
Return whether or not this attribute type is not equal to another.
|
inline |
Return whether or not this attribute's scalar type is a floating-point format (32 or 64-bit).
|
inline |
Get the scalar type of this attribute type.
|
inline |
Set the scalar type of this attribute type.
|
inline |
Get the number of rows of this attribute type.
|
inline |
Set the number of rows of this attribute type.
|
inline |
Get the number of columns of this attribute type.
|
inline |
Set the number of columns of this attribute type.
|
inline |
Return the total number of components that are part of this attribute type (rows * columns).
|
inline |
Return whether or not this attribute type represents an index type, e.g. unsigned integers.
|
inline |
Return whether or not this attribute type represents a scalar type.
|
inline |
Return whether or not this attribute type represents a vector type.
|
inline |
Return whether or not this attribute type represents a matrix type.
|
inline |
Return the size of an attribute with this type in bytes.
String om::graphics::base::AttributeType::toString | ( | ) | const |
Return a string representation of the attribute type.
|
inline |
Convert this attribute type into a string representation.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
UInt32 om::graphics::base::AttributeType::fullType |
A 32-bit integer.
UInt8 om::graphics::base::AttributeType::scalarType |
The scalar type of this attribute type.
UInt8 om::graphics::base::AttributeType::numRows |
The number of rows of this attribute type.
UInt8 om::graphics::base::AttributeType::numColumns |
The number of columns of this attribute type.
UInt8 om::graphics::base::AttributeType::padding |
A reserved padding value.