org.ogre4j
Interface IGpuProgramParameters

All Superinterfaces:
IAllocatedObject<IRenderSysAllocPolicy>, INativeObject, IRenderSysAllocatedObject
All Known Implementing Classes:
GpuProgramParameters

public interface IGpuProgramParameters
extends INativeObject, IRenderSysAllocatedObject


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

operatorAssignment

IGpuProgramParameters operatorAssignment(IGpuProgramParameters oth)

_setNamedConstants

void _setNamedConstants(IGpuNamedConstants constantmap)
Internal method for providing a link to a name->definition map for parameters.


_setLogicalIndexes

void _setLogicalIndexes(IGpuLogicalBufferStruct floatIndexMap,
                        IGpuLogicalBufferStruct intIndexMap)
Internal method for providing a link to a logical index->physical index map for parameters.


hasNamedParameters

boolean hasNamedParameters()

hasLogicalIndexedParameters

boolean hasLogicalIndexedParameters()
Does this parameter set include logically indexed parameters?


setConstant

void setConstant(int index,
                 IVector4 vec)
Sets a 4-element floating-point parameter to the program.


setConstant

void setConstant(int index,
                 float val)
Sets a single floating-point parameter to the program.


setConstant

void setConstant(int index,
                 IVector3 vec)
Sets a 4-element floating-point parameter to the program via .


setConstant

void setConstant(int index,
                 IMatrix4 m)
Sets a parameter to the program.


setConstant

void setConstant(int index,
                 IMatrix4 m,
                 int numEntries)
Sets a list of parameters to the program.


setConstant

void setConstant(int index,
                 FloatPointer val,
                 int count)
Sets a multiple value constant floating-point parameter to the program.


setConstant

void setConstant(int index,
                 DoublePointer val,
                 int count)
Sets a multiple value constant floating-point parameter to the program.


setConstant

void setConstant(int index,
                 IColourValue colour)
Sets a parameter to the program.


setConstant

void setConstant(int index,
                 IntegerPointer val,
                 int count)
Sets a multiple value constant integer parameter to the program.


_writeRawConstants

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.


_writeRawConstants

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.


_writeRawConstants

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.


_readRawConstants

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.


_readRawConstants

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.


_writeRawConstant

void _writeRawConstant(int physicalIndex,
                       IVector4 vec,
                       int count)
Write a 4-element floating-point parameter to the program directly to the underlying constants buffer.


_writeRawConstant

void _writeRawConstant(int physicalIndex,
                       float val)
Write a single floating-point parameter to the program.


_writeRawConstant

void _writeRawConstant(int physicalIndex,
                       int val)
Write a single integer parameter to the program.


_writeRawConstant

void _writeRawConstant(int physicalIndex,
                       IVector3 vec)
Write a 3-element floating-point parameter to the program via .


_writeRawConstant

void _writeRawConstant(int physicalIndex,
                       IMatrix4 m)
Write a parameter to the program.


_writeRawConstant

void _writeRawConstant(int physicalIndex,
                       IMatrix4 m,
                       int numEntries)
Write a list of parameters to the program.


_writeRawConstant

void _writeRawConstant(int physicalIndex,
                       IColourValue colour,
                       int count)
Write a parameter to the program.


getConstantDefinitionIterator

void getConstantDefinitionIterator(IGpuConstantDefinitionIterator returnValue)
Gets an iterator over the named instances as defined by the program for which these parameters exist.


getConstantDefinition

IGpuConstantDefinition getConstantDefinition(java.lang.String name)
Get a specific for a named parameter.


getConstantDefinitions

IGpuNamedConstants getConstantDefinitions()
Get the full list of instances.


getFloatLogicalBufferStruct

IGpuLogicalBufferStruct getFloatLogicalBufferStruct()
Get the current list of mappings from low-level logical param indexes to physical buffer locations in the float buffer.


getFloatLogicalIndexForPhysicalIndex

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).


getIntLogicalIndexForPhysicalIndex

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).


getIntLogicalBufferStruct

IGpuLogicalBufferStruct getIntLogicalBufferStruct()
Get the current list of mappings from low-level logical param indexes to physical buffer locations in the integer buffer.


getFloatConstantList

IGpuProgramParameters.IFloatConstantList getFloatConstantList()

getFloatPointer

FloatPointer getFloatPointer(int pos)

getFloatPointer_const

FloatPointer getFloatPointer_const(int pos)

getIntConstantList

IGpuProgramParameters.IIntConstantList getIntConstantList()

getIntPointer

IntegerPointer getIntPointer(int pos)

getIntPointer_const

IntegerPointer getIntPointer_const(int pos)

getAutoConstantList

IGpuProgramParameters.IAutoConstantList getAutoConstantList()

setAutoConstant

void setAutoConstant(int index,
                     GpuProgramParameters.AutoConstantType acType,
                     int extraInfo)
Sets up a constant which will automatically be updated by the system.


setAutoConstantReal

void setAutoConstantReal(int index,
                         GpuProgramParameters.AutoConstantType acType,
                         float rData)

_setRawAutoConstant

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.


_setRawAutoConstantReal

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.


clearAutoConstant

void clearAutoConstant(int index)
Unbind an auto constant so that the constant is manually controlled again.


setConstantFromTime

void setConstantFromTime(int index,
                         float factor)
Sets a named parameter up to track a derivation of the current time.


clearAutoConstants

void clearAutoConstants()
Clears all the existing automatic constants.


getAutoConstantIterator

