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
Vertex shader parameter node storing a buffer object.
This node allows the application to provide a per-vertex parameter of any type, using an
SoBufferObject, to shader objects, e.g. SoVertexShader.
Vertex shader parameter nodes must be inserted in the scene graph.
See the base classes SoShaderParameter and SoVertexShaderParameter for details.
File format/default:
VertexShaderParameterBufferObject {
| name | "" |
| identifier | 0 |
| value | NULL |
| components | 4 |
| type | SbDataType.FLOAT |
| stride | 0 |
| shouldBeNormalized | false |
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.openinventor.inventor.nodes.SoNode
SoNode.RenderModesNested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal SoSFInt32Specifies the number of components per generic vertex parameter.final SoSFInt32Offset in bytes to the first parameter within the buffer.final SoSFBoolSpecifies if the fixed-point data in the buffer object should be normalized when they are accessed.final SoSFInt32Specifies the byte offset between consecutive generic vertex parameter.final SoSFEnum<SbDataType.DataTypes> Specifies the data type from the classSbDataTypeof each generic vertex parameter component.final SoSFBufferObjectSpecifies the parameter's values.Fields inherited from class com.openinventor.inventor.nodes.SoShaderParameter
identifier, nameFields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle -
Constructor Summary
Constructors -
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, writeMethods inherited from class com.openinventor.inventor.fields.SoFieldContainer
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaultsMethods inherited from class com.openinventor.inventor.misc.SoBase
dispose, getName, isDisposable, isSynchronizable, setName, setSynchronizableMethods inherited from class com.openinventor.inventor.Inventor
getNativeResourceHandle
-
Field Details
-
value
Specifies the parameter's values. -
components
Specifies the number of components per generic vertex parameter. Must be 1, 2, 3 or 4. The default value is 4. -
type
Specifies the data type from the classSbDataTypeof each generic vertex parameter component. . SbDataType.Unknown is not allowed, the default value isSbDataType.FLOAT. -
offset
Offset in bytes to the first parameter within the buffer. Default is 0. -
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
Specifies if the fixed-point data in the buffer object should be normalized when they are accessed. The default value is false.
-
-
Constructor Details
-
SoVertexShaderParameterBufferObject
public SoVertexShaderParameterBufferObject()Constructor.
-