org.ogre4j
Class GpuProgramParameters

java.lang.Object
  extended by org.xbig.base.NativeObject
      extended by org.ogre4j.GpuProgramParameters
All Implemented Interfaces:
IAllocatedObject<IRenderSysAllocPolicy>, IGpuProgramParameters, IRenderSysAllocatedObject, INativeObject

public class GpuProgramParameters
extends NativeObject
implements IGpuProgramParameters


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

GpuProgramParameters

public GpuProgramParameters(InstancePointer p)
This constructor is public for internal useage only! Do not use it!


GpuProgramParameters

protected GpuProgramParameters(InstancePointer p,
                               boolean remote)
Creates a Java wrapper object for an existing C++ object. If remote is set to 'true' this object cannot be deleted in Java.


GpuProgramParameters

public GpuProgramParameters(WithoutNativeObject val)
Allows creation of Java objects without C++ objects.

See Also:
WithoutNativeObject, INativeObject.disconnectFromNativeObject()

GpuProgramParameters

public GpuProgramParameters()

GpuProgramParameters

public GpuProgramParameters(IGpuProgramParameters oth)
Method Detail

delete

public void delete()
Description copied from interface: INativeObject
Deletes the corresponding C++ object.

Subclasses must implement this but if the native instance was created by the underlying library the native call to dispose must not happen!

Specified by:
delete in interface INativeObject
Specified by:
delete in class NativeObject
See Also:
#remote

finalize

public void finalize()
Overrides:
finalize in class NativeObject

operatorAssignment

public IGpuProgramParameters operatorAssignment(IGpuProgramParameters oth)
Specified by:
operatorAssignment in interface IGpuProgramParameters

_setNamedConstants

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

Specified by:
_setNamedConstants in interface IGpuProgramParameters

_setLogicalIndexes

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

Specified by:
_setLogicalIndexes in interface IGpuProgramParameters

hasNamedParameters

public boolean hasNamedParameters()
Specified by:
hasNamedParameters in interface IGpuProgramParameters

hasLogicalIndexedParameters

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

Specified by:
hasLogicalIndexedParameters in interface IGpuProgramParameters

setConstant

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

Specified by:
setConstant in interface IGpuProgramParameters

setConstant

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

Specified by:
setConstant in interface IGpuProgramParameters

setConstant

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

Specified by:
setConstant in interface IGpuProgramParameters

setConstant

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

Specified by:
setConstant in interface IGpuProgramParameters

setConstant

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

Specified by:
setConstant in interface IGpuProgramParameters

setConstant

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

Specified by:
setConstant in interface IGpuProgramParameters

setConstant

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

Specified by:
setConstant in interface IGpuProgramParameters

setConstant

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

Specified by:
setConstant in interface IGpuProgramParameters

setConstant

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

Specified by:
setConstant in interface IGpuProgramParameters

_writeRawConstants

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

Specified by:
_writeRawConstants in interface IGpuProgramParameters

_writeRawConstants

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

Specified by:
_writeRawConstants in interface IGpuProgramParameters

_writeRawConstants

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

Specified by:
_writeRawConstants in interface IGpuProgramParameters

_readRawConstants

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

Specified by:
_readRawConstants in interface IGpuProgramParameters

_readRawConstants

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

Specified by:
_readRawConstants in interface IGpuProgramParameters

_writeRawConstant

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

Specified by:
_writeRawConstant in interface IGpuProgramParameters

_writeRawConstant

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

Specified by:
_writeRawConstant in interface IGpuProgramParameters

_writeRawConstant

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

Specified by:
_writeRawConstant in interface IGpuProgramParameters

_writeRawConstant

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

Specified by:
_writeRawConstant in interface IGpuProgramParameters

_writeRawConstant

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

Specified by:
_writeRawConstant in interface IGpuProgramParameters

_writeRawConstant

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

Specified by:
_writeRawConstant in interface IGpuProgramParameters

_writeRawConstant

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

Specified by:
_writeRawConstant in interface IGpuProgramParameters

getConstantDefinitionIterator

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

Specified by:
getConstantDefinitionIterator in interface IGpuProgramParameters

getConstantDefinition

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

Specified by:
getConstantDefinition in interface IGpuProgramParameters

getConstantDefinitions

public IGpuNamedConstants getConstantDefinitions()
Get the full list of instances.

Specified by:
getConstantDefinitions in interface IGpuProgramParameters

getFloatLogicalBufferStruct

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

Specified by:
getFloatLogicalBufferStruct in interface IGpuProgramParameters

getFloatLogicalIndexForPhysicalIndex

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

Specified by:
getFloatLogicalIndexForPhysicalIndex in interface IGpuProgramParameters

getIntLogicalIndexForPhysicalIndex

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

Specified by:
getIntLogicalIndexForPhysicalIndex in interface IGpuProgramParameters

getIntLogicalBufferStruct

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

Specified by:
getIntLogicalBufferStruct in interface IGpuProgramParameters

getFloatConstantList

public IGpuProgramParameters.IFloatConstantList getFloatConstantList()
Specified by:
getFloatConstantList in interface IGpuProgramParameters

getFloatPointer

public FloatPointer getFloatPointer(int pos)
Specified by:
getFloatPointer in interface IGpuProgramParameters

getFloatPointer_const

public FloatPointer getFloatPointer_const(int pos)
Specified by:
getFloatPointer_const in interface IGpuProgramParameters

getIntConstantList

public IGpuProgramParameters.IIntConstantList getIntConstantList()
Specified by:
getIntConstantList in interface IGpuProgramParameters

getIntPointer

public IntegerPointer getIntPointer(int pos)
Specified by:
getIntPointer in interface IGpuProgramParameters

getIntPointer_const

