Urho3D
Public Member Functions | Public Attributes
Urho3D::RenderPath Class Reference

Rendering path definition. More...

#include <RenderPath.h>

Inheritance diagram for Urho3D::RenderPath:
Urho3D::RefCounted

List of all members.

Public Member Functions

 RenderPath ()
 Construct.
 ~RenderPath ()
 Destruct.
SharedPtr< RenderPathClone ()
 Clone the rendering path.
bool LoadParameters (XMLFile *file)
 Read from an XML file. Return true if successful.
bool Append (XMLFile *file)
 Append data from an XML file. Return true if successful.
void SetActive (const String &tag, bool active)
 Activate/inactivate commands and rendertargets by tag.
void ToggleActive (const String &tag)
 Toggle activation of commands and rendertargets by tag.
void SetRenderTarget (unsigned index, const RenderTargetInfo &info)
 Assign rendertarget at index.
void AddRenderTarget (const RenderTargetInfo &info)
 Add a rendertarget.
void RemoveRenderTarget (unsigned index)
 Remove a rendertarget by index.
void RemoveRenderTarget (const String &name)
 Remove a rendertarget by name.
void RemoveRenderTargets (const String &tag)
 Remove rendertargets by tag name.
void SetCommand (unsigned index, const RenderPathCommand &command)
 Assign command at index.
void AddCommand (const RenderPathCommand &command)
 Add a command to the end of the list.
void InsertCommand (unsigned index, const RenderPathCommand &command)
 Insert a command at a position.
void RemoveCommand (unsigned index)
 Remove a command by index.
void RemoveCommands (const String &tag)
 Remove commands by tag name.
void SetShaderParameter (const String &name, const Vector4 &value)
 Set a shader parameter in all commands that define it.
unsigned GetNumRenderTargets () const
 Return number of rendertargets.
unsigned GetNumCommands () const
 Return number of commands.
const Vector4GetShaderParameter (const String &name) const
 Return a shader parameter (first appearance in any command.)
- Public Member Functions inherited from Urho3D::RefCounted
 RefCounted ()
 Construct. Allocate the reference count structure and set an initial self weak reference.
virtual ~RefCounted ()
 Destruct. Mark as expired and also delete the reference count structure if no outside weak references exist.
void AddRef ()
 Increment reference count. Can also be called outside of a SharedPtr for traditional reference counting.
void ReleaseRef ()
 Decrement reference count and delete self if no more references. Can also be called outside of a SharedPtr for traditional reference counting.
int Refs () const
 Return reference count.
int WeakRefs () const
 Return weak reference count.
RefCountRefCountPtr ()
 Return pointer to the reference count structure.

Public Attributes

Vector< RenderTargetInforenderTargets_
 Rendertargets.
Vector< RenderPathCommandcommands_
 Rendering commands.

Detailed Description

Rendering path definition.


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