Version
menu

◆ AK_CommandBuffer_AddGeometry()

AKSOUNDENGINE_API void* AK_CommandBuffer_AddGeometry ( void *  in_buffer,
const struct AkGeometryParams in_geometryParams 
)

Copy geometry data to the data payload of the last added command.

The SA_SetGeometry command requires additional data to complete the payload. First add the command, then call this function to complete the payload. For example:

AkGeometryParams geoParams; // Initialize with valid triangles, vertices, surfaces...
auto cmd = (AkCmd_SA_SetGeometry*)AK_CommandBuffer_Add(buffer, AkCommand_SA_SetGeometry);
cmd->geometrySetID = myID;
AK_CommandBuffer_AddGeometry(buffer, &geoParams);

Use AK_CommandBuffer_GeometrySize to calculate the size required to store the data.

Parameters
[in]in_bufferPointer to command buffer
[in]in_geometryParamsPointer to the geometry data.
Returns
Pointer to the copied data, or NULL if there is not enough space left in the buffer.
See also
AkCmd_SA_SetGeometry

Cette page a-t-elle été utile ?

Besoin d'aide ?

Des questions ? Des problèmes ? Besoin de plus d'informations ? Contactez-nous, nous pouvons vous aider !

Visitez notre page d'Aide

Décrivez-nous de votre projet. Nous sommes là pour vous aider.

Enregistrez votre projet et nous vous aiderons à démarrer sans aucune obligation !

Partir du bon pied avec Wwise