Public Member Functions | Public Attributes

sp::video::SVertexAttribute Struct Reference

Vertex format attribute structure. More...

#include <spVertexFormat.hpp>

List of all members.

Public Member Functions

 SVertexAttribute ()
 SVertexAttribute (s32 InitSize, const io::stringc InitName="", const ERendererDataTypes InitType=DATATYPE_FLOAT, bool DefaultSetting=true, bool InitNormalize=false)
 ~SVertexAttribute ()

Public Attributes

s32 Size
 Count of components (1, 2, 3 or 4).
s32 Offset
 Offset for each vertex in bytes. Don't write this manually!
ERendererDataTypes Type
 Data type (float, integer etc.).
io::stringc Name
 Attribute name. Should be the same name as in the vertex shader - if it's used.
bool Normalize
 If true, the attribute will be normalized.
bool hasDefaultSetting
bool isReference
 Normally false. Only true when a universal attribute links to this attribute.

Detailed Description

Vertex format attribute structure.


Constructor & Destructor Documentation

sp::video::SVertexAttribute::SVertexAttribute (  )  [inline]
sp::video::SVertexAttribute::SVertexAttribute ( s32  InitSize,
const io::stringc  InitName = "",
const ERendererDataTypes  InitType = DATATYPE_FLOAT,
bool  DefaultSetting = true,
bool  InitNormalize = false 
) [inline]
sp::video::SVertexAttribute::~SVertexAttribute (  )  [inline]

Member Data Documentation

Normally false. Only true when a universal attribute links to this attribute.

Attribute name. Should be the same name as in the vertex shader - if it's used.

If true, the attribute will be normalized.

Offset for each vertex in bytes. Don't write this manually!

Count of components (1, 2, 3 or 4).

Data type (float, integer etc.).


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines