![]() |
http://www.sim.no http://www.coin3d.org |
#include <Inventor/nodes/SoTextureCombine.h>
Inheritance diagram for SoTextureCombine:
This node is more or less an exact mapping of the OpenGL ARB_texture_env_combine extension (included in OpenGL in OpenGL v1.3). See http://oss.sgi.com/projects/ogl-sample/registry/ARB/texture_env_combine.txt for more information about this extension.
Basically this node lets you specify up to three sources, and a function to combine those sources. In addition to the function, it's possible to apply simple operands on the sources. In the documentation below, the sources will be called Arg0, Arg1, and Arg2, just like in the ARB_texture_env_mode specification.
It's possible to specify both a color and an alpha operation.
This node has many fields, but usually it is sufficient to set only one or very few fields. FIXME: more doc, pederb, 2004-01-27
Public Types | |
enum | Source { PRIMARY_COLOR = SoTextureCombineElement::PRIMARY_COLOR, TEXTURE = SoTextureCombineElement::TEXTURE, CONSTANT = SoTextureCombineElement::CONSTANT, PREVIOUS = SoTextureCombineElement::PREVIOUS } |
enum | Operand { SRC_COLOR = SoTextureCombineElement::SRC_COLOR, ONE_MINUS_SRC_COLOR = SoTextureCombineElement::ONE_MINUS_SRC_COLOR, SRC_ALPHA = SoTextureCombineElement::SRC_ALPHA, ONE_MINUS_SRC_ALPHA = SoTextureCombineElement::ONE_MINUS_SRC_ALPHA } |
enum | Operation { REPLACE = SoTextureCombineElement::REPLACE, MODULATE = SoTextureCombineElement::MODULATE, ADD = SoTextureCombineElement::ADD, ADD_SIGNED = SoTextureCombineElement::ADD_SIGNED, SUBTRACT = SoTextureCombineElement::SUBTRACT, INTERPOLATE = SoTextureCombineElement::INTERPOLATE, DOT3_RGB = SoTextureCombineElement::DOT3_RGB, DOT3_RGBA = SoTextureCombineElement::DOT3_RGBA } |
Public Member Functions | |
virtual SoType | getTypeId (void) const |
SoTextureCombine (void) | |
virtual void | doAction (SoAction *action) |
virtual void | callback (SoCallbackAction *action) |
virtual void | GLRender (SoGLRenderAction *action) |
virtual void | pick (SoPickAction *action) |
Static Public Member Functions | |
SoType | getClassTypeId (void) |
void | initClass (void) |
Public Attributes | |
SoMFEnum | rgbSource |
SoMFEnum | alphaSource |
SoMFEnum | rgbOperand |
SoMFEnum | alphaOperand |
SoSFEnum | rgbOperation |
SoSFEnum | alphaOperation |
SoSFFloat | rgbScale |
SoSFFloat | alphaScale |
SoSFVec4f | constantColor |
Protected Member Functions | |
virtual const SoFieldData * | getFieldData (void) const |
virtual | ~SoTextureCombine () |
Static Protected Member Functions | |
const SoFieldData ** | getFieldDataPtr (void) |
|
For enumerating combiner sources. |
|
For enumerating source operands. |
|
For enumerating combiner operations/functions. |
|
Constructor. |
|
Destructor. |
|
SoTextureCombine::constantColor The constant color (when CONSTANT is used as source). Default value is (1,1,1,1). Reimplemented from SoNode. |
|
Returns the type identification of an object derived from a class inheriting SoBase. This is used for run-time type checking and "downward" casting. Usage example:
void foo(SoNode * node) { if (node->getTypeId() == SoFile::getClassTypeId()) { SoFile * filenode = (SoFile *)node; // safe downward cast, knows the type } else if (node->getTypeId().isOfType(SoGroup::getClassTypeId())) { SoGroup * group = (SoGroup *)node; // safe downward cast, knows the type } } For application programmers wanting to extend the library with new nodes, engines, nodekits, draggers or others: this method needs to be overridden in all subclasses. This is typically done as part of setting up the full type system for extension classes, which is usually accomplished by using the pre-defined macros available through for instance Inventor/nodes/SoSubNode.h (SO_NODE_INIT_CLASS and SO_NODE_CONSTRUCTOR for node classes), Inventor/engines/SoSubEngine.h (for engine classes) and so on. For more information on writing Coin extensions, see the class documentation of the toplevel superclasses for the various class groups. Implements SoBase. |
|
This API member is considered internal to the library, as it is not likely to be of interest to the application programmer. Reimplemented from SoNode. |
|
Returns a pointer to the class-wide field data storage object for this instance. If no fields are present, returns Reimplemented from SoFieldContainer. |
|
Sets up initialization for data common to all instances of this class, like submitting necessary information to the Coin type system. Reimplemented from SoNode. |
|
This function performs the typical operation of a node for any action. Reimplemented from SoNode. |
|
Action method for SoCallbackAction. Simply updates the state according to how the node behaves for the render action, so the application programmer can use the SoCallbackAction for extracting information about the scene graph. Reimplemented from SoNode. |
|
Action method for the SoGLRenderAction. This is called during rendering traversals. Nodes influencing the rendering state in any way or who wants to throw geometry primitives at OpenGL overrides this method. Reimplemented from SoNode. |
|
Action method for SoPickAction. Does common processing for SoPickAction action instances. Reimplemented from SoNode. |
Copyright © 1998-2004 by Systems in Motion AS. All rights reserved.
Generated on Tue Jul 13 06:41:15 2004 for Coin by Doxygen. 1.3.4