void getAutoConstantIterator(IGpuProgramParameters.IAutoConstantIterator returnValue)
Gets an iterator over the automatic constant bindings currently in place.


getAutoConstantCount

int getAutoConstantCount()

getAutoConstantEntry

IGpuProgramParameters.IAutoConstantEntry getAutoConstantEntry(int index)
Gets a specific Auto Constant entry if index is in valid range otherwise returns a NULL


hasAutoConstants

boolean hasAutoConstants()
Returns true if this instance has any automatic constants.


findFloatAutoConstantEntry

IGpuProgramParameters.IAutoConstantEntry findFloatAutoConstantEntry(int logicalIndex)
Finds an auto constant that's affecting a given logical parameter index for floating-point values.


findIntAutoConstantEntry

IGpuProgramParameters.IAutoConstantEntry findIntAutoConstantEntry(int logicalIndex)
Finds an auto constant that's affecting a given logical parameter index for integer values.


findAutoConstantEntry

IGpuProgramParameters.IAutoConstantEntry findAutoConstantEntry(java.lang.String paramName)
Finds an auto constant that's affecting a given named parameter index.


_findRawAutoConstantEntryFloat

IGpuProgramParameters.IAutoConstantEntry _findRawAutoConstantEntryFloat(int physicalIndex)
Finds an auto constant that's affecting a given physical position in the floating-point buffer


_findRawAutoConstantEntryInt

IGpuProgramParameters.IAutoConstantEntry _findRawAutoConstantEntryInt(int physicalIndex)
Finds an auto constant that's affecting a given physical position in the integer buffer


_updateAutoParamsNoLights

void _updateAutoParamsNoLights(IAutoParamDataSource source)
Updates the automatic parameters (except lights) based on the details provided.


_updateAutoParamsLightsOnly

void _updateAutoParamsLightsOnly(IAutoParamDataSource source)
Updates the automatic parameters for lights based on the details provided.


setIgnoreMissingParams

void setIgnoreMissingParams(boolean state)
Tells the program whether to ignore missing parameters or not.


setNamedConstant

void setNamedConstant(java.lang.String name,
                      float val)
Sets a single value constant floating-point parameter to the program.


setNamedConstant

void setNamedConstant(java.lang.String name,
                      int val)
Sets a single value constant integer parameter to the program.


setNamedConstant

void setNamedConstant(java.lang.String name,
                      IVector4 vec)
Sets a parameter to the program.


setNamedConstant

void setNamedConstant(java.lang.String name,
                      IVector3 vec)
Sets a parameter to the program.


setNamedConstant

void setNamedConstant(java.lang.String name,
                      IMatrix4 m)
Sets a parameter to the program.


setNamedConstant

void setNamedConstant(java.lang.String name,
                      IMatrix4 m,
                      int numEntries)
Sets a list of parameters to the program.


setNamedConstant

void setNamedConstant(java.lang.String name,
                      FloatPointer val,
                      int count,
                      int multiple)
Sets a multiple value constant floating-point parameter to the program.


setNamedConstant

void setNamedConstant(java.lang.String name,
                      DoublePointer val,
                      int count,
                      int multiple)
Sets a multiple value constant floating-point parameter to the program.


setNamedConstant

void setNamedConstant(java.lang.String name,
                      IColourValue colour)
Sets a parameter to the program.


setNamedConstant

void setNamedConstant(java.lang.String name,
                      IntegerPointer val,
                      int count,
                      int multiple)
Sets a multiple value constant floating-point parameter to the program.


setNamedAutoConstant

void setNamedAutoConstant(java.lang.String name,
                          GpuProgramParameters.AutoConstantType acType,
                          int extraInfo)
Sets up a constant which will automatically be updated by the system.


setNamedAutoConstantReal

void setNamedAutoConstantReal(java.lang.String name,
                              GpuProgramParameters.AutoConstantType acType,
                              float rData)

setNamedConstantFromTime

void setNamedConstantFromTime(java.lang.String name,
                              float factor)
Sets a named parameter up to track a derivation of the current time.


clearNamedAutoConstant

void clearNamedAutoConstant(java.lang.String name)
Unbind an auto constant so that the constant is manually controlled again.


_findNamedConstantDefinition

IGpuConstantDefinition _findNamedConstantDefinition(java.lang.String name,
                                                    boolean throwExceptionIfMissing)
Find a constant definition for a named parameter.


_getFloatConstantPhysicalIndex

int _getFloatConstantPhysicalIndex(int logicalIndex,
                                   int requestedSize)
Gets the physical buffer index associated with a logical float constant index.


_getIntConstantPhysicalIndex

int _getIntConstantPhysicalIndex(int logicalIndex,
                                 int requestedSize)
Gets the physical buffer index associated with a logical int constant index.


setTransposeMatrices

void setTransposeMatrices(boolean val)
Sets whether or not we need to transpose the matrices passed in from the rest of OGRE.


getTransposeMatrices

boolean getTransposeMatrices()

copyConstantsFrom

void copyConstantsFrom(IGpuProgramParameters source)
Copies the values of all constants (including auto constants) from another object.


incPassIterationNumber

void incPassIterationNumber()
increments the multipass number entry by 1 if it exists


hasPassIterationNumber

boolean hasPassIterationNumber()
Does this parameters object have a pass iteration number constant?


getPassIterationNumberIndex

int getPassIterationNumberIndex()
Get the physical buffer index of the pass iteration number constant



Copyright © 2007 netAllied GmbH. All Rights Reserved.