Gorilla.Audio.FMOD.Intf.Geometry
Unit Gorilla.Audio.FMOD.Intf.Geometry.pasInterfaces
- interface IGorillaFMODGeometry
Records
- record TGorillaFMODOrientation
- record TGorillaFMODMaxPolygons
- record TGorillaFMODPolygon
- record TGorillaFMODPolygonAttributes
IGorillaFMODGeometry
Wrapper record structure for geometry instances.
Methods
Adds a polygon to an existing geometry object.
Gets the number of vertices in a polygon which is part of the geometry object.
Parameters
- AIndex : Integer - Polygon index. This must be in the range of 0 to Geometry::getNumPolygons minus 1.
Alters the position of a polygon's vertex inside a geometry object.
Parameters
- AIndex : Integer - Polygon index. This must be in the range of 0 to Geometry::getNumPolygons minus 1. Vertex index inside the polygon. This must be in the range of 0 to Geometry::getPolygonNumVertices minus 1. Address of an FMOD_VECTOR which holds the new vertex location.
- AVertexIndex : Integer - Polygon index. This must be in the range of 0 to Geometry::getNumPolygons minus 1. Vertex index inside the polygon. This must be in the range of 0 to Geometry::getPolygonNumVertices minus 1. Address of an FMOD_VECTOR which holds the new vertex location.
- const AVertex : TPoint3D - Polygon index. This must be in the range of 0 to Geometry::getNumPolygons minus 1. Vertex index inside the polygon. This must be in the range of 0 to Geometry::getPolygonNumVertices minus 1. Address of an FMOD_VECTOR which holds the new vertex location.
Retrieves the position of the vertex inside a geometry object.
Parameters
- AIndex : Integer - Polygon index. This must be in the range of 0 to Geometry::getNumPolygons minus 1. Vertex index inside the polygon. This must be in the range of 0 to Geometry::getPolygonNumVertices minus 1.
- AVertexIndex : Integer - Polygon index. This must be in the range of 0 to Geometry::getNumPolygons minus 1. Vertex index inside the polygon. This must be in the range of 0 to Geometry::getPolygonNumVertices minus 1.
Saves the geometry object as a serialized binary block, to a user memory buffer. This can then be saved to a file if required and loaded later with System::loadGeometry.
Parameters
- AData : Pointer - Address of a variable to receive the serialized geometry object. Specify 0 or NULL to have the datasize parameter return the size of the memory required for this saved object. Address of a variable to receive the size in bytes required to save this object when 'data' parameter is 0 or NULL.
- ADataSize : PFMOD_Int - Address of a variable to receive the serialized geometry object. Specify 0 or NULL to have the datasize parameter return the size of the memory required for this saved object. Address of a variable to receive the size in bytes required to save this object when 'data' parameter is 0 or NULL.
Properties
A user value that the Geometry object will store internally. Can be retrieved with Geometry::getUserData.
read GetUserDatawrite SetUserData
Enables or disables an object from being processed in the geometry engine.
read GetActivewrite SetActive
Sets the position of the object in world space, which is the same space FMOD sounds and listeners reside in.
read GetPositionwrite SetPosition
Sets the relative scale vector of the geometry object. An object can be scaled/warped in all 3 dimensions separately using the vector without having to modify polygon data.
read GetScalewrite SetScale
Retrieves the maximum number of polygons and vertices allocatable for this object. This is not the number of polygons or vertices currently present. The maximum number was set with System::createGeometry.
read GetMaxPolygonsIndividual attributes for each polygon inside a geometry object.
read GetPolygonAttributeswrite SetPolygonAttributes