org.ogre4j
Interface IUnifiedHighLevelGpuProgram

All Superinterfaces:
IAllocatedObject<IResourceAllocPolicy>, IGpuProgram, IHighLevelGpuProgram, INativeObject, IResource, IResourceAllocatedObject, IStringInterface
All Known Implementing Classes:
UnifiedHighLevelGpuProgram

public interface IUnifiedHighLevelGpuProgram
extends INativeObject, IHighLevelGpuProgram


Nested Class Summary
static interface IUnifiedHighLevelGpuProgram.ICmdDelegate
           
 
Nested classes/interfaces inherited from interface org.ogre4j.IGpuProgram
IGpuProgram.ICmdAdjacency, IGpuProgram.ICmdManualNamedConstsFile, IGpuProgram.ICmdMorph, IGpuProgram.ICmdPose, IGpuProgram.ICmdSkeletal, IGpuProgram.ICmdSyntax, IGpuProgram.ICmdType, 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.
 IHighLevelGpuProgramPtr _getDelegate()
           
 void addDelegateProgram(java.lang.String name)
          Adds a new delegate program to the list.
 void addListener(IResource.IListener lis)
          Register a listener on this resource.
 void clearDelegatePrograms()
           
 void createParameters(IGpuProgramParametersSharedPtr returnValue)
          Creates a new parameters object compatible with this program definition.
 void escalateLoading()
          Escalates the loading of a background loaded resource.
 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
 Resource.LoadingState getLoadingState()
          Returns the current loading state.
 boolean getPassSurfaceAndLightStates()
          Returns whether a vertex program wants light and material states to be passed through fixed pipeline low level API rendering calls
 int getSize()
          Retrieves info about the size of the resource.
 boolean hasCompileError()
          Did this program encounter a compile error when loading?
 boolean hasDefaultParameters()
          Returns true if default parameters have been set up.
 boolean isBackgroundLoaded()
          Returns whether this has been earmarked for background loading.
 boolean isLoaded()
          Returns true if the has been loaded, false otherwise.
 boolean isLoading()
          Returns whether the resource is currently in the process of background loading.
 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 isReloadable()
          Returns true if the is reloadable, false otherwise.
 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 load(boolean backgroundThread)
          Loads the resource, if it is not already.
 void reload()
          Reloads the resource, if it is already loaded.
 void removeListener(IResource.IListener lis)
          Remove a listener on this resource.
 void resetCompileError()
          Reset a compile error if it occurred, allowing the load to be retried
 void setBackgroundLoaded(boolean bl)
          Tells the resource whether it is background loaded or not.
 void touch()
          'Touches' the resource to indicate it has been used.
 void unload()
          Unloads the resource; this is not permanent, the resource can be reloaded later if required.
 
Methods inherited from interface org.ogre4j.IHighLevelGpuProgram
getConstantDefinitions, getNamedConstants
 
Methods inherited from interface org.ogre4j.IGpuProgram
getManualNamedConstantsFile, getNumberOfPosesIncluded, getSource, getSourceFile, getSyntaxCode, getType, isAdjacencyInfoRequired, setAdjacencyInfoRequired, setManualNamedConstants, setManualNamedConstantsFile, setMorphAnimationIncluded, setPoseAnimationIncluded, setSkeletalAnimationIncluded, setSource, setSourceFile, setSurfaceAndPassLightStates, setSyntaxCode, setType, setVertexTextureFetchRequired
 
Methods inherited from interface org.ogre4j.IResource
_dirtyState, _fireBackgroundLoadingComplete, _fireBackgroundPreparingComplete, _notifyOrigin, changeGroupOwnership, getCreator, getGroup, getHandle, getName, getOrigin, getStateCount, isManuallyLoaded, isPrepared, prepare
 
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

addDelegateProgram

void addDelegateProgram(java.lang.String name)
Adds a new delegate program to the list.


clearDelegatePrograms

void clearDelegatePrograms()

_getDelegate

IHighLevelGpuProgramPtr _getDelegate()

getLanguage

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

Specified by:
getLanguage in interface IGpuProgram

createParameters

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

Specified by:
createParameters in interface IGpuProgram
Specified by:
createParameters in interface IHighLevelGpuProgram

_getBindingDelegate

IGpuProgram _getBindingDelegate()
Description copied from interface: IGpuProgram
Returns the which should be bound to the pipeline.

