Ocular Engine
Ocular::Core::SceneObjectLoader Class Reference

Handles the loading of .opre files (Ocular Predefined Scene Object) More...

#include <SceneObjectLoader.hpp>

Static Public Member Functions

static SceneObjectLoad (File const &file)
 
static SceneObjectLoad (Node_Internal *node)
 

Static Protected Member Functions

static bool IsValidFile (File const &file)
 

Detailed Description

Handles the loading of .opre files (Ocular Predefined Scene Object)

Handles the saving of .opre files (Ocular Predefined Scene Object)

Loads .opre files as instances of SceneObjects.

As a SceneObject is not a Resource, this loader is a standalone class separate from the standard loader/saver pattern found within the Resource subsystem.

Saves SceneObjects as .opre files.

As a SceneObject is not a Resource, this saver is a standalone class separate from the standard loader/saver pattern found within the Resource subsystem.

Member Function Documentation

SceneObject * Ocular::Core::SceneObjectLoader::Load ( File const &  file)
static

Attempts to the load the SceneObject from the specified .opre file.

Parameters
[in]file
Returns
The new SceneObject. The object is already owned by the primary SceneManager (OcularScene), and as such should not be manually destroyed. Returns NULL if failed to load.
SceneObject * Ocular::Core::SceneObjectLoader::Load ( Node_Internal node)
static

Attempts to the load the SceneObject from the provided node.

Note
This is generally for internal use only by other loaders (ie SceneLoader)
Parameters
[in]node
Returns
The new SceneObject. The object is already owned by the primary SceneManager (OcularScene), and as such should not be manually destroyed. Returns NULL if failed to load.

The documentation for this class was generated from the following files: