版本
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.

参数
[in]in_bufferPointer to command buffer
[in]in_geometryParamsPointer to the geometry data.
返回
Pointer to the copied data, or NULL if there is not enough space left in the buffer.
参见
AkCmd_SA_SetGeometry

此页面对您是否有帮助?

需要技术支持?

仍有疑问?或者问题?需要更多信息?欢迎联系我们,我们可以提供帮助!

查看我们的“技术支持”页面

介绍一下自己的项目。我们会竭力为您提供帮助。

来注册自己的项目,我们帮您快速入门,不带任何附加条件!

开始 Wwise 之旅