29 #ifndef __SHADERPROGRAM_H__
30 #define __SHADERPROGRAM_H__
73 Inst< DisplayList > _displayList = 0,
74 Inst< MFString > _url = 0,
75 Inst< SFString > _type = 0 );
82 virtual void enableCGShaderProgram();
85 virtual void disableCGShaderProgram();
88 virtual void initCGShaderProgram();
91 virtual void destroyCGShaderProgram();
96 virtual void setCGProfile(
const string &profile );
99 virtual void render();
103 virtual bool addField(
const string &_name,
127 CGprofile cg_profile;
128 CGcontext cg_context;
129 CGprogram cg_program;
130 string cg_profile_string;
Header file for H3DDisplayListObject.
Contains the SFString field class.
Header file for X3DNode, X3D scene-graph node.
Header file for X3DProgrammableShaderObject.
Header file for X3DUrlObject, X3D scene-graph node.
The Field class.
Definition: Field.h:46
AccessType
The different access types that a field can have.
Definition: Field.h:53
This abstract interface class is the base class for all node types that wants to create an OpenGL dis...
Definition: H3DDisplayListObject.h:54
The ShaderProgram node provides the source and interface to a self contained program that occupies on...
Definition: ShaderProgram.h:68
static H3DNodeDatabase database
The H3DNodeDatabase for this node.
Definition: ShaderProgram.h:123
virtual string defaultXMLContainerField()
Returns the default xml containerField attribute value.
Definition: ShaderProgram.h:110
H3DUniquePtr< SFString > type
The type field indicates whether this object shall be compiled as a vertex shader,...
Definition: ShaderProgram.h:120
This abstract node type is the base type for all nodes in the X3D system.
Definition: X3DNode.h:65
This abstract node type is the base type for all node types that specify arbitrary fields for interfa...
Definition: X3DProgrammableShaderObject.h:64
This abstract interface is inherited by all nodes that contain data located on the World Wide Web,...
Definition: X3DUrlObject.h:51
H3D API namespace.
Definition: Anchor.h:38
The H3DNodeDatabase contains a mapping between a name of a Node and the constructor for the Node with...
Definition: H3DNodeDatabase.h:194