SoUniformShaderParameter Class Reference
[Shaders]

VSG extension Abstract base class for all uniform shader parameter nodes. More...

#include <Inventor/nodes/SoShaderParameter.h>

Inheritance diagram for SoUniformShaderParameter:
SoShaderParameter SoNode SoFieldContainer SoBase SoRefCounter SoTypedObject SoShaderParameter1f SoShaderParameter1i SoShaderParameter2f SoShaderParameter2i SoShaderParameter3f SoShaderParameter3i SoShaderParameter4f SoShaderParameter4i SoShaderParameterArray1f SoShaderParameterArray1i SoShaderParameterArray2f SoShaderParameterArray2i SoShaderParameterArray3f SoShaderParameterArray3i SoShaderParameterArray4f SoShaderParameterArray4i SoShaderParameterMatrix SoShaderParameterMatrix3 SoShaderParameterMatrixArray SoShaderStateMatrixParameter

List of all members.

Public Member Functions

virtual SoType getTypeId () const
virtual bool isEqual (const SoUniformShaderParameter *param) const =0

Static Public Member Functions

static SoType getClassTypeId ()

Detailed Description

VSG extension Abstract base class for all uniform shader parameter nodes.

This is the abstract class from which all the uniform shader parameter nodes, e.g. SoShaderParameter1i, are derived.

These nodes allow users to provide uniform parameters to a given shader object, e.g. SoFragmentShader.

Uniform shader parameter nodes are usually added to the shader object's parameter field to affect only that specific shader program. They can also be inserted in the scene graph after an SoShaderProgram. In this case they affect whatever shader program is in effect when a shape is rendered.

Each parameter is defined by the following properties:

See the base class SoShaderParameter to get information about how to specify the name and/or identifier of a parameter.

The following examples show how to set a parameter named "scale" in two different ways.

EXAMPLE

EXAMPLE

FILE FORMAT/DEFAULT

SEE ALSO

SoShaderParameter, SoVertexShaderParameter, SoShaderParameter1f, SoShaderParameter1i, SoShaderParameter2f, SoShaderParameter2i, SoShaderParameter3f, SoShaderParameter3i, SoShaderParameter4f, SoShaderParameter4i, SoShaderParameterArray1f, SoShaderParameterArray1i, SoShaderParameterArray2f, SoShaderParameterArray2i, SoShaderParameterArray3f, SoShaderParameterArray3i, SoShaderParameterArray4f, SoShaderParameterArray4i, SoShaderParameterMatrix, SoShaderParameterMatrixArray, SoShaderStateMatrixParameter, SoShaderObject, SoShaderProgram.


Member Function Documentation

static SoType SoUniformShaderParameter::getClassTypeId (  )  [static]
virtual SoType SoUniformShaderParameter::getTypeId (  )  const [virtual]
virtual bool SoUniformShaderParameter::isEqual ( const SoUniformShaderParameter param  )  const [pure virtual]

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

Open Inventor Toolkit reference manual, generated on 4 Sep 2023
Copyright © Thermo Fisher Scientific All rights reserved.
https://www.openinventor.com/