Daggerfall Mod:DFRemake/DFEGet3dObjectSize

The UESPWiki – Your source for The Elder Scrolls since 1995
Jump to: navigation, search

DWORD DFEGet3dObjectSize ( )[edit]

Inputs[edit]

None

Outputs[edit]

Returns the size in bytes needed for the memblock to store the current 3d object.

Description[edit]

Use this function to get the size needed for a memblock allocation in order to convert the currently loaded object into a DarkBasic object (FVF format 338 currently). Returns 0 if there is no current object loaded.

Example[edit]

 Size = DFEGet3dObjectSize()
 
 if ( Size > 0 )
   make memblock 1, Size
 endif