OGRE  1.7
Object-Oriented Graphics Rendering Engine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Ogre::PrefabFactory Class Reference

A factory class that can create various mesh prefabs. More...

#include <OgrePrefabFactory.h>

Static Public Member Functions

static bool createPrefab (Mesh *mesh)
 If the given mesh has a known prefab resource name (e.g "Prefab_Plane") then this prefab will be created as a submesh of the given mesh. More...
 

Static Private Member Functions

static void createCube (Mesh *mesh)
 Creates a 100x100x100 cube as a submesh of the given mesh. More...
 
static void createPlane (Mesh *mesh)
 Creates a plane as a submesh of the given mesh. More...
 
static void createSphere (Mesh *mesh)
 Creates a sphere with a diameter of 100 units as a submesh of the given mesh. More...
 

Detailed Description

A factory class that can create various mesh prefabs.

Remarks
This class is used by OgreMeshManager to offload the loading of various prefab types to a central location.

Definition at line 47 of file OgrePrefabFactory.h.

Member Function Documentation

static void Ogre::PrefabFactory::createCube ( Mesh mesh)
staticprivate

Creates a 100x100x100 cube as a submesh of the given mesh.

static void Ogre::PrefabFactory::createPlane ( Mesh mesh)
staticprivate

Creates a plane as a submesh of the given mesh.

static bool Ogre::PrefabFactory::createPrefab ( Mesh mesh)
static

If the given mesh has a known prefab resource name (e.g "Prefab_Plane") then this prefab will be created as a submesh of the given mesh.

Parameters
meshThe mesh that the potential prefab will be created in.
Returns
true if a prefab has been created, otherwise false.
static void Ogre::PrefabFactory::createSphere ( Mesh mesh)
staticprivate

Creates a sphere with a diameter of 100 units as a submesh of the given mesh.


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