Package com.openinventor.inventor.nodes
Class SoVertexShaderParameterBufferObject
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.inventor.misc.SoBase
-
- com.openinventor.inventor.fields.SoFieldContainer
-
- com.openinventor.inventor.nodes.SoNode
-
- com.openinventor.inventor.nodes.SoShaderParameter
-
- com.openinventor.inventor.nodes.SoVertexShaderParameter
-
- com.openinventor.inventor.nodes.SoVertexShaderParameterBufferObject
-
- All Implemented Interfaces:
SafeDisposable
- Direct Known Subclasses:
SoInstanceParameter
public class SoVertexShaderParameterBufferObject extends SoVertexShaderParameter
Vertex shader parameter node storing a buffer object. This node allows the application to provide a per-vertex parameter of any type, using anSoBufferObject, to shader objects, e.g.SoVertexShader.Vertex shader parameter nodes must be inserted in the scene graph.
See the base classes
SoShaderParameterandSoVertexShaderParameterfor details.File format/default:
VertexShaderParameterBufferObject {
name "" identifier 0 value NULL components 4 type SbDataType.FLOATstride 0 shouldBeNormalized false - See Also:
SoShaderParameter,SoVertexShaderParameter,SoUniformShaderParameter,SoVertexShaderParameter1f,SoVertexShaderParameter1s,SoVertexShaderParameter2f,SoVertexShaderParameter2s,SoVertexShaderParameter3f,SoVertexShaderParameter3s,SoVertexShaderParameter4i,SoVertexShaderParameter4s,SoVertexShaderParameter4b,SoVertexShaderParameter4ui,SoVertexShaderParameter4us,SoVertexShaderParameter4ub,SoVertexShaderParameterMatrix,SoShaderObject,SoShaderProgram
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.openinventor.inventor.nodes.SoNode
SoNode.RenderModes
-
Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand
-
-
Field Summary
Fields Modifier and Type Field Description SoSFInt32componentsSpecifies the number of components per generic vertex parameter.SoSFInt32offsetOffset in bytes to the first parameter within the buffer.SoSFBoolshouldBeNormalizedSpecifies if the fixed-point data in the buffer object should be normalized when they are accessed.SoSFInt32strideSpecifies the byte offset between consecutive generic vertex parameter.SoSFEnum<SbDataType.DataTypes>typeSpecifies the data type from the classSbDataTypeof each generic vertex parameter component.SoSFBufferObjectvalueSpecifies the parameter's values.-
Fields inherited from class com.openinventor.inventor.nodes.SoShaderParameter
identifier, name
-
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
-
Constructor Summary
Constructors Constructor Description SoVertexShaderParameterBufferObject()Constructor.
-
Method Summary
-
Methods inherited from class com.openinventor.inventor.nodes.SoNode
affectsState, callback, copy, copy, distribute, doAction, getAlternateRep, getBoundingBox, getByName, getMatrix, getPrimitiveCount, getRenderEngineMode, getRenderUnitID, GLRender, GLRenderBelowPath, GLRenderInPath, GLRenderOffPath, grabEventsCleanup, grabEventsSetup, handleEvent, isBoundingBoxIgnoring, isOverride, pick, rayPick, search, setOverride, touch, write
-
Methods inherited from class com.openinventor.inventor.fields.SoFieldContainer
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaults
-
Methods inherited from class com.openinventor.inventor.misc.SoBase
dispose, getName, isDisposable, isSynchronizable, setName, setSynchronizable
-
Methods inherited from class com.openinventor.inventor.Inventor
getNativeResourceHandle
-
-
-
-
Field Detail
-
value
public final SoSFBufferObject value
Specifies the parameter's values.
-
components
public final SoSFInt32 components
Specifies the number of components per generic vertex parameter. Must be 1, 2, 3 or 4. The default value is 4.
-
type
public final SoSFEnum<SbDataType.DataTypes> type
Specifies the data type from the classSbDataTypeof each generic vertex parameter component. . SbDataType.Unknown is not allowed, the default value isSbDataType.FLOAT.
-
offset
public final SoSFInt32 offset
Offset in bytes to the first parameter within the buffer. Default is 0.
-
stride
public final SoSFInt32 stride
Specifies the byte offset between consecutive generic vertex parameter. If stride is 0, the values are understood to be tightly packed in the buffer object. The default value is 0.
-
shouldBeNormalized
public final SoSFBool shouldBeNormalized
Specifies if the fixed-point data in the buffer object should be normalized when they are accessed. The default value is false.
-
-