org.ogre4j
Interface IGpuProgram

All Superinterfaces:
IAllocatedObject<IResourceAllocPolicy>, INativeObject, IResource, IResourceAllocatedObject, IStringInterface
All Known Subinterfaces:
IHighLevelGpuProgram, IUnifiedHighLevelGpuProgram
All Known Implementing Classes:
GpuProgram, HighLevelGpuProgram, UnifiedHighLevelGpuProgram

public interface IGpuProgram
extends INativeObject, IResource


Nested Class Summary
static interface IGpuProgram.ICmdAdjacency
           
static interface IGpuProgram.ICmdManualNamedConstsFile
           
static interface IGpuProgram.ICmdMorph
           
static interface IGpuProgram.ICmdPose
           
static interface IGpuProgram.ICmdSkeletal
           
static interface IGpuProgram.ICmdSyntax
           
static interface IGpuProgram.ICmdType
           
static interface IGpuProgram.ICmdVTF
           
 
Nested classes/interfaces inherited from interface org.ogre4j.IResource
IResource.IListener, IResource.IListenerList
 
Method Summary
 IGpuProgram _getBindingDelegate()
          Returns the which should be bound to the pipeline.
 void createParameters(IGpuProgramParametersSharedPtr returnValue)
          Creates a new parameters object compatible with this program definition.
 IGpuNamedConstants getConstantDefinitions()
          Get the full list of named constants.
 void getDefaultParameters(IGpuProgramParametersSharedPtr returnValue)
          Get a reference to the default parameters which are to be used for all uses of this program.
 java.lang.String getLanguage()
          Returns a string that specifies the language of the gpu programs as specified in a material script. ie: asm, cg, hlsl, glsl
 java.lang.String getManualNamedConstantsFile()
          Gets the name of a file from which to load named parameters mapping for a program which would not be able to derive named parameters itself.
 IGpuNamedConstants getNamedConstants()
           
 int getNumberOfPosesIncluded()
          Returns the number of simultaneous poses the vertex program can blend, for use in pose animation.
 boolean getPassSurfaceAndLightStates()
          Returns whether a vertex program wants light and material states to be passed through fixed pipeline low level API rendering calls
 java.lang.String getSource()
          Gets the assembler source for this program.
 java.lang.String getSourceFile()
          Gets the name of the file used as source for this program.
 java.lang.String getSyntaxCode()
          Gets the syntax code for this program e.g. arbvp1, fp20, vs_1_1 etc
 GpuProgramType getType()
           
 boolean hasCompileError()
          Did this program encounter a compile error when loading?
 boolean hasDefaultParameters()
          Returns true if default parameters have been set up.
 boolean isAdjacencyInfoRequired()
          Returns whether this geometry program requires adjacency information from the input primitives.
 boolean isMorphAnimationIncluded()
          Returns whether a vertex program includes the required instructions to perform morph animation.
 boolean isPoseAnimationIncluded()
          Returns whether a vertex program includes the required instructions to perform pose animation.
 boolean isSkeletalAnimationIncluded()
          Returns whether a vertex program includes the required instructions to perform skeletal animation.
 boolean isSupported()
          Returns whether this program can be supported on the current renderer and hardware.
 boolean isVertexTextureFetchRequired()
          Returns whether this vertex program requires support for vertex texture fetch from the hardware.
 void resetCompileError()
          Reset a compile error if it occurred, allowing the load to be retried
 void setAdjacencyInfoRequired(boolean r)
          Sets whether this geometry program requires adjacency information from the input primitives.
 void setManualNamedConstants(IGpuNamedConstants namedConstants)
          Allows you to manually provide a set of named parameter mappings to a program which would not be able to derive named parameters itself.
 void setManualNamedConstantsFile(java.lang.String paramDefFile)
          Specifies the name of a file from which to load named parameters mapping for a program which would not be able to derive named parameters itself.
 void setMorphAnimationIncluded(boolean included)
          Sets whether a vertex program includes the required instructions to perform morph animation.
 void setPoseAnimationIncluded(int poseCount)
          Sets whether a vertex program includes the required instructions to perform pose animation.
 void setSkeletalAnimationIncluded(boolean included)
          Sets whether a vertex program includes the required instructions to perform skeletal animation.
 void setSource(java.lang.String source)
          Sets the source assembly for this program from an in-memory string.
 void setSourceFile(java.lang.String filename)
          Sets the filename of the source assembly for this program.
 void setSurfaceAndPassLightStates(boolean state)
          Sets whether a vertex program requires light and material states to be passed to through fixed pipeline low level API rendering calls.
 void setSyntaxCode(java.lang.String syntax)
          Sets the syntax code for this program e.g. arbvp1, fp20, vs_1_1 etc
 void setType(GpuProgramType t)
           
 void setVertexTextureFetchRequired(boolean r)
          Sets whether this vertex program requires support for vertex texture fetch from the hardware.
 
