U3D
Open-source, cross-platform 2D and 3D game engine built in C++
|
Rendering path command. More...
#include </var/dev/u3d/stable/Source/Urho3D/Graphics/RenderPath.h>
Public Member Functions | |
void | Load (const XMLElement &element) |
Read from an XML element. | |
void | SetTextureName (TextureUnit unit, const String &name) |
void | SetShaderParameter (const String &name, const Variant &value) |
void | RemoveShaderParameter (const String &name) |
Remove a shader parameter. | |
void | SetNumOutputs (unsigned num) |
void | SetOutput (unsigned index, const String &name, CubeMapFace face=FACE_POSITIVE_X) |
Set output rendertarget name and face index for cube maps. | |
void | SetOutputName (unsigned index, const String &name) |
void | SetOutputFace (unsigned index, CubeMapFace face) |
void | SetDepthStencilName (const String &name) |
const String & | GetTextureName (TextureUnit unit) const |
const Variant & | GetShaderParameter (const String &name) const |
unsigned | GetNumOutputs () const |
const String & | GetOutputName (unsigned index) const |
CubeMapFace | GetOutputFace (unsigned index) const |
const String & | GetDepthStencilName () const |
Public Attributes | |
String | tag_ |
Tag name. | |
RenderCommandType | type_ {} |
Command type. | |
RenderCommandSortMode | sortMode_ {} |
Sorting mode. | |
String | pass_ |
Scene pass name. | |
unsigned | passIndex_ {} |
Scene pass index. Filled by View. | |
String | metadata_ |
Command/pass metadata. | |
String | vertexShaderName_ |
Vertex shader name. | |
String | pixelShaderName_ |
Pixel shader name. | |
String | vertexShaderDefines_ |
Vertex shader defines. | |
String | pixelShaderDefines_ |
Pixel shader defines. | |
String | textureNames_ [MAX_TEXTURE_UNITS] |
Textures. | |
HashMap< StringHash, Variant > | shaderParameters_ |
Shader parameters. | |
Vector< Pair< String, CubeMapFace > > | outputs_ |
Output rendertarget names and faces. | |
String | depthStencilName_ |
Depth-stencil output name. | |
ClearTargetFlags | clearFlags_ {} |
Clear flags. Affects clear command only. | |
Color | clearColor_ |
Clear color. Affects clear command only. | |
float | clearDepth_ {} |
Clear depth. Affects clear command only. | |
unsigned | clearStencil_ {} |
Clear stencil value. Affects clear command only. | |
BlendMode | blendMode_ {BLEND_REPLACE} |
Blend mode. Affects quad command only. | |
bool | enabled_ {true} |
Enabled flag. | |
bool | useFogColor_ {} |
Use fog color for clearing. | |
bool | markToStencil_ {} |
Mark to stencil flag. | |
bool | useLitBase_ {true} |
Use lit base pass optimization for forward per-pixel lights. | |
bool | vertexLights_ {} |
Vertex lights flag. | |
String | eventName_ |
Event name. | |
Rendering path command.
|
inline |
Return depth-stencil output name.
|
inline |
Return number of output rendertargets.
CubeMapFace Urho3D::RenderPathCommand::GetOutputFace | ( | unsigned | index | ) | const |
Return output rendertarget face index.
const String & Urho3D::RenderPathCommand::GetOutputName | ( | unsigned | index | ) | const |
Return output rendertarget name.
Return shader parameter.
const String & Urho3D::RenderPathCommand::GetTextureName | ( | TextureUnit | unit | ) | const |
Return texture resource name.
void Urho3D::RenderPathCommand::SetDepthStencilName | ( | const String & | name | ) |
Set depth-stencil output name. When empty, will assign a depth-stencil buffer automatically.
void Urho3D::RenderPathCommand::SetNumOutputs | ( | unsigned | num | ) |
Set number of output rendertargets.
void Urho3D::RenderPathCommand::SetOutputFace | ( | unsigned | index, |
CubeMapFace | face | ||
) |
Set output rendertarget face index for cube maps.
void Urho3D::RenderPathCommand::SetOutputName | ( | unsigned | index, |
const String & | name | ||
) |
Set output rendertarget name.
Set a shader parameter.
void Urho3D::RenderPathCommand::SetTextureName | ( | TextureUnit | unit, |
const String & | name | ||
) |
Set a texture resource name. Can also refer to a rendertarget defined in the rendering path.