public IntegerPointer getIntPointer_const(int pos)
Specified by:
getIntPointer_const in interface IGpuProgramParameters

getAutoConstantList

public IGpuProgramParameters.IAutoConstantList getAutoConstantList()
Specified by:
getAutoConstantList in interface IGpuProgramParameters

setAutoConstant

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

Specified by:
setAutoConstant in interface IGpuProgramParameters

setAutoConstantReal

public void setAutoConstantReal(int index,
                                GpuProgramParameters.AutoConstantType acType,
                                float rData)
Specified by:
setAutoConstantReal in interface IGpuProgramParameters

_setRawAutoConstant

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

Specified by:
_setRawAutoConstant in interface IGpuProgramParameters

_setRawAutoConstantReal

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

Specified by:
_setRawAutoConstantReal in interface IGpuProgramParameters

clearAutoConstant

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

Specified by:
clearAutoConstant in interface IGpuProgramParameters

setConstantFromTime

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

Specified by:
setConstantFromTime in interface IGpuProgramParameters

clearAutoConstants

public void clearAutoConstants()
Clears all the existing automatic constants.

Specified by:
clearAutoConstants in interface IGpuProgramParameters

getAutoConstantIterator

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

Specified by:
getAutoConstantIterator in interface IGpuProgramParameters

getAutoConstantCount

public int getAutoConstantCount()
Specified by:
getAutoConstantCount in interface IGpuProgramParameters

getAutoConstantEntry

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

Specified by:
getAutoConstantEntry in interface IGpuProgramParameters

hasAutoConstants

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

Specified by:
hasAutoConstants in interface IGpuProgramParameters

findFloatAutoConstantEntry

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

Specified by:
findFloatAutoConstantEntry in interface IGpuProgramParameters

findIntAutoConstantEntry

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

Specified by:
findIntAutoConstantEntry in interface IGpuProgramParameters

findAutoConstantEntry

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

Specified by:
findAutoConstantEntry in interface IGpuProgramParameters

_findRawAutoConstantEntryFloat

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

Specified by:
_findRawAutoConstantEntryFloat in interface IGpuProgramParameters

_findRawAutoConstantEntryInt

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

Specified by:
_findRawAutoConstantEntryInt in interface IGpuProgramParameters

_updateAutoParamsNoLights

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

Specified by:
_updateAutoParamsNoLights in interface IGpuProgramParameters

_updateAutoParamsLightsOnly

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

Specified by:
_updateAutoParamsLightsOnly in interface IGpuProgramParameters

setIgnoreMissingParams

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

Specified by:
setIgnoreMissingParams in interface IGpuProgramParameters

setNamedConstant

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

Specified by:
setNamedConstant in interface IGpuProgramParameters

setNamedConstant

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

Specified by:
setNamedConstant in interface IGpuProgramParameters

setNamedConstant

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

Specified by:
setNamedConstant in interface IGpuProgramParameters

setNamedConstant

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

Specified by:
setNamedConstant in interface IGpuProgramParameters

setNamedConstant

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

Specified by:
setNamedConstant in interface IGpuProgramParameters

setNamedConstant

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

Specified by:
setNamedConstant in interface IGpuProgramParameters

setNamedConstant

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

Specified by:
setNamedConstant in interface IGpuProgramParameters

setNamedConstant

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

Specified by:
setNamedConstant in interface IGpuProgramParameters

setNamedConstant

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

Specified by:
setNamedConstant in interface IGpuProgramParameters

setNamedConstant

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

Specified by:
setNamedConstant in interface IGpuProgramParameters

setNamedAutoConstant

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

Specified by:
setNamedAutoConstant in interface IGpuProgramParameters

setNamedAutoConstantReal

public void setNamedAutoConstantReal(java.lang.String name,
                                     GpuProgramParameters.AutoConstantType acType,
                                     float rData)
Specified by:
setNamedAutoConstantReal in interface IGpuProgramParameters

setNamedConstantFromTime

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

Specified by:
setNamedConstantFromTime in interface IGpuProgramParameters

clearNamedAutoConstant

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

Specified by:
clearNamedAutoConstant in interface IGpuProgramParameters

_findNamedConstantDefinition

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

Specified by:
_findNamedConstantDefinition in interface IGpuProgramParameters

_getFloatConstantPhysicalIndex

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

Specified by:
_getFloatConstantPhysicalIndex in interface IGpuProgramParameters

_getIntConstantPhysicalIndex

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

Specified by:
_getIntConstantPhysicalIndex in interface IGpuProgramParameters

setTransposeMatrices

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

Specified by:
setTransposeMatrices in interface IGpuProgramParameters

getTransposeMatrices

public boolean getTransposeMatrices()
Specified by:
getTransposeMatrices in interface IGpuProgramParameters

copyConstantsFrom

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

Specified by:
copyConstantsFrom in interface IGpuProgramParameters

incPassIterationNumber

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

Specified by:
incPassIterationNumber in interface IGpuProgramParameters

hasPassIterationNumber

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

Specified by:
hasPassIterationNumber in interface IGpuProgramParameters

getPassIterationNumberIndex

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

Specified by:
getPassIterationNumberIndex in interface IGpuProgramParameters

getAutoConstantDefinition

public static IGpuProgramParameters.IAutoConstantDefinition getAutoConstantDefinition(java.lang.String name)
gets the auto constant definition associated with name if found else returns NULL


getAutoConstantDefinition

public static IGpuProgramParameters.IAutoConstantDefinition getAutoConstantDefinition(int idx)
gets the auto constant definition using an index into the auto constant definition array. If the index is out of bounds then NULL is returned;


getNumAutoConstantDefinitions

public static int getNumAutoConstantDefinitions()
Returns the number of auto constant definitions



Copyright © 2007 netAllied GmbH. All Rights Reserved.