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

Partially implemented. More...

#include <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.


Member Data Documentation

auto_ptr< SFFloat > H3D::MultiTexture::alpha
 

Base alpha value for SELECT mode operations.

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

auto_ptr< SFColor > H3D::MultiTexture::color
 

Base alpha value for SELECT mode operations.

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

auto_ptr< MFString > H3D::MultiTexture::function
 

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

auto_ptr< MFString > H3D::MultiTexture::mode
 

The mode field controls the type of blending operation.

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

Access type: inputOutput

auto_ptr< MFString > H3D::MultiTexture::source
 

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

This is not supported at this time.

Access type: inputOutput

auto_ptr< MFTexture > H3D::MultiTexture::texture
 

The texture field contains a list of X3DTextureNode instances (e.g., ImageTexture, PixelTexture and MultiTexture).

The texture field may not contain another MultiTexture node.

Access type: inputOutput


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