Geometry::save

FMOD Studio API

Firelight Technologies FMOD Studio API

Geometry::save

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.

C++ Syntax

FMOD_RESULT Geometry::save(
  void *data,
  int *datasize
);

C Syntax

FMOD_RESULT FMOD_Geometry_Save(
  FMOD_GEOMETRY *geometry,
  void *data,
  int *datasize
);

C# Syntax

RESULT Geometry.save(
  IntPtr data,
  out int datasize
);

JavaScript Syntax

Geometry.save(
);

Parameters

data
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.
datasize
Address of a variable to receive the size in bytes required to save this object when 'data' parameter is 0 or NULL.

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.

Remarks

To use this function you will normally need to call it twice. Once to get the size of the data, then again to write the data to your pointer.

JavaScript only :

This function is not currently supported

See Also




Version 1.10.03 Built on Feb 1, 2018