Methods inherited from interface org.ogre4j.IResource
_dirtyState, _fireBackgroundLoadingComplete, _fireBackgroundPreparingComplete, _notifyOrigin, addListener, changeGroupOwnership, escalateLoading, getCreator, getGroup, getHandle, getLoadingState, getName, getOrigin, getSize, getStateCount, isBackgroundLoaded, isLoaded, isLoading, isManuallyLoaded, isPrepared, isReloadable, load, prepare, reload, removeListener, setBackgroundLoaded, touch, unload
 
Methods inherited from interface org.ogre4j.IStringInterface
copyParametersTo, getParamDictionary_const, getParamDictionary, getParameter, getParameters, setParameter, setParameterList
 
Methods inherited from interface org.xbig.base.INativeObject
delete, disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer
 

Method Detail

setSourceFile

void setSourceFile(java.lang.String filename)
Sets the filename of the source assembly for this program.


setSource

void setSource(java.lang.String source)
Sets the source assembly for this program from an in-memory string.


getSyntaxCode

java.lang.String getSyntaxCode()
Gets the syntax code for this program e.g. arbvp1, fp20, vs_1_1 etc


setSyntaxCode

void setSyntaxCode(java.lang.String syntax)
Sets the syntax code for this program e.g. arbvp1, fp20, vs_1_1 etc


getSourceFile

java.lang.String getSourceFile()
Gets the name of the file used as source for this program.


getSource

java.lang.String getSource()
Gets the assembler source for this program.


setType

void setType(GpuProgramType t)

getType

GpuProgramType getType()

_getBindingDelegate

IGpuProgram _getBindingDelegate()
Returns the which should be bound to the pipeline.


isSupported

boolean isSupported()
Returns whether this program can be supported on the current renderer and hardware.


createParameters

void createParameters(IGpuProgramParametersSharedPtr returnValue)
Creates a new parameters object compatible with this program definition.


setSkeletalAnimationIncluded

void setSkeletalAnimationIncluded(boolean included)
Sets whether a vertex program includes the required instructions to perform skeletal animation.


isSkeletalAnimationIncluded

boolean isSkeletalAnimationIncluded()
Returns whether a vertex program includes the required instructions to perform skeletal animation.


setMorphAnimationIncluded

void setMorphAnimationIncluded(boolean included)
Sets whether a vertex program includes the required instructions to perform morph animation.


setPoseAnimationIncluded

void setPoseAnimationIncluded(int poseCount)
Sets whether a vertex program includes the required instructions to perform pose animation.


isMorphAnimationIncluded

boolean isMorphAnimationIncluded()
Returns whether a vertex program includes the required instructions to perform morph animation.


isPoseAnimationIncluded

boolean isPoseAnimationIncluded()
Returns whether a vertex program includes the required instructions to perform pose animation.


getNumberOfPosesIncluded

int getNumberOfPosesIncluded()
Returns the number of simultaneous poses the vertex program can blend, for use in pose animation.


setVertexTextureFetchRequired

void setVertexTextureFetchRequired(boolean r)
Sets whether this vertex program requires support for vertex texture fetch from the hardware.


isVertexTextureFetchRequired

boolean isVertexTextureFetchRequired()
Returns whether this vertex program requires support for vertex texture fetch from the hardware.


setAdjacencyInfoRequired

void setAdjacencyInfoRequired(boolean r)
Sets whether this geometry program requires adjacency information from the input primitives.


isAdjacencyInfoRequired

boolean isAdjacencyInfoRequired()
Returns whether this geometry program requires adjacency information from the input primitives.


getDefaultParameters

void getDefaultParameters(IGpuProgramParametersSharedPtr returnValue)
Get a reference to the default parameters which are to be used for all uses of this program.


hasDefaultParameters

boolean hasDefaultParameters()
Returns true if default parameters have been set up.


setSurfaceAndPassLightStates

void setSurfaceAndPassLightStates(boolean state)
Sets whether a vertex program requires light and material states to be passed to through fixed pipeline low level API rendering calls.


getPassSurfaceAndLightStates

boolean getPassSurfaceAndLightStates()
Returns whether a vertex program wants light and material states to be passed through fixed pipeline low level API rendering calls


getLanguage

java.lang.String getLanguage()
Returns a string that specifies the language of the gpu programs as specified in a material script. ie: asm, cg, hlsl, glsl


hasCompileError

boolean hasCompileError()
Did this program encounter a compile error when loading?


resetCompileError

void resetCompileError()
Reset a compile error if it occurred, allowing the load to be retried


setManualNamedConstants

void setManualNamedConstants(IGpuNamedConstants namedConstants)
Allows you to manually provide a set of named parameter mappings to a program which would not be able to derive named parameters itself.


getNamedConstants

IGpuNamedConstants getNamedConstants()

setManualNamedConstantsFile

void setManualNamedConstantsFile(java.lang.String paramDefFile)
Specifies the name of a file from which to load named parameters mapping for a program which would not be able to derive named parameters itself.


getManualNamedConstantsFile

java.lang.String getManualNamedConstantsFile()
Gets the name of a file from which to load named parameters mapping for a program which would not be able to derive named parameters itself.


getConstantDefinitions

IGpuNamedConstants getConstantDefinitions()
Get the full list of named constants.



Copyright © 2007 netAllied GmbH. All Rights Reserved.