Specified by:
_getBindingDelegate in interface IGpuProgram
Specified by:
_getBindingDelegate in interface IHighLevelGpuProgram

isSupported

boolean isSupported()
Description copied from interface: IGpuProgram
Returns whether this program can be supported on the current renderer and hardware.

Specified by:
isSupported in interface IGpuProgram

isSkeletalAnimationIncluded

boolean isSkeletalAnimationIncluded()
Description copied from interface: IGpuProgram
Returns whether a vertex program includes the required instructions to perform skeletal animation.

Specified by:
isSkeletalAnimationIncluded in interface IGpuProgram

isMorphAnimationIncluded

boolean isMorphAnimationIncluded()
Description copied from interface: IGpuProgram
Returns whether a vertex program includes the required instructions to perform morph animation.

Specified by:
isMorphAnimationIncluded in interface IGpuProgram

isPoseAnimationIncluded

boolean isPoseAnimationIncluded()
Description copied from interface: IGpuProgram
Returns whether a vertex program includes the required instructions to perform pose animation.

Specified by:
isPoseAnimationIncluded in interface IGpuProgram

isVertexTextureFetchRequired

boolean isVertexTextureFetchRequired()
Description copied from interface: IGpuProgram
Returns whether this vertex program requires support for vertex texture fetch from the hardware.

Specified by:
isVertexTextureFetchRequired in interface IGpuProgram

getDefaultParameters

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

Specified by:
getDefaultParameters in interface IGpuProgram

hasDefaultParameters

boolean hasDefaultParameters()
Description copied from interface: IGpuProgram
Returns true if default parameters have been set up.

Specified by:
hasDefaultParameters in interface IGpuProgram

getPassSurfaceAndLightStates

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

Specified by:
getPassSurfaceAndLightStates in interface IGpuProgram

hasCompileError

boolean hasCompileError()
Description copied from interface: IGpuProgram
Did this program encounter a compile error when loading?

Specified by:
hasCompileError in interface IGpuProgram

resetCompileError

void resetCompileError()
Description copied from interface: IGpuProgram
Reset a compile error if it occurred, allowing the load to be retried

Specified by:
resetCompileError in interface IGpuProgram

load

void load(boolean backgroundThread)
Description copied from interface: IResource
Loads the resource, if it is not already.

Specified by:
load in interface IResource

reload

void reload()
Description copied from interface: IResource
Reloads the resource, if it is already loaded.

Specified by:
reload in interface IResource

isReloadable

boolean isReloadable()
Description copied from interface: IResource
Returns true if the is reloadable, false otherwise.

Specified by:
isReloadable in interface IResource

isLoaded

boolean isLoaded()
Description copied from interface: IResource
Returns true if the has been loaded, false otherwise.

Specified by:
isLoaded in interface IResource

isLoading

boolean isLoading()
Description copied from interface: IResource
Returns whether the resource is currently in the process of background loading.

Specified by:
isLoading in interface IResource

getLoadingState

Resource.LoadingState getLoadingState()
Description copied from interface: IResource
Returns the current loading state.

Specified by:
getLoadingState in interface IResource

unload

void unload()
Description copied from interface: IResource
Unloads the resource; this is not permanent, the resource can be reloaded later if required.

Specified by:
unload in interface IResource

getSize

int getSize()
Description copied from interface: IResource
Retrieves info about the size of the resource.

Specified by:
getSize in interface IResource

touch

void touch()
Description copied from interface: IResource
'Touches' the resource to indicate it has been used.

Specified by:
touch in interface IResource

isBackgroundLoaded

boolean isBackgroundLoaded()
Description copied from interface: IResource
Returns whether this has been earmarked for background loading.

Specified by:
isBackgroundLoaded in interface IResource

setBackgroundLoaded

void setBackgroundLoaded(boolean bl)
Description copied from interface: IResource
Tells the resource whether it is background loaded or not.

Specified by:
setBackgroundLoaded in interface IResource

escalateLoading

void escalateLoading()
Description copied from interface: IResource
Escalates the loading of a background loaded resource.

Specified by:
escalateLoading in interface IResource

addListener

void addListener(IResource.IListener lis)
Description copied from interface: IResource
Register a listener on this resource.

Specified by:
addListener in interface IResource

removeListener

void removeListener(IResource.IListener lis)
Description copied from interface: IResource
Remove a listener on this resource.

Specified by:
removeListener in interface IResource


Copyright © 2007 netAllied GmbH. All Rights Reserved.