|
| VOP_Language () |
| Constructor and destructor. More...
|
|
virtual | ~VOP_Language () |
|
virtual const char * | getName () const =0 |
| Returns the name of the language. More...
|
|
virtual VOP_LanguageType | getLanguageType () const =0 |
| Returns the enumerated type of this language. More...
|
|
bool | isVex () const |
|
virtual const char * | getFileExtension () const =0 |
| Gets source code file extension used for code written in this language. More...
|
|
virtual const UT_StringSet & | getReservedWords () const =0 |
|
virtual const char * | getExportKeyword () const =0 |
| Returns the keyword used for shader export (output) parameters. More...
|
|
virtual const char * | getShaderParmSeparator () const |
|
virtual const char * | getSprintf () const =0 |
| Returns the name of formated print function, or NULL if none. More...
|
|
virtual const char * | getIsBoundFunction () const =0 |
| Returns the name of the isbound() function, or NULL if none. More...
|
|
virtual void | getEmptyConstantCode (UT_String &code, const VOP_TypeInfo &type_info) const =0 |
|
virtual void | getCustomTypeEmptyConstantCode (UT_String &code, const VOP_TypeInfo &type_info) const |
| Get the source code for a default value of a struct given in type_info. More...
|
|
virtual void | getConstantCode (UT_String &code, const VOP_TypeInfo &type_info, bool unquoted, const UT_StringArray &value) const =0 |
|
void | getConstantCode (UT_StringHolder &code, const VOP_TypeInfo &type_info, bool unquoted, const UT_StringArray &value) const |
|
virtual void | getSupportedShaderTypes (VOP_ShaderTypeList &list) const |
| Get the shader contexts available in that language. More...
|
|
virtual void | getShaderTypeCode (UT_String &code, VOP_ContextType context) const |
| Get the source code keyword for the given shader type. More...
|
|
virtual void | getCustomTypeCode (UT_String &code, const VOP_TypeInfo &type_info) const |
| Get the source code that declares a variable of the given struct type. More...
|
|
virtual void | getTypeDefinitionCode (UT_String &type_definition, const VOP_TypeInfo &type_info) const |
| Get the source code that defines the given type (eg, struct definition). More...
|
|
virtual void | getMemberVarAccessOpCode (UT_String &access_op) const |
| Get the variable member access operator for structs/classes. More...
|
|
virtual bool | shouldSpecifyMemberDefaults () const |
|
virtual void | getStructDefinitionTerminator (UT_String &term) const |
|
virtual bool | needsFunctionParmExportKeyword () const |
|
virtual bool | canUseShaderCalls (VOP_ContextType context) const =0 |
|
virtual void | getFunctionCall (UT_String &str, const UT_String &func_name, const UT_StringArray &args) const =0 |
| Writes out a function call to the buffer. More...
|
|
virtual void | getShaderCall (UT_String &buffer, const UT_String &shader_name, const UT_StringArray &arg_names, const UT_StringArray &arg_vals) const =0 |
| Writes out a co-shader call to the buffer. More...
|
|
virtual void | getGlobalVariables (UT_Array< VOP_VarInfo > &global_vars, VOP_ContextType context) const |
| Obtains the list of global variables available in the given context. More...
|
|
const VOP_NodeParmManager & | getParmManager () const |
| Returns a manager that maps VOP types to PRM node parameters. More...
|
|
virtual const char * | getVopnetMaskTarget (VOP_ContextType context_type) const |
|
virtual const char * | getTypeUIColor (VOP_Type type) const |
| Returns a color name for the connectors of the given type. More...
|
|
virtual bool | canDirectlyAssign (const VOP_TypeInfo &dst_type, const VOP_TypeInfo &src_type) const |
| Returns ture if the second type can be assigned directly to first. More...
|
|
|
virtual void | getTypeCode (UT_String &code, const VOP_TypeInfo &type_info) const =0 |
| Gets type source code keyword for declaring variables of that type. More...
|
|
virtual void | getVaryingTypeCode (UT_String &code, const VOP_TypeInfo &type_info) const |
| Gets type source code keyword for declaring variables of that type. More...
|
|
|
virtual void | getArrayBracketsCode (UT_String &code, const VOP_TypeInfo &type_info) const |
|
|
virtual bool | supportsUniformVarying () const |
| Returns true, if the language supports uniform varying variables. More...
|
|
virtual bool | isTypeUniformVarying (VOP_Type type) const |
| Returns true, if the language supports uniform varying variables. More...
|
|
|
virtual VOP_Type | conditionType (VOP_Type type) const =0 |
| Take an arbitrary type and return the type supported by the language. More...
|
|
int | isTypeSupported (VOP_Type type) const |
| Take an arbitrary type and return the type supported by the language. More...
|
|
Reprsents a language for which VOPs can generate source code.
Definition at line 27 of file VOP_Language.h.