|
| RenderScene () |
|
virtual | ~RenderScene () |
|
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 | 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...
|
|
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...
|
|
This class represents the rendering scene and the factory for all render-related objects including cameras, lights, figures, and materials. It also is responsible for loading textures and other properties (more to be added later). Only one instance should ever exist which is created by the RenderAdapter instance. None of the methods of this type should be considered thread-safe.
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 in OgreRenderScene.