Open main menu

UESPWiki β

Daggerfall Mod:DFRemake/DFEGet3dObjectSize

< Mod / Daggerfall: Daggerfall Mod: DFRemake

DWORD DFEGet3dObjectSize ( )Edit

InputsEdit

None

OutputsEdit

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

DescriptionEdit

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.

ExampleEdit

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