|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IGpuProgramParameters
| Nested Class Summary | |
|---|---|
static interface |
IGpuProgramParameters.IAutoConstantDefinition
|
static interface |
IGpuProgramParameters.IAutoConstantEntry
|
static interface |
IGpuProgramParameters.IAutoConstantIterator
|
static interface |
IGpuProgramParameters.IAutoConstantList
|
static interface |
IGpuProgramParameters.IFloatConstantList
|
static interface |
IGpuProgramParameters.IIntConstantList
|
| Method Summary | |
|---|---|
IGpuConstantDefinition |
_findNamedConstantDefinition(java.lang.String name,
boolean throwExceptionIfMissing)
Find a constant definition for a named parameter. |
IGpuProgramParameters.IAutoConstantEntry |
_findRawAutoConstantEntryFloat(int physicalIndex)
Finds an auto constant that's affecting a given physical position in the floating-point buffer |
IGpuProgramParameters.IAutoConstantEntry |
_findRawAutoConstantEntryInt(int physicalIndex)
Finds an auto constant that's affecting a given physical position in the integer buffer |
int |
_getFloatConstantPhysicalIndex(int logicalIndex,
int requestedSize)
Gets the physical buffer index associated with a logical float constant index. |
int |
_getIntConstantPhysicalIndex(int logicalIndex,
int requestedSize)
Gets the physical buffer index associated with a logical int constant index. |
void |
_readRawConstants(int physicalIndex,
int count,
FloatPointer dest)
Read a series of floating point values from the underlying float constant buffer at the given physical index. |
void |
_readRawConstants(int physicalIndex,
int count,
IntegerPointer dest)
Read a series of integer values from the underlying integer constant buffer at the given physical index. |
void |
_setLogicalIndexes(IGpuLogicalBufferStruct floatIndexMap,
IGpuLogicalBufferStruct intIndexMap)
Internal method for providing a link to a logical index->physical index map for parameters. |
void |
_setNamedConstants(IGpuNamedConstants constantmap)
Internal method for providing a link to a name->definition map for parameters. |
void |
_setRawAutoConstant(int physicalIndex,
GpuProgramParameters.AutoConstantType acType,
int extraInfo,
int elementSize)
As setAutoConstant, but sets up the auto constant directly against a physical buffer index. |
void |
_setRawAutoConstantReal(int physicalIndex,
GpuProgramParameters.AutoConstantType acType,
float rData,
int elementSize)
As setAutoConstantReal, but sets up the auto constant directly against a physical buffer index. |
void |
_updateAutoParamsLightsOnly(IAutoParamDataSource source)
Updates the automatic parameters for lights based on the details provided. |
void |
_updateAutoParamsNoLights(IAutoParamDataSource source)
Updates the automatic parameters (except lights) based on the details provided. |
void |
_writeRawConstant(int physicalIndex,
float val)
Write a single floating-point parameter to the program. |
void |
_writeRawConstant(int physicalIndex,
IColourValue colour,
int count)
Write a parameter to the program. |
void |
_writeRawConstant(int physicalIndex,
IMatrix4 m)
Write a parameter to the program. |
void |
_writeRawConstant(int physicalIndex,
IMatrix4 m,
int numEntries)
Write a list of parameters to the program. |
void |
_writeRawConstant(int physicalIndex,
int val)
Write a single integer parameter to the program. |
void |
_writeRawConstant(int physicalIndex,
IVector3 vec)
Write a 3-element floating-point parameter to the program via . |
void |
_writeRawConstant(int physicalIndex,
IVector4 vec,
int count)
Write a 4-element floating-point parameter to the program directly to the underlying constants buffer. |
void |
_writeRawConstants(int physicalIndex,
DoublePointer val,
int count)
Write a series of floating point values into the underlying float constant buffer at the given physical index. |
void |
_writeRawConstants(int physicalIndex,
FloatPointer val,
int count)
Write a series of floating point values into the underlying float constant buffer at the given physical index. |
void |
_writeRawConstants(int physicalIndex,
IntegerPointer val,
int count)
Write a series of integer values into the underlying integer constant buffer at the given physical index. |
void |
clearAutoConstant(int index)
Unbind an auto constant so that the constant is manually controlled again. |
void |
clearAutoConstants()
Clears all the existing automatic constants. |
void |
clearNamedAutoConstant(java.lang.String name)
Unbind an auto constant so that the constant is manually controlled again. |
void |
copyConstantsFrom(IGpuProgramParameters source)
Copies the values of all constants (including auto constants) from another object. |
IGpuProgramParameters.IAutoConstantEntry |
findAutoConstantEntry(java.lang.String paramName)
Finds an auto constant that's affecting a given named parameter index. |
IGpuProgramParameters.IAutoConstantEntry |
findFloatAutoConstantEntry(int logicalIndex)
Finds an auto constant that's affecting a given logical parameter index for floating-point values. |
IGpuProgramParameters.IAutoConstantEntry |
findIntAutoConstantEntry(int logicalIndex)
Finds an auto constant that's affecting a given logical parameter index for integer values. |
int |
getAutoConstantCount()
|
IGpuProgramParameters.IAutoConstantEntry |
getAutoConstantEntry(int index)
Gets a specific Auto Constant entry if index is in valid range otherwise returns a NULL |
void |
getAutoConstantIterator(IGpuProgramParameters.IAutoConstantIterator returnValue)
Gets an iterator over the automatic constant bindings currently in place. |
IGpuProgramParameters.IAutoConstantList |
getAutoConstantList()
|
IGpuConstantDefinition |
getConstantDefinition(java.lang.String name)
Get a specific for a named parameter. |
void |
getConstantDefinitionIterator(IGpuConstantDefinitionIterator returnValue)
Gets an iterator over the named instances as defined by the program for which these parameters exist. |
IGpuNamedConstants |
getConstantDefinitions()
Get the full list of instances. |
IGpuProgramParameters.IFloatConstantList |
getFloatConstantList()
|
IGpuLogicalBufferStruct |
getFloatLogicalBufferStruct()
Get the current list of mappings from low-level logical param indexes to physical buffer locations in the float buffer. |
int |
getFloatLogicalIndexForPhysicalIndex(int physicalIndex)
Retrieves the logical index relating to a physical index in the float buffer, for programs which support that (low-level programs and high-level programs which use logical parameter indexes). |
FloatPointer |
getFloatPointer_const(int pos)
|
FloatPointer |
getFloatPointer(int pos)
|
IGpuProgramParameters.IIntConstantList |
getIntConstantList()
|
IGpuLogicalBufferStruct |
getIntLogicalBufferStruct()
Get the current list of mappings from low-level logical param indexes to physical buffer locations in the integer buffer. |
int |
getIntLogicalIndexForPhysicalIndex(int physicalIndex)
Retrieves the logical index relating to a physical index in the int buffer, for programs which support that (low-level programs and high-level programs which use logical parameter indexes). |
IntegerPointer |
getIntPointer_const(int pos)
|
IntegerPointer |
getIntPointer(int pos)
|
int |
getPassIterationNumberIndex()
Get the physical buffer index of the pass iteration number constant |
boolean |
getTransposeMatrices()
|
boolean |
hasAutoConstants()
Returns true if this instance has any automatic constants. |
boolean |
hasLogicalIndexedParameters()
Does this parameter set include logically indexed parameters? |
boolean |
hasNamedParameters()
|
boolean |
hasPassIterationNumber()
Does this parameters object have a pass iteration number constant? |
void |
incPassIterationNumber()
increments the multipass number entry by 1 if it exists |
IGpuProgramParameters |
operatorAssignment(IGpuProgramParameters oth)
|
void |
setAutoConstant(int index,
GpuProgramParameters.AutoConstantType acType,
int extraInfo)
Sets up a constant which will automatically be updated by the system. |
void |
setAutoConstantReal(int index,
GpuProgramParameters.AutoConstantType acType,
float rData)
|
void |
setConstant(int index,
DoublePointer val,
int count)
Sets a multiple value constant floating-point parameter to the program. |
void |
setConstant(int index,
float val)
Sets a single floating-point parameter to the program. |
void |
setConstant(int index,
FloatPointer val,
int count)
Sets a multiple value constant floating-point parameter to the program. |
void |
setConstant(int index,
IColourValue colour)
Sets a parameter to the program. |
void |
setConstant(int index,
IMatrix4 m)
Sets a parameter to the program. |
void |
setConstant(int index,
IMatrix4 m,
int numEntries)
Sets a list of parameters to the program. |
void |
setConstant(int index,
IntegerPointer val,
int count)
Sets a multiple value constant integer parameter to the program. |
void |
setConstant(int index,
IVector3 vec)
Sets a 4-element floating-point parameter to the program via . |
void |
setConstant(int index,
IVector4 vec)
Sets a 4-element floating-point parameter to the program. |
void |
setConstantFromTime(int index,
float factor)
Sets a named parameter up to track a derivation of the current time. |
void |
setIgnoreMissingParams(boolean state)
Tells the program whether to ignore missing parameters or not. |
void |
setNamedAutoConstant(java.lang.String name,
GpuProgramParameters.AutoConstantType acType,
int extraInfo)
Sets up a constant which will automatically be updated by the system. |
void |
setNamedAutoConstantReal(java.lang.String name,
GpuProgramParameters.AutoConstantType acType,
float rData)
|
void |
setNamedConstant(java.lang.String name,
DoublePointer val,
int count,
int multiple)
Sets a multiple value constant floating-point parameter to the program. |
void |
setNamedConstant(java.lang.String name,
float val)
Sets a single value constant floating-point parameter to the program. |
void |
setNamedConstant(java.lang.String name,
FloatPointer val,
int count,
int multiple)
Sets a multiple value constant floating-point parameter to the program. |
void |
setNamedConstant(java.lang.String name,
IColourValue colour)
Sets a parameter to the program. |
void |
setNamedConstant(java.lang.String name,
IMatrix4 m)
Sets a parameter to the program. |
void |
setNamedConstant(java.lang.String name,
IMatrix4 m,
int numEntries)
Sets a list of parameters to the program. |
void |
setNamedConstant(java.lang.String name,
int val)
Sets a single value constant integer parameter to the program. |
void |
setNamedConstant(java.lang.String name,
IntegerPointer val,
int count,
int multiple)
Sets a multiple value constant floating-point parameter to the program. |
void |
setNamedConstant(java.lang.String name,
IVector3 vec)
Sets a parameter to the program. |
void |
setNamedConstant(java.lang.String name,
IVector4 vec)
Sets a parameter to the program. |
void |
setNamedConstantFromTime(java.lang.String name,
float factor)
Sets a named parameter up to track a derivation of the current time. |
void |
setTransposeMatrices(boolean val)
Sets whether or not we need to transpose the matrices passed in from the rest of OGRE. |
| Methods inherited from interface org.xbig.base.INativeObject |
|---|
delete, disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer |
| Method Detail |
|---|
IGpuProgramParameters operatorAssignment(IGpuProgramParameters oth)
void _setNamedConstants(IGpuNamedConstants constantmap)
void _setLogicalIndexes(IGpuLogicalBufferStruct floatIndexMap,
IGpuLogicalBufferStruct intIndexMap)
boolean hasNamedParameters()
boolean hasLogicalIndexedParameters()
void setConstant(int index,
IVector4 vec)
void setConstant(int index,
float val)
void setConstant(int index,
IVector3 vec)
void setConstant(int index,
IMatrix4 m)
void setConstant(int index,
IMatrix4 m,
int numEntries)
void setConstant(int index,
FloatPointer val,
int count)
void setConstant(int index,
DoublePointer val,
int count)
void setConstant(int index,
IColourValue colour)
void setConstant(int index,
IntegerPointer val,
int count)
void _writeRawConstants(int physicalIndex,
FloatPointer val,
int count)
void _writeRawConstants(int physicalIndex,
DoublePointer val,
int count)
void _writeRawConstants(int physicalIndex,
IntegerPointer val,
int count)
void _readRawConstants(int physicalIndex,
int count,
FloatPointer dest)
void _readRawConstants(int physicalIndex,
int count,
IntegerPointer dest)
void _writeRawConstant(int physicalIndex,
IVector4 vec,
int count)
void _writeRawConstant(int physicalIndex,
float val)
void _writeRawConstant(int physicalIndex,
int val)
void _writeRawConstant(int physicalIndex,
IVector3 vec)
void _writeRawConstant(int physicalIndex,
IMatrix4 m)
void _writeRawConstant(int physicalIndex,
IMatrix4 m,
int numEntries)
void _writeRawConstant(int physicalIndex,
IColourValue colour,
int count)
void getConstantDefinitionIterator(IGpuConstantDefinitionIterator returnValue)
IGpuConstantDefinition getConstantDefinition(java.lang.String name)
IGpuNamedConstants getConstantDefinitions()
IGpuLogicalBufferStruct getFloatLogicalBufferStruct()
int getFloatLogicalIndexForPhysicalIndex(int physicalIndex)
int getIntLogicalIndexForPhysicalIndex(int physicalIndex)
IGpuLogicalBufferStruct getIntLogicalBufferStruct()
IGpuProgramParameters.IFloatConstantList getFloatConstantList()
FloatPointer getFloatPointer(int pos)
FloatPointer getFloatPointer_const(int pos)
IGpuProgramParameters.IIntConstantList getIntConstantList()
IntegerPointer getIntPointer(int pos)
IntegerPointer getIntPointer_const(int pos)
IGpuProgramParameters.IAutoConstantList getAutoConstantList()
void setAutoConstant(int index,
GpuProgramParameters.AutoConstantType acType,
int extraInfo)
void setAutoConstantReal(int index,
GpuProgramParameters.AutoConstantType acType,
float rData)
void _setRawAutoConstant(int physicalIndex,
GpuProgramParameters.AutoConstantType acType,
int extraInfo,
int elementSize)
void _setRawAutoConstantReal(int physicalIndex,
GpuProgramParameters.AutoConstantType acType,
float rData,
int elementSize)
void clearAutoConstant(int index)
void setConstantFromTime(int index,
float factor)
void clearAutoConstants()
void getAutoConstantIterator(IGpuProgramParameters.IAutoConstantIterator returnValue)
int getAutoConstantCount()
IGpuProgramParameters.IAutoConstantEntry getAutoConstantEntry(int index)
boolean hasAutoConstants()
IGpuProgramParameters.IAutoConstantEntry findFloatAutoConstantEntry(int logicalIndex)
IGpuProgramParameters.IAutoConstantEntry findIntAutoConstantEntry(int logicalIndex)
IGpuProgramParameters.IAutoConstantEntry findAutoConstantEntry(java.lang.String paramName)
IGpuProgramParameters.IAutoConstantEntry _findRawAutoConstantEntryFloat(int physicalIndex)
IGpuProgramParameters.IAutoConstantEntry _findRawAutoConstantEntryInt(int physicalIndex)
void _updateAutoParamsNoLights(IAutoParamDataSource source)
void _updateAutoParamsLightsOnly(IAutoParamDataSource source)
void setIgnoreMissingParams(boolean state)
void setNamedConstant(java.lang.String name,
float val)
void setNamedConstant(java.lang.String name,
int val)
void setNamedConstant(java.lang.String name,
IVector4 vec)
void setNamedConstant(java.lang.String name,
IVector3 vec)
void setNamedConstant(java.lang.String name,
IMatrix4 m)
void setNamedConstant(java.lang.String name,
IMatrix4 m,
int numEntries)
void setNamedConstant(java.lang.String name,
FloatPointer val,
int count,
int multiple)
void setNamedConstant(java.lang.String name,
DoublePointer val,
int count,
int multiple)
void setNamedConstant(java.lang.String name,
IColourValue colour)
void setNamedConstant(java.lang.String name,
IntegerPointer val,
int count,
int multiple)
void setNamedAutoConstant(java.lang.String name,
GpuProgramParameters.AutoConstantType acType,
int extraInfo)
void setNamedAutoConstantReal(java.lang.String name,
GpuProgramParameters.AutoConstantType acType,
float rData)
void setNamedConstantFromTime(java.lang.String name,
float factor)
void clearNamedAutoConstant(java.lang.String name)
IGpuConstantDefinition _findNamedConstantDefinition(java.lang.String name,
boolean throwExceptionIfMissing)
int _getFloatConstantPhysicalIndex(int logicalIndex,
int requestedSize)
int _getIntConstantPhysicalIndex(int logicalIndex,
int requestedSize)
void setTransposeMatrices(boolean val)
boolean getTransposeMatrices()
void copyConstantsFrom(IGpuProgramParameters source)
void incPassIterationNumber()
boolean hasPassIterationNumber()
int getPassIterationNumberIndex()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||