public class SoCpuBufferUniform extends SoCpuBufferObject
See also:
SoBufferPropertiesInterface, SoCpuBufferObject
SoBufferObject.AccessModes
Inventor.ConstructorCommand
SO_BUFFER_SIZE_ALL
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SoCpuBufferUniform()
Default constructor.
|
SoCpuBufferUniform(double value,
SbDataType valueType)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
double[] |
getMinMax()
Get the min and max values in the buffer, if they are known.
|
long |
getRealSize()
Returns the real size of the buffer in bytes.
|
SbDataType |
getType()
Get the type of the value of the uniform tile.
|
double |
getValue()
Get the value of the uniform tile.
|
void |
map(SoCpuBufferObject targetBufferObject,
SoBufferObject.AccessModes accessMode)
Calls map(targetBufferObject, accessMode, (long)0, (long)SO_BUFFER_SIZE_ALL).
|
void |
map(SoCpuBufferObject targetBufferObject,
SoBufferObject.AccessModes accessMode,
long startPosition)
Calls map(targetBufferObject, accessMode, startPosition, (long)SO_BUFFER_SIZE_ALL).
|
void |
map(SoCpuBufferObject targetBufferObject,
SoBufferObject.AccessModes accessMode,
long startPosition,
long mappingSize)
Map the current buffer object into the specified CPU buffer object.
|
void |
map(SoGLBufferObject targetBufferObject,
SoBufferObject.AccessModes accessMode)
Calls map(targetBufferObject, accessMode, (long)0, (long)SO_BUFFER_SIZE_ALL).
|
void |
map(SoGLBufferObject targetBufferObject,
SoBufferObject.AccessModes accessMode,
long startPosition)
Calls map(targetBufferObject, accessMode, startPosition, (long)SO_BUFFER_SIZE_ALL).
|
void |
map(SoGLBufferObject targetBufferObject,
SoBufferObject.AccessModes accessMode,
long startPosition,
long mappingSize)
Map the current buffer object into the specified GL buffer object.
|
void |
setRealSize(long realSize)
Set the real size of the buffer object in bytes.
|
void |
setValue(double value,
SbDataType dataType)
Set the value and data type for this uniform buffer.
|
void |
unmap(SoCpuBufferObject bufferObject)
Unmap the specified CPU buffer object
It is defined just to speed up the call when the type of the object is known. |
void |
unmap(SoGLBufferObject bufferObject)
Unmap the specified GL buffer object
It is defined just to speed up the call when the type of the object is known. |
clearInstance, setBuffer, setSize
createInstance, dispose, getBufferObjectCache, getContext, getMappedBufferObject, getMappedBufferObjectAccessMode, getMappedBufferObjectPosition, getMappedBufferObjectSize, getSize, isDisposable, lockBuffer, map, map, map, map, map, map, memcpy, memcpy, memcpy, memcpy, unlockBuffer, unmap, unmap
getNativeResourceHandle
public SoCpuBufferUniform()
public SoCpuBufferUniform(double value, SbDataType valueType)
value
- Initial value of uniform buffer.
valueType
- Initial value type of uniform buffer.public void map(SoGLBufferObject targetBufferObject, SoBufferObject.AccessModes accessMode, long startPosition)
public void map(SoCpuBufferObject targetBufferObject, SoBufferObject.AccessModes accessMode, long startPosition)
public void map(SoCpuBufferObject targetBufferObject, SoBufferObject.AccessModes accessMode)
public void map(SoGLBufferObject targetBufferObject, SoBufferObject.AccessModes accessMode)
public void unmap(SoGLBufferObject bufferObject)
See the general unmap function for more information.
bufferObject
- Buffer to be unmapped.public double getValue()
public void map(SoCpuBufferObject targetBufferObject, SoBufferObject.AccessModes accessMode, long startPosition, long mappingSize)
See the general map method for more information.
public void map(SoGLBufferObject targetBufferObject, SoBufferObject.AccessModes accessMode, long startPosition, long mappingSize)
See the general map method for more information.
public void unmap(SoCpuBufferObject bufferObject)
See the general unmap function for more information.
public double[] getMinMax()
min
- user variable to store min value
max
- user variable to store max valuepublic SbDataType getType()
public void setRealSize(long realSize)
public long getRealSize()
public void setValue(double value, SbDataType dataType)
Generated on July 31, 2019, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com