H3D::ShaderProgram Class Reference
[X3D node classes.]

The ShaderProgram node provides the source and interface to a self contained program that occupies one part of the rendering process: either a vertex or fragment shader. More...

#include <ShaderProgram.h>

Inheritance diagram for H3D::ShaderProgram:

Inheritance graph
List of all members.

Public Member Functions

 ShaderProgram (Inst< SFNode > _metadata=0, Inst< DisplayList > _displayList=0, Inst< MFString > _url=0, Inst< SFString > _type=0)
 Constructor.
virtual string defaultXMLContainerField ()
 Returns the default xml containerField attribute value.

Public Attributes

auto_ptr< SFStringtype
 The type field indicates whether this object shall be compiled as a vertex shader, fragment shader, or other future-defined shader type.

Static Public Attributes

static H3DNodeDatabase database
 The H3DNodeDatabase for this node.

Detailed Description

The ShaderProgram node provides the source and interface to a self contained program that occupies one part of the rendering process: either a vertex or fragment shader.

The shader source is read from the URL specified by the url field. When the url field contains no values ([]), this object instance is ignored. Shader source files shall be plain text encoded as specified for MIME type text/plain and interpreted according to the containing node's language definition.

Internal routes:
ShaderProgram.dot


Member Function Documentation

virtual string H3D::ShaderProgram::defaultXMLContainerField  )  [inline, virtual]
 

Returns the default xml containerField attribute value.

For this node it is "programs".

Reimplemented from H3D::Node.


Member Data Documentation

auto_ptr< SFString > H3D::ShaderProgram::type
 

The type field indicates whether this object shall be compiled as a vertex shader, fragment shader, or other future-defined shader type.

Valid values are "VERTEX" and "FRAGMENT".

Access type: initializeOnly
ShaderProgram_type.dot


Generated on Thu Aug 24 12:39:57 2006 for H3D API by  doxygen 1.4.5