This page has been translated automatically.
UnigineScript
The Language
Core Library
Engine Library
Node-Related Classes
GUI-Related Classes
Plugins Library
High-Level Systems
Samples
Usage Examples
C++ API
API Reference
Integration Samples
Usage Examples
C++ Plugins
Migration
Migrating to UNIGINE 2.0
C++ API Migration
Migrating from UNIGINE 2.0 to UNIGINE 2.1
Warning! This version of documentation is OUTDATED, as it describes an older SDK version! Please switch to the documentation for the latest SDK version.
Warning! This version of documentation describes an old SDK version which is no longer supported! Please upgrade to the latest SDK version.

Unigine::Render Class

UNIGINEUNIGINE 2.0Comments
-virtual int loadSettings(const char * name) const =0 Loads the render settings from a given file.
-virtual int saveSettings(const char * name, int force) const =0 Saves the current render settings to a given file.
-virtual int saveWorld (const XmlPtr & xml, int force) const =0 Saves a render state into the Xml.
-virtual void setData(const char * data) const =0 Sets user data associated with the world.
-virtual const char * getData() const =0 Returns user string data associated with the world.
-virtual void setBudget(float budget) const =0 Sets the value of the render budget, which limits the number of loaded/created graphics resources during a frame according to the loading/creation time.
-virtual float getBudget() const =0 Returns the value of the render budget, which limits the number of loaded/created graphics resources during a frame according to the loading/creation time.
-virtual void setRenderMaterials(const char * materials) const =0 Sets render postprocess materials that are applied before all other postprocess (such as HDR, DOF, etc.) are rendered.
-virtual const char * getRenderMaterials() const =0 Returns names of the current postprocess materials that are applied before all other postprocess (such as HDR, DOF, etc.) are rendered.
-virtual void setCompositeMaterial(const char * materials) const =0 Sets a custom composite material that specifies a custom shader used for the final composition of the full-screen image instead of the default one.
-virtual const char * getCompositeMaterial() const =0 Returns a name of the current composite material that specifies a custom shader used for the final composition of the full-screen image instead of the default one.
-virtual void setPostMaterials(const char * materials) const =0 Sets post postprocess materials that are applied after all other postprocess (such as HDR, DOF, etc.) are rendered.
-virtual const char * getPostMaterials() const =0 Returns names of the current post postprocess materials that are applied after all other postprocess (such as HDR, DOF, etc.) are rendered.
-virtual void setFadeColor(const vec4 & color) const =0 Sets the current fade color for the scene on the screen.
-virtual vec4 getFadeColor() const =0 Returns the current fade color of the scene.
virtual void renderViewport(const mat4 & projection, const UNIGINE_MAT4 & modelview, const char * materials, int viewport_mask, int reflection_mask, int shadows) const =0virtual void renderViewport(const mat4 & projection, const UNIGINE_MAT4 & modelview, const char * materials, int viewport_mask, int reflection_mask, int shadows, int visualizer) const =0 Renders the viewport into the current render target.
virtual void renderViewport (const mat4 & projection, const UNIGINE_MAT4 & modelview, const mat4 * projections, const UNIGINE_MAT4 * modelviews, const char * materials, int viewport_mask, int reflection_mask, int shadows) const =0virtual void renderViewport (const mat4 & projection, const UNIGINE_MAT4 & modelview, const mat4 * projections, const UNIGINE_MAT4 * modelviews, const char * materials, int viewport_mask, int reflection_mask, int shadows, int visualizer) const =0 Renders the stereo viewport into the current render target.
Last update: 2017-07-03
Build: ()