Eidolon
|
#include <OgreRenderTypes.h>
Public Types | |
typedef std::map< std::string, Ogre::SceneNode * > | nodemap |
Public Member Functions | |
OgreRenderScene (OgreRenderAdapter *adapt) | |
virtual | ~OgreRenderScene () |
virtual Camera * | createCamera (const char *name, real left=0.0f, real top=0.0f, real width=1.0f, real height=1.0f) throw (RenderException) |
virtual void | setAmbientLight (const color &c) |
Set the scene ambient light to the given color value. More... | |
virtual void | addResourceDir (const char *dir) |
Add a directory to search for resources in. More... | |
virtual void | initializeResources () |
Onces all resource directories are added, initialize the internal resource system. More... | |
virtual Material * | createMaterial (const char *name) throw (RenderException) |
Create a material object of the given name. More... | |
virtual Figure * | createFigure (const char *name, const char *mat, FigureType type) throw (RenderException) |
Create a figure of the given name, with material named by `mat', and type `type'. More... | |
virtual Light * | createLight () throw (RenderException) |
Create a light object. More... | |
virtual Image * | loadImageFile (const std::string &filename) throw (RenderException) |
Load an image from the given filename. More... | |
virtual Texture * | createTexture (const char *name, sval width, sval height, sval depth, TextureFormat format) throw (RenderException) |
Create a 3D texture with the given name, dimensions, and format. Textures are always 3D but a `depth' value of 1 produces the equivalent of a 2D texture. More... | |
virtual Texture * | loadTextureFile (const char *name, const char *absFilename) throw (RenderException) |
Load a texture of the given name from the image absolute path filename. More... | |
virtual GPUProgram * | createGPUProgram (const char *name, ProgramType ptype, const char *language) throw (RenderException) |
Load a GPU program (shader) of the given name, type, and language (ie. Cg). More... | |
virtual void | saveScreenshot (const char *filename, Camera *c=NULL, int width=0, int height=0, real stereoOffset=0.0, TextureFormat tf=TF_RGB24) throw (RenderException) |
Save a screenshot to the given filename taken from the given camera, or of the whole 3D window if this isn't provided. More... | |
virtual Config * | getConfig () const |
Returns the Config object used to define properties for the scene. More... | |
virtual void | applyResourceOps () |
Iterate over all queued ResourceOp objects, calling their op() method, deleting them, and clearing the queue. More... | |
virtual void | addResourceOp (ResourceOp *op) |
Add the resource operation to the queue, this assigns responsibility to delete `op' to the OgreRenderScene object. More... | |
virtual void | removeResourceOp (std::string parentname) |
Remove operations with the given parent name from the queue. More... | |
virtual void | logMessage (const char *msg) |
Log a message to the renderer log file. More... | |
virtual void | setBGObject (color col, bool enabled) |
Set the background skybox to the given color if `enabled' is true, otherwise disable it. More... | |
virtual Ogre::SceneNode * | createNode (const std::string &name) |
virtual Ogre::SceneNode * | getNode (Figure *fig) |
virtual void | destroyNode (Ogre::SceneNode *node) throw (Ogre::InternalErrorException) |
std::string | getUniqueEntityName (const std::string &name) |
std::string | getUniqueFigureName (const std::string &name) |
std::string | getUniqueResourceName (const std::string &name, Ogre::ResourceManager &rmgr) throw (Ogre::InternalErrorException) |
![]() | |
RenderScene () | |
virtual | ~RenderScene () |
void | setRenderHighQuality (bool val) |
Set whether rendering should be done using high quality passes or not. More... | |
void | setAlwaysHighQuality (bool val) |
Set whether to force high quality rendering. More... | |
bool | getRenderHighQuality () const |
Returns whether the next render operation will be in high quality mode. More... | |
bool | getAlwaysHighQuality () const |
Returns whether to always render in high quality mode. More... | |
Public Attributes | |
Ogre::Root * | root |
Ogre::SceneManager * | mgr |
Ogre::RenderWindow * | win |
Config * | config |
std::string | resGroupName |
Ogre::MaterialPtr | background |
nodemap | nmap |
Maps Figure objects to SceneNode objects created for them. More... | |
u32 | cameraCount |
Counts how many cameras have been created and assigns a unique number to each (up to 31) More... | |
u32 | assetCount |
std::vector< ResourceOp * > | pendingOps |
Mutex | sceneMutex |
typedef std::map<std::string,Ogre::SceneNode*> nodemap |
|
inline |
|
inlinevirtual |
|
virtual |
Add a directory to search for resources in.
Reimplemented from RenderScene.
|
inlinevirtual |
Add the resource operation to the queue, this assigns responsibility to delete `op' to the OgreRenderScene object.
|
inlinevirtual |
Iterate over all queued ResourceOp objects, calling their op() method, deleting them, and clearing the queue.
|
virtual |
Create a camera object with the given name covering the proportionate area of the 3D window. The top left corner of the 3D window is (0.0,0.0) and its dimensions are (1.0,1.0), which are the default values of the left, top, width, and height arguments.
Reimplemented from RenderScene.
|
virtual |
Create a figure of the given name, with material named by `mat', and type `type'.
Reimplemented from RenderScene.
|
virtual |
Load a GPU program (shader) of the given name, type, and language (ie. Cg).
Reimplemented from RenderScene.
|
virtual |
Create a light object.
Reimplemented from RenderScene.
|
virtual |
Create a material object of the given name.
Reimplemented from RenderScene.
|
inlinevirtual |
|
virtual |
Create a 3D texture with the given name, dimensions, and format. Textures are always 3D but a `depth' value of 1 produces the equivalent of a 2D texture.
Reimplemented from RenderScene.
|
inlinevirtual |
|
inlinevirtual |
Returns the Config object used to define properties for the scene.
Reimplemented from RenderScene.
|
inlinevirtual |
std::string getUniqueEntityName | ( | const std::string & | name | ) |
std::string getUniqueFigureName | ( | const std::string & | name | ) |
std::string getUniqueResourceName | ( | const std::string & | name, |
Ogre::ResourceManager & | rmgr | ||
) | |||
throw | ( | Ogre::InternalErrorException | |
) |
|
virtual |
Onces all resource directories are added, initialize the internal resource system.
Reimplemented from RenderScene.
|
virtual |
Load an image from the given filename.
Reimplemented from RenderScene.
|
virtual |
Load a texture of the given name from the image absolute path filename.
Reimplemented from RenderScene.
|
inlinevirtual |
Log a message to the renderer log file.
Reimplemented from RenderScene.
|
inlinevirtual |
Remove operations with the given parent name from the queue.
|
virtual |
Save a screenshot to the given filename taken from the given camera, or of the whole 3D window if this isn't provided.
Reimplemented from RenderScene.
|
virtual |
Set the scene ambient light to the given color value.
Reimplemented from RenderScene.
|
inlinevirtual |
Set the background skybox to the given color if `enabled' is true, otherwise disable it.
Reimplemented from RenderScene.
u32 assetCount |
Ogre::MaterialPtr background |
u32 cameraCount |
Counts how many cameras have been created and assigns a unique number to each (up to 31)
Config* config |
Ogre::SceneManager* mgr |
nodemap nmap |
Maps Figure objects to SceneNode objects created for them.
std::vector<ResourceOp*> pendingOps |
std::string resGroupName |
Ogre::Root* root |
Mutex sceneMutex |
Ogre::RenderWindow* win |