#include <ShaderPart.h>
Inheritance diagram for H3D::ShaderPart:

Public Member Functions | |
| ShaderPart (Inst< SFNode > _metadata=0, Inst< MFString > _url=0, Inst< SFString > _type=0, Inst< SFShaderString > _shader_string=0) | |
| Constructor. | |
| virtual GLhandleARB | compileShader () |
| Compile the shader using the shader_string field as text input. | |
| GLhandleARB | getShaderHandle () |
| Get the handle to the shader object that currently is used for this ShaderPart. | |
| virtual string | defaultXMLContainerField () |
| Returns the default xml containerField attribute value. | |
| virtual X3DUrlObject::LoadStatus | loadStatus () |
| The loadStatus function returns the status of the loading of the current urls in order to be used with the LoadSensor node. | |
Public Attributes | |
| auto_ptr< SFString > | type |
| The type field indicates whether this object shall be compiled as a vertex shader, fragment shader, or other future-defined shader type. | |
| auto_ptr< SFShaderString > | shaderString |
| Internal field that contains the string loaded from file and to be used as input to the shader. | |
Static Public Attributes | |
| static H3DNodeDatabase | database |
| The H3DNodeDatabase for this node. | |
Protected Attributes | |
| GLhandleARB | shader_handle |
| The handle to the shader object used for this ShaderPart. | |
Classes | |
| class | SFShaderString |
| Update the string to use as shader depending from the urls given. More... | |
The source is not required to be a complete shader for all of the vertex/fragment processing.
The type field indicates whether this object shall be compiled as a vertex shader, fragment shader, or other future-defined shader type.
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 type field.
|
|
Compile the shader using the shader_string field as text input. Returns a handle to the compiled shader or 0 if compiling failed. |
|
|
Returns the default xml containerField attribute value. For this node it is "parts". Reimplemented from H3D::Node. |
|
|
Internal field that contains the string loaded from file and to be used as input to the shader.
|
|
|
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 |
1.4.5