CrystalSpace

Public API Reference

iModelLoader Struct Reference
[Loading & Saving support]

Some loader plugins implement this as an easier way to load a factory from code. More...

#include <imap/modelload.h>

Inheritance diagram for iModelLoader:

List of all members.

Public Member Functions

virtual bool IsRecognized (iDataBuffer *buffer)=0
 Test if the model is recognized by this model loader.
virtual bool IsRecognized (const char *filename)=0
 Test if the model is recognized by this model loader.
virtual iMeshFactoryWrapperLoad (const char *factname, iDataBuffer *buffer)=0
 Create a mesh factory and load the given model into it.
virtual iMeshFactoryWrapperLoad (const char *factname, const char *filename)=0
 Create a mesh factory and load the given model into it.

Detailed Description

Some loader plugins implement this as an easier way to load a factory from code.

Main creators of instances implementing this interface:

Main ways to get pointers to this interface:

Definition at line 44 of file modelload.h.


Member Function Documentation

virtual bool iModelLoader::IsRecognized ( iDataBuffer buffer  )  [pure virtual]

Test if the model is recognized by this model loader.

virtual bool iModelLoader::IsRecognized ( const char *  filename  )  [pure virtual]

Test if the model is recognized by this model loader.

virtual iMeshFactoryWrapper* iModelLoader::Load ( const char *  factname,
iDataBuffer buffer 
) [pure virtual]

Create a mesh factory and load the given model into it.

Parameters:
factname The name of the factory.
buffer The buffer containing the file.
Returns:
a mesh factory wrapper on success or otherwise 0. The error will be reported to the reporter.
virtual iMeshFactoryWrapper* iModelLoader::Load ( const char *  factname,
const char *  filename 
) [pure virtual]

Create a mesh factory and load the given model into it.

Parameters:
factname The name of the factory.
filename The VFS name of the file.
Returns:
a mesh factory wrapper on success or otherwise 0. The error will be reported to the reporter.

The documentation for this struct was generated from the following file:

Generated for Crystal Space 2.1 by doxygen 1.6.1