All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ShaderTranslator Class Reference

#include <ShaderTranslator.h>

Public Member Functions

void translateShader (NodePtr shader, const string &destCategory)
 Translate a shader node to the destination shading model. More...
void translateAllMaterials (DocumentPtr doc, string destShader)

Static Public Member Functions

static ShaderTranslatorPtr create ()

Protected Member Functions

 ShaderTranslator ()
void connectTranslationInputs (NodePtr shader, NodeDefPtr translationNodeDef)
void connectTranslationOutputs (NodePtr shader)

Protected Attributes

NodeGraphPtr _graph
NodePtr _translationNode

Detailed Description

Definition at line 20 of file ShaderTranslator.h.

Constructor & Destructor Documentation

ShaderTranslator::ShaderTranslator ( )

Definition at line 36 of file ShaderTranslator.h.

Member Function Documentation

void ShaderTranslator::connectTranslationInputs ( NodePtr  shader,
NodeDefPtr  translationNodeDef 
void ShaderTranslator::connectTranslationOutputs ( NodePtr  shader)
static ShaderTranslatorPtr ShaderTranslator::create ( )

Definition at line 23 of file ShaderTranslator.h.

void ShaderTranslator::translateAllMaterials ( DocumentPtr  doc,
string  destShader 

Translate each material in the input document to the destination shading model.

void ShaderTranslator::translateShader ( NodePtr  shader,
const string destCategory 

Translate a shader node to the destination shading model.

Member Data Documentation

NodeGraphPtr ShaderTranslator::_graph

Definition at line 45 of file ShaderTranslator.h.

NodePtr ShaderTranslator::_translationNode

Definition at line 46 of file ShaderTranslator.h.

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