HDK
 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, const 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

A helper class for translating content between shading models.

Definition at line 21 of file ShaderTranslator.h.

Constructor & Destructor Documentation

ShaderTranslator::ShaderTranslator ( )
inlineprotected

Definition at line 37 of file ShaderTranslator.h.

Member Function Documentation

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

Definition at line 24 of file ShaderTranslator.h.

void ShaderTranslator::translateAllMaterials ( DocumentPtr  doc,
const 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
protected

Definition at line 46 of file ShaderTranslator.h.

NodePtr ShaderTranslator::_translationNode
protected

Definition at line 47 of file ShaderTranslator.h.


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