citro3d
|
Configure vertex attributes. More...
#include "types.h"
Go to the source code of this file.
Data Structures | |
struct | C3D_AttrInfo |
Vertex attribute info. More... | |
Functions | |
void | AttrInfo_Init (C3D_AttrInfo *info) |
Resets and initializes C3D_AttrInfo structure to default values. More... | |
int | AttrInfo_AddLoader (C3D_AttrInfo *info, int regId, GPU_FORMATS format, int count) |
Defines an array of vertex attribute data. More... | |
int | AttrInfo_AddFixed (C3D_AttrInfo *info, int regId) |
Defines a fixed vertex attribute. More... | |
C3D_AttrInfo * | C3D_GetAttrInfo (void) |
Gets pointer to the global C3D_AttrInfo structure. More... | |
void | C3D_SetAttrInfo (C3D_AttrInfo *info) |
Sets global C3D_AttrInfo structure. Copies values from the specified C3D_AttrInfo structure to the global C3D_AttrInfo structure. More... | |
Configure vertex attributes.
int AttrInfo_AddFixed | ( | C3D_AttrInfo * | info, |
int | regId | ||
) |
Defines a fixed vertex attribute.
[out] | info | Attribute info structure. |
[in] | regId | Specifies the attribute register in the vertex shader that will be modified. |
int AttrInfo_AddLoader | ( | C3D_AttrInfo * | info, |
int | regId, | ||
GPU_FORMATS | format, | ||
int | count | ||
) |
Defines an array of vertex attribute data.
[out] | info | Attribute info structure. |
[in] | regId | Specifies the attribute register in the vertex shader that will be modified. |
[in] | format | Specifies the data type of the array. |
[in] | count | Specifies the length of the array. |
void AttrInfo_Init | ( | C3D_AttrInfo * | info | ) |
Resets and initializes C3D_AttrInfo structure to default values.
[out] | info | Pointer to attribute info structure. |
C3D_AttrInfo* C3D_GetAttrInfo | ( | void | ) |
Gets pointer to the global C3D_AttrInfo structure.
void C3D_SetAttrInfo | ( | C3D_AttrInfo * | info | ) |
Sets global C3D_AttrInfo structure. Copies values from the specified C3D_AttrInfo structure to the global C3D_AttrInfo structure.
[in] | info | Pointer to user C3D_AttrInfo. |