integer DFEGet3dObjectMesh ( DWORD MemblockPtr )Edit
InputsEdit
- MemblockPtr: The pointer to the memblock from the GET MEMBLOCK PTR command.
OutputsEdit
Returns DFERR_SUCCESS on success and the appropriate error code on failure.
DescriptionEdit
This function creates a memblock object from the currently loaded DF 3d object. Use DFEGet3dObjectSize to allocate a memblock of the required size.
NotesEdit
This function does not create objects with textures but it can be used for wireframe model testing. It is much simpler than the other functions for object creation which require multiple calls and limb assembly.
ExampleEdit
Local ErrResult as integer make memblock 1, DFEGet3dObjectSize() ErrResult = DFEGet3dObjectMesh(get memblock ptr(1)) if (ErrResult <> DFERR_SUCCESS) then End