| Urho3D
    | 
Rendering path definition. A sequence of commands (e.g. clear screen, draw objects with specific pass) that yields the scene rendering result. More...
#include </home/runner/work/Dviglo/Dviglo/DvigloRepository/Source/Urho3D/Graphics/RenderPath.h>
 
  
| Public Member Functions | |
| RenderPath () | |
| Construct. | |
| ~RenderPath () override | |
| Destruct. | |
| SharedPtr< RenderPath > | Clone () | 
| Clone the rendering path. | |
| bool | Load (XMLFile *file) | 
| Clear existing data and load from an XML file. Return true if successful. | |
| bool | Append (XMLFile *file) | 
| Append data from an XML file. Return true if successful. | |
| void | SetEnabled (const String &tag, bool active) | 
| Enable/disable commands and rendertargets by tag. | |
| bool | IsEnabled (const String &tag) const | 
| bool | IsAdded (const String &tag) const | 
| void | ToggleEnabled (const String &tag) | 
| Toggle enabled state of commands and rendertargets by tag. | |
| void | SetRenderTarget (unsigned index, const RenderTargetInfo &info) | 
| 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) | 
| 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 Variant &value) | 
| unsigned | GetNumRenderTargets () const | 
| unsigned | GetNumCommands () const | 
| RenderPathCommand * | GetCommand (unsigned index) | 
| Return command at index, or null if does not exist. | |
| const Variant & | GetShaderParameter (const String &name) const | 
|  Public Member Functions inherited from Dviglo::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. | |
| RefCounted (const RefCounted &rhs)=delete | |
| Prevent copy construction. | |
| RefCounted & | operator= (const RefCounted &rhs)=delete | 
| Prevent assignment. | |
| void | AddRef () | 
| void | ReleaseRef () | 
| int | Refs () const | 
| int | WeakRefs () const | 
| RefCount * | RefCountPtr () | 
| Return pointer to the reference count structure. | |
| Public Attributes | |
| Vector< RenderTargetInfo > | renderTargets_ | 
| Rendertargets. | |
| Vector< RenderPathCommand > | commands_ | 
| Rendering commands. | |
Rendering path definition. A sequence of commands (e.g. clear screen, draw objects with specific pass) that yields the scene rendering result.
| 
 | inline | 
Return number of commands.
| 
 | inline | 
Return number of rendertargets.
Return a shader parameter (first appearance in any command).
| bool Dviglo::RenderPath::IsAdded | ( | const String & | tag | ) | const | 
Return true if renderpath or command with given tag exists.
| bool Dviglo::RenderPath::IsEnabled | ( | const String & | tag | ) | const | 
Return true of any of render targets or commands with specified tag are enabled.
| void Dviglo::RenderPath::SetCommand | ( | unsigned | index, | 
| const RenderPathCommand & | command | ||
| ) | 
Assign command at index.
| void Dviglo::RenderPath::SetRenderTarget | ( | unsigned | index, | 
| const RenderTargetInfo & | info | ||
| ) | 
Assign rendertarget at index.
Set a shader parameter in all commands that define it.
 1.8.17
 1.8.17