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

Partially implemented. More...

#include <H3D/MultiTexture.h>

Inheritance diagram for H3D::MultiTexture:

Inheritance graph

List of all members.

Public Types

typedef DependentMFNode
< X3DTextureNode, FieldRef
< H3DDisplayListObject,
H3DDisplayListObject::DisplayList,&H3DDisplayListObject::displayList >
, true > 
MFTexture
 An MFNode where we make sure the type of the nodes contained is a subclass of X3DTextureNode.

Public Member Functions

 MultiTexture (Inst< DisplayList > _displayList=0, Inst< SFFloat > _alpha=0, Inst< SFColor > _color=0, Inst< MFString > _function=0, Inst< SFNode > _metadata=0, Inst< MFString > _mode=0, Inst< MFString > _source=0, Inst< MFTexture > _texture=0)
 Constructor.
virtual void render ()
 Install the textures in OpenGL.
virtual void enableTexturing ()
 Enable texturing for all textures in the MultiTexture.
virtual void disableTexturing ()
 Disable texturing for all textures in the MultiTexture.

Public Attributes

auto_ptr< SFFloatalpha
 Base alpha value for SELECT mode operations.
auto_ptr< SFColorcolor
 Base alpha value for SELECT mode operations.
auto_ptr< MFStringfunction
 The function field defines an optional function to be applied to the argument after the mode has been evaluated.
auto_ptr< MFStringmode
 The mode field controls the type of blending operation.
auto_ptr< MFStringsource
 The source field determines the colour source for the second argument.
auto_ptr< MFTexturetexture
 The texture field contains a list of X3DTextureNode instances (e.g., ImageTexture, PixelTexture and MultiTexture).

Static Public Attributes

static H3DNodeDatabase database
 The H3DNodeDatabase for this node.


Detailed Description

Partially implemented.

MultiTexture enables the application of several individual textures to a 3D object to achieve a more complex visual effect. MultiTexture can be used as a value for the texture field in an Appearance node. The texture field contains a list of texture nodes (e.g., ImageTexture, PixelTexture, MovieTexture, and MultiTexture). The texture field may not contain another MultiTexture node.

Internal routes:
MultiTexture.dot

Member Typedef Documentation

An MFNode where we make sure the type of the nodes contained is a subclass of X3DTextureNode.


Member Data Documentation

Base alpha value for SELECT mode operations.

Access type: inputOutput
Default value: 1
Valid range: [0-1]

MultiTexture_alpha.dot

Referenced by MultiTexture(), and render().

Base alpha value for SELECT mode operations.

Access type: inputOutput
Default value: RGB( 1, 1, 1 )
Valid range: [0-1]

MultiTexture_color.dot

Referenced by MultiTexture(), and render().

The function field defines an optional function to be applied to the argument after the mode has been evaluated.

This is not supported at this time.

Access type: inputOutput

MultiTexture_function.dot

Referenced by MultiTexture(), and render().

The mode field controls the type of blending operation.

The only available mode at this time is "MODULATE".

Access type: inputOutput

MultiTexture_mode.dot

Referenced by MultiTexture(), and render().

The source field determines the colour source for the second argument.

This is not supported at this time.

Access type: inputOutput

MultiTexture_source.dot

Referenced by MultiTexture(), and render().


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

Generated on Fri Nov 7 10:30:37 2008 for H3D API by  doxygen 1.5.7