Geometry::getMaxPolygons

FMOD Studio API

Firelight Technologies FMOD Studio API

Geometry::getMaxPolygons

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.

C++ Syntax

FMOD_RESULT Geometry::getMaxPolygons(
  int *maxpolygons,
  int *maxvertices
);

C Syntax

FMOD_RESULT FMOD_Geometry_GetMaxPolygons(
  FMOD_GEOMETRY *geometry,
  int *maxpolygons,
  int *maxvertices
);

C# Syntax

RESULT Geometry.getMaxPolygons(
  out int maxpolygons,
  out int maxvertices
);

JavaScript Syntax

Geometry.getMaxPolygons(
  maxpolygons,                     // writes value to maxpolygons.val
  maxvertices                      // writes value to maxvertices.val
);

Parameters

maxpolygons
Address of a variable to receieve the maximum possible number of polygons in this object.
maxvertices
Address of a variable to receieve the maximum possible number of vertices in this object.

Return Values

If the function succeeds then the return value is FMOD_OK.
If the function fails then the return value will be one of the values defined in the FMOD_RESULT enumeration.

See Also




Version 1.10.03 Built on Feb 1, 2018