|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xbig.base.NativeObject
org.ogre4j.GpuProgramParameters
public class GpuProgramParameters
| Nested Class Summary | |
|---|---|
static class |
GpuProgramParameters.ACDataType
|
static class |
GpuProgramParameters.AutoConstantDefinition
|
static class |
GpuProgramParameters.AutoConstantEntry
|
static class |
GpuProgramParameters.AutoConstantIterator
|
static class |
GpuProgramParameters.AutoConstantList
|
static class |
GpuProgramParameters.AutoConstantType
|
static class |
GpuProgramParameters.ElementType
|
static class |
GpuProgramParameters.FloatConstantList
|
static class |
GpuProgramParameters.IntConstantList
|
| Nested classes/interfaces inherited from interface org.ogre4j.IGpuProgramParameters |
|---|
IGpuProgramParameters.IAutoConstantDefinition, IGpuProgramParameters.IAutoConstantEntry, IGpuProgramParameters.IAutoConstantIterator, IGpuProgramParameters.IAutoConstantList, IGpuProgramParameters.IFloatConstantList, IGpuProgramParameters.IIntConstantList |
| Field Summary |
|---|
| Fields inherited from class org.xbig.base.NativeObject |
|---|
deleted, object, remote |
| Constructor Summary | |
|---|---|
|
GpuProgramParameters()
|
|
GpuProgramParameters(IGpuProgramParameters oth)
|
|
GpuProgramParameters(InstancePointer p)
This constructor is public for internal useage only! |
protected |
GpuProgramParameters(InstancePointer p,
boolean remote)
Creates a Java wrapper object for an existing C++ object. |
|
GpuProgramParameters(WithoutNativeObject val)
Allows creation of Java objects without C++ objects. |
| 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. |
void |
delete()
Deletes the corresponding C++ object. |
void |
finalize()
|
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()
|
static IGpuProgramParameters.IAutoConstantDefinition |
getAutoConstantDefinition(int idx)
gets the auto constant definition using an index into the auto constant definition array. |
static IGpuProgramParameters.IAutoConstantDefinition |
getAutoConstantDefinition(java.lang.String name)
gets the auto constant definition associated with name if found else returns NULL |
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)
|
static int |
getNumAutoConstantDefinitions()
Returns the number of auto constant definitions |
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 class org.xbig.base.NativeObject |
|---|
disconnectFromNativeObject, equals, getInstancePointer, hashCode, setInstancePointer, setInstancePointer, setInstancePointer, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.xbig.base.INativeObject |
|---|
disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer |
| Constructor Detail |
|---|
public GpuProgramParameters(InstancePointer p)
protected GpuProgramParameters(InstancePointer p,
boolean remote)
public GpuProgramParameters(WithoutNativeObject val)
WithoutNativeObject,
INativeObject.disconnectFromNativeObject()public GpuProgramParameters()
public GpuProgramParameters(IGpuProgramParameters oth)
| Method Detail |
|---|
public void delete()
INativeObjectSubclasses must implement this but if the native instance was created by the underlying library the native call to dispose must not happen!
delete in interface INativeObjectdelete in class NativeObject#remotepublic void finalize()
finalize in class NativeObjectpublic IGpuProgramParameters operatorAssignment(IGpuProgramParameters oth)
operatorAssignment in interface IGpuProgramParameterspublic void _setNamedConstants(IGpuNamedConstants constantmap)
_setNamedConstants in interface IGpuProgramParameters
public void _setLogicalIndexes(IGpuLogicalBufferStruct floatIndexMap,
IGpuLogicalBufferStruct intIndexMap)
_setLogicalIndexes in interface IGpuProgramParameterspublic boolean hasNamedParameters()
hasNamedParameters in interface IGpuProgramParameterspublic boolean hasLogicalIndexedParameters()
hasLogicalIndexedParameters in interface IGpuProgramParameters
public void setConstant(int index,
IVector4 vec)
setConstant in interface IGpuProgramParameters
public void setConstant(int index,
float val)
setConstant in interface IGpuProgramParameters
public void setConstant(int index,
IVector3 vec)
setConstant in interface IGpuProgramParameters
public void setConstant(int index,
IMatrix4 m)
setConstant in interface IGpuProgramParameters
public void setConstant(int index,
IMatrix4 m,
int numEntries)
setConstant in interface IGpuProgramParameters
public void setConstant(int index,
FloatPointer val,
int count)
setConstant in interface IGpuProgramParameters
public void setConstant(int index,
DoublePointer val,
int count)
setConstant in interface IGpuProgramParameters
public void setConstant(int index,
IColourValue colour)
setConstant in interface IGpuProgramParameters
public void setConstant(int index,
IntegerPointer val,
int count)
setConstant in interface IGpuProgramParameters
public void _writeRawConstants(int physicalIndex,
FloatPointer val,
int count)
_writeRawConstants in interface IGpuProgramParameters
public void _writeRawConstants(int physicalIndex,
DoublePointer val,
int count)
_writeRawConstants in interface IGpuProgramParameters
public void _writeRawConstants(int physicalIndex,
IntegerPointer val,
int count)
_writeRawConstants in interface IGpuProgramParameters
public void _readRawConstants(int physicalIndex,
int count,
FloatPointer dest)
_readRawConstants in interface IGpuProgramParameters
public void _readRawConstants(int physicalIndex,
int count,
IntegerPointer dest)
_readRawConstants in interface IGpuProgramParameters
public void _writeRawConstant(int physicalIndex,
IVector4 vec,
int count)
_writeRawConstant in interface IGpuProgramParameters
public void _writeRawConstant(int physicalIndex,
float val)
_writeRawConstant in interface IGpuProgramParameters
public void _writeRawConstant(int physicalIndex,
int val)
_writeRawConstant in interface IGpuProgramParameters
public void _writeRawConstant(int physicalIndex,
IVector3 vec)
_writeRawConstant in interface IGpuProgramParameters
public void _writeRawConstant(int physicalIndex,
IMatrix4 m)
_writeRawConstant in interface IGpuProgramParameters
public void _writeRawConstant(int physicalIndex,
IMatrix4 m,
int numEntries)
_writeRawConstant in interface IGpuProgramParameters
public void _writeRawConstant(int physicalIndex,
IColourValue colour,
int count)
_writeRawConstant in interface IGpuProgramParameterspublic void getConstantDefinitionIterator(IGpuConstantDefinitionIterator returnValue)
getConstantDefinitionIterator in interface IGpuProgramParameterspublic IGpuConstantDefinition getConstantDefinition(java.lang.String name)
getConstantDefinition in interface IGpuProgramParameterspublic IGpuNamedConstants getConstantDefinitions()
getConstantDefinitions in interface IGpuProgramParameterspublic IGpuLogicalBufferStruct getFloatLogicalBufferStruct()
getFloatLogicalBufferStruct in interface IGpuProgramParameterspublic int getFloatLogicalIndexForPhysicalIndex(int physicalIndex)
getFloatLogicalIndexForPhysicalIndex in interface IGpuProgramParameterspublic int getIntLogicalIndexForPhysicalIndex(int physicalIndex)
getIntLogicalIndexForPhysicalIndex in interface IGpuProgramParameterspublic IGpuLogicalBufferStruct getIntLogicalBufferStruct()
getIntLogicalBufferStruct in interface IGpuProgramParameterspublic IGpuProgramParameters.IFloatConstantList getFloatConstantList()
getFloatConstantList in interface IGpuProgramParameterspublic FloatPointer getFloatPointer(int pos)
getFloatPointer in interface IGpuProgramParameterspublic FloatPointer getFloatPointer_const(int pos)
getFloatPointer_const in interface IGpuProgramParameterspublic IGpuProgramParameters.IIntConstantList getIntConstantList()
getIntConstantList in interface IGpuProgramParameterspublic IntegerPointer getIntPointer(int pos)
getIntPointer in interface IGpuProgramParameterspublic IntegerPointer getIntPointer_const(int pos)
getIntPointer_const in interface IGpuProgramParameterspublic IGpuProgramParameters.IAutoConstantList getAutoConstantList()
getAutoConstantList in interface IGpuProgramParameters
public void setAutoConstant(int index,
GpuProgramParameters.AutoConstantType acType,
int extraInfo)
setAutoConstant in interface IGpuProgramParameters
public void setAutoConstantReal(int index,
GpuProgramParameters.AutoConstantType acType,
float rData)
setAutoConstantReal in interface IGpuProgramParameters
public void _setRawAutoConstant(int physicalIndex,
GpuProgramParameters.AutoConstantType acType,
int extraInfo,
int elementSize)
_setRawAutoConstant in interface IGpuProgramParameters
public void _setRawAutoConstantReal(int physicalIndex,
GpuProgramParameters.AutoConstantType acType,
float rData,
int elementSize)
_setRawAutoConstantReal in interface IGpuProgramParameterspublic void clearAutoConstant(int index)
clearAutoConstant in interface IGpuProgramParameters
public void setConstantFromTime(int index,
float factor)
setConstantFromTime in interface IGpuProgramParameterspublic void clearAutoConstants()
clearAutoConstants in interface IGpuProgramParameterspublic void getAutoConstantIterator(IGpuProgramParameters.IAutoConstantIterator returnValue)
getAutoConstantIterator in interface IGpuProgramParameterspublic int getAutoConstantCount()
getAutoConstantCount in interface IGpuProgramParameterspublic IGpuProgramParameters.IAutoConstantEntry getAutoConstantEntry(int index)
getAutoConstantEntry in interface IGpuProgramParameterspublic boolean hasAutoConstants()
hasAutoConstants in interface IGpuProgramParameterspublic IGpuProgramParameters.IAutoConstantEntry findFloatAutoConstantEntry(int logicalIndex)
findFloatAutoConstantEntry in interface IGpuProgramParameterspublic IGpuProgramParameters.IAutoConstantEntry findIntAutoConstantEntry(int logicalIndex)
findIntAutoConstantEntry in interface IGpuProgramParameterspublic IGpuProgramParameters.IAutoConstantEntry findAutoConstantEntry(java.lang.String paramName)
findAutoConstantEntry in interface IGpuProgramParameterspublic IGpuProgramParameters.IAutoConstantEntry _findRawAutoConstantEntryFloat(int physicalIndex)
_findRawAutoConstantEntryFloat in interface IGpuProgramParameterspublic IGpuProgramParameters.IAutoConstantEntry _findRawAutoConstantEntryInt(int physicalIndex)
_findRawAutoConstantEntryInt in interface IGpuProgramParameterspublic void _updateAutoParamsNoLights(IAutoParamDataSource source)
_updateAutoParamsNoLights in interface IGpuProgramParameterspublic void _updateAutoParamsLightsOnly(IAutoParamDataSource source)
_updateAutoParamsLightsOnly in interface IGpuProgramParameterspublic void setIgnoreMissingParams(boolean state)
setIgnoreMissingParams in interface IGpuProgramParameters
public void setNamedConstant(java.lang.String name,
float val)
setNamedConstant in interface IGpuProgramParameters
public void setNamedConstant(java.lang.String name,
int val)
setNamedConstant in interface IGpuProgramParameters
public void setNamedConstant(java.lang.String name,
IVector4 vec)
setNamedConstant in interface IGpuProgramParameters
public void setNamedConstant(java.lang.String name,
IVector3 vec)
setNamedConstant in interface IGpuProgramParameters
public void setNamedConstant(java.lang.String name,
IMatrix4 m)
setNamedConstant in interface IGpuProgramParameters
public void setNamedConstant(java.lang.String name,
IMatrix4 m,
int numEntries)
setNamedConstant in interface IGpuProgramParameters
public void setNamedConstant(java.lang.String name,
FloatPointer val,
int count,
int multiple)
setNamedConstant in interface IGpuProgramParameters
public void setNamedConstant(java.lang.String name,
DoublePointer val,
int count,
int multiple)
setNamedConstant in interface IGpuProgramParameters
public void setNamedConstant(java.lang.String name,
IColourValue colour)
setNamedConstant in interface IGpuProgramParameters
public void setNamedConstant(java.lang.String name,
IntegerPointer val,
int count,
int multiple)
setNamedConstant in interface IGpuProgramParameters
public void setNamedAutoConstant(java.lang.String name,
GpuProgramParameters.AutoConstantType acType,
int extraInfo)
setNamedAutoConstant in interface IGpuProgramParameters
public void setNamedAutoConstantReal(java.lang.String name,
GpuProgramParameters.AutoConstantType acType,
float rData)
setNamedAutoConstantReal in interface IGpuProgramParameters
public void setNamedConstantFromTime(java.lang.String name,
float factor)
setNamedConstantFromTime in interface IGpuProgramParameterspublic void clearNamedAutoConstant(java.lang.String name)
clearNamedAutoConstant in interface IGpuProgramParameters
public IGpuConstantDefinition _findNamedConstantDefinition(java.lang.String name,
boolean throwExceptionIfMissing)
_findNamedConstantDefinition in interface IGpuProgramParameters
public int _getFloatConstantPhysicalIndex(int logicalIndex,
int requestedSize)
_getFloatConstantPhysicalIndex in interface IGpuProgramParameters
public int _getIntConstantPhysicalIndex(int logicalIndex,
int requestedSize)
_getIntConstantPhysicalIndex in interface IGpuProgramParameterspublic void setTransposeMatrices(boolean val)
setTransposeMatrices in interface IGpuProgramParameterspublic boolean getTransposeMatrices()
getTransposeMatrices in interface IGpuProgramParameterspublic void copyConstantsFrom(IGpuProgramParameters source)
copyConstantsFrom in interface IGpuProgramParameterspublic void incPassIterationNumber()
incPassIterationNumber in interface IGpuProgramParameterspublic boolean hasPassIterationNumber()
hasPassIterationNumber in interface IGpuProgramParameterspublic int getPassIterationNumberIndex()
getPassIterationNumberIndex in interface IGpuProgramParameterspublic static IGpuProgramParameters.IAutoConstantDefinition getAutoConstantDefinition(java.lang.String name)
public static IGpuProgramParameters.IAutoConstantDefinition getAutoConstantDefinition(int idx)
public static int getNumAutoConstantDefinitions()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||