| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- $#include "RenderPath.h"
- class RenderPath
- {
- // SharedPtr<RenderPath> Clone();
- tolua_outside RenderPath* RenderPathClone @ Clone();
- bool Load(XMLFile* file);
- bool Append(XMLFile* file);
- void SetEnabled(const String& tag, bool active);
- void SetEnabled(const char* tag, bool active);
- void ToggleEnabled(const String& tag);
- void ToggleEnabled(const char* tag);
- void SetRenderTarget(unsigned index, const RenderTargetInfo& info);
- void AddRenderTarget(const RenderTargetInfo& info);
- void RemoveRenderTarget(unsigned index);
- void RemoveRenderTarget(const String& name);
- void RemoveRenderTarget(const char* name);
- void RemoveRenderTargets(const String& tag);
- void RemoveRenderTargets(const char* tag);
- void SetCommand(unsigned index, const RenderPathCommand& command);
- void AddCommand(const RenderPathCommand& command);
- void InsertCommand(unsigned index, const RenderPathCommand& command);
- void RemoveCommand(unsigned index);
- void RemoveCommands(const String& tag);
- void RemoveCommands(const char* tag);
- void SetShaderParameter(const String& name, const Variant& value);
- void SetShaderParameter(const char* name, const Variant& value);
- unsigned GetNumRenderTargets() const;
- unsigned GetNumCommands() const;
- const Variant& GetShaderParameter(const String& name) const;
- };
- ${
- RenderPath* RenderPathClone(RenderPath* renderPath)
- {
- if (renderPath == 0)
- return 0;
- RenderPath* newRenderPath = new RenderPath();
- newRenderPath->renderTargets_ = renderPath->renderTargets_;
- newRenderPath->commands_ = renderPath->commands_;
- return newRenderPath;
- }
- $}
|