Nebula
|
#include <vertexcomponent.h>
Describes a single vertex component in a vertex layout description.
Public Types | |
enum | Format { Float , Float2 , Float3 , Float4 , Half , Half2 , Half3 , Half4 , UInt , UInt2 , UInt3 , UInt4 , Int , Int2 , Int3 , Int4 , Short , Short2 , Short3 , Short4 , UShort , UShort2 , UShort3 , UShort4 , UByte4 , Byte4 , UByte4N , Byte4N , Short2N , Short4N , UShort2N , UShort4N , InvalidFormat } |
component format More... | |
enum | IndexName { Position = 0 , Normal = 1 , TexCoord1 = 2 , Tangent = 3 , Binormal = 4 , Color = 5 , TexCoord2 = 6 , SkinWeights = 7 , SkinJIndices = 8 , TexCoord3 = 9 , TexCoord4 = 10 , Invalid } |
enum | StrideType { PerVertex , PerInstance } |
stride type tells if the compoent should be per-instance or per-vertex More... | |
Public Member Functions | |
VertexComponent () | |
default constructor | |
VertexComponent (IndexT slot, Format format, IndexT streamIndex=0, StrideType strideType=PerVertex, SizeT stride=0) | |
constructor | |
IndexT | GetIndex () const |
get semantic index | |
Format | GetFormat () const |
get vertex component format | |
IndexT | GetStreamIndex () const |
get stream index | |
SizeT | GetByteSize () const |
get the byte size of the vertex component | |
Util::String | GetSignature () const |
get a unique signature of the vertex component | |
StrideType | GetStrideType () const |
get stride type | |
SizeT | GetStride () const |
get stride between instances | |
IndexT | GetByteOffset () const |
get the byte offset of this component (only valid when part of a VertexLayout) | |
Static Public Member Functions | |
static Format | StringToFormat (const Util::String &str) |
convert string to format | |
static Util::String | FormatToString (Format f) |
convert format to string | |
static Util::String | FormatToSignature (Format f) |
convert format to signature | |
Protected Member Functions | |
void | SetByteOffset (IndexT offset) |
set the vertex byte offset (called from VertexLayoutBase::Setup()) | |
Protected Attributes | |
IndexT | index |
Format | format |
StrideType | strideType |
SizeT | stride |
IndexT | streamIndex |
IndexT | byteOffset |
Friends | |
const CoreGraphics::VertexLayoutId | CoreGraphics::CreateVertexLayout (const CoreGraphics::VertexLayoutCreateInfo &info) |
|
inline |
default constructor
|
inline |
constructor
|
inlinestatic |
convert format to signature
|
inlinestatic |
convert format to string
|
inline |
get the byte offset of this component (only valid when part of a VertexLayout)
|
inline |
get the byte size of the vertex component
|
inline |
get vertex component format
|
inline |
get semantic index
|
inline |
get a unique signature of the vertex component
|
inline |
get stream index
|
inline |
get stride between instances
|
inline |
get stride type
|
inlineprotected |
set the vertex byte offset (called from VertexLayoutBase::Setup())
|
inlinestatic |
convert string to format
|
friend |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |