A3DGraphicsCreate
-
A3DStatus
A3DGraphicsCreate(const A3DGraphicsData *pData, A3DGraphics **ppGraphics) Creates a new graphics entity, returning its handle.
2.0Return Values
A3D_SUCCESS: in case of success.
A3D_INITIALIZE_NOT_CALLED: if the library is not initialized
A3D_INVALID_DATA_STRUCT_NULL: if
pDatais nullA3D_INVALID_DATA_STRUCT_SIZE: if
pDatais incorrectly initializedA3DGraphic handle = 0; A3DGraphicData data = A3D_MAKE_DATA(A3DGraphicData); // Configure data... A3DStatus result = A3DGraphicCreate(&data, &handle); assert(handle != 0);
Parameters
pData: The data used for graphics creation.
ppGraphics: An address to the new handle after creation.
Returns
A3D_SUCCESSor an error code in case of failure.