|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xbig.base.NativeObject
org.ogre4j.UnifiedHighLevelGpuProgram
public class UnifiedHighLevelGpuProgram
| Nested Class Summary | |
|---|---|
static class |
UnifiedHighLevelGpuProgram.CmdDelegate
|
| Nested classes/interfaces inherited from interface org.ogre4j.IUnifiedHighLevelGpuProgram |
|---|
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 |
| Field Summary |
|---|
| Fields inherited from class org.xbig.base.NativeObject |
|---|
deleted, object, remote |
| Constructor Summary | |
|---|---|
|
UnifiedHighLevelGpuProgram(InstancePointer p)
This constructor is public for internal useage only! |
protected |
UnifiedHighLevelGpuProgram(InstancePointer p,
boolean remote)
Creates a Java wrapper object for an existing C++ object. |
|
UnifiedHighLevelGpuProgram(IResourceManager creator,
java.lang.String name,
long handle,
java.lang.String group,
boolean isManual,
IManualResourceLoader loader)
Constructor, should be used only by factory classes. |
|
UnifiedHighLevelGpuProgram(WithoutNativeObject val)
Allows creation of Java objects without C++ objects. |
| Method Summary | |
|---|---|
void |
_dirtyState()
Manually mark the state of this resource as having been changed. |
void |
_fireBackgroundLoadingComplete()
Firing of background loading complete event |
void |
_fireBackgroundPreparingComplete()
Firing of background preparing complete event |
IGpuProgram |
_getBindingDelegate()
Returns the which should be bound to the pipeline. |
IHighLevelGpuProgramPtr |
_getDelegate()
|
void |
_notifyOrigin(java.lang.String origin)
|
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 |
changeGroupOwnership(java.lang.String newGroup)
Change the resource group ownership of a . |
static void |
cleanupDictionary()
Cleans up the static 'msDictionary' required to reset , otherwise the containers are left with invalid pointers, which will lead to a crash as soon as one of the implementers (e.g. ) initializes. |
void |
clearDelegatePrograms()
|
void |
copyParametersTo(IStringInterface dest)
Method for copying this object's parameters to another object. |
void |
createParameters(IGpuProgramParametersSharedPtr returnValue)
Creates a new parameters object compatible with this program definition. |
void |
delete()
Deletes the corresponding C++ object. |
void |
escalateLoading()
Escalates the loading of a background loaded resource. |
void |
finalize()
|
IGpuNamedConstants |
getConstantDefinitions()
Get the full list of instances. |
IResourceManager |
getCreator()
|
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 |
getGroup()
|
long |
getHandle()
|
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. |
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. |
java.lang.String |
getName()
Gets resource name. |
IGpuNamedConstants |
getNamedConstants()
|
int |
getNumberOfPosesIncluded()
Returns the number of simultaneous poses the vertex program can blend, for use in pose animation. |
java.lang.String |
getOrigin()
Get the origin of this resource, e.g. a script file name. |
IParamDictionary |
getParamDictionary_const()
|
IParamDictionary |
getParamDictionary()
Retrieves the parameter dictionary for this class. |
java.lang.String |
getParameter(java.lang.String name)
Generic parameter retrieval method. |
IParameterList |
getParameters()
Retrieves a list of parameters valid for this object. |
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. |
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. |
int |
getStateCount()
Returns the number of times this resource has changed state, which generally means the number of times it has been loaded. |
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 |
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 |
isManuallyLoaded()
Is this resource manually loaded? |
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 |
isPrepared()
Returns true if the has been prepared, false otherwise. |
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 |
prepare()
Prepares the resource for load, 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 |
setAdjacencyInfoRequired(boolean r)
Sets whether this geometry program requires adjacency information from the input primitives. |
void |
setBackgroundLoaded(boolean bl)
Tells the resource whether it is background loaded or not. |
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. |
boolean |
setParameter(java.lang.String name,
java.lang.String value)
Generic parameter setting method. |
void |
setParameterList(INameValuePairList paramList)
Generic multiple parameter setting method. |
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. |
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 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 UnifiedHighLevelGpuProgram(InstancePointer p)
protected UnifiedHighLevelGpuProgram(InstancePointer p,
boolean remote)
public UnifiedHighLevelGpuProgram(WithoutNativeObject val)
WithoutNativeObject,
INativeObject.disconnectFromNativeObject()
public UnifiedHighLevelGpuProgram(IResourceManager creator,
java.lang.String name,
long handle,
java.lang.String group,
boolean isManual,
IManualResourceLoader loader)
| 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 void addDelegateProgram(java.lang.String name)
addDelegateProgram in interface IUnifiedHighLevelGpuProgrampublic void clearDelegatePrograms()
clearDelegatePrograms in interface IUnifiedHighLevelGpuProgrampublic IHighLevelGpuProgramPtr _getDelegate()
_getDelegate in interface IUnifiedHighLevelGpuProgrampublic java.lang.String getLanguage()
IGpuProgram
getLanguage in interface IGpuProgramgetLanguage in interface IUnifiedHighLevelGpuProgrampublic void createParameters(IGpuProgramParametersSharedPtr returnValue)
createParameters in interface IGpuProgramcreateParameters in interface IHighLevelGpuProgramcreateParameters in interface IUnifiedHighLevelGpuProgrampublic IGpuProgram _getBindingDelegate()
IGpuProgram
_getBindingDelegate in interface IGpuProgram_getBindingDelegate in interface IHighLevelGpuProgram_getBindingDelegate in interface IUnifiedHighLevelGpuProgrampublic boolean isSupported()
IGpuProgram
isSupported in interface IGpuProgramisSupported in interface IUnifiedHighLevelGpuProgrampublic boolean isSkeletalAnimationIncluded()
IGpuProgram
isSkeletalAnimationIncluded in interface IGpuProgramisSkeletalAnimationIncluded in interface IUnifiedHighLevelGpuProgrampublic boolean isMorphAnimationIncluded()
IGpuProgram
isMorphAnimationIncluded in interface IGpuProgramisMorphAnimationIncluded in interface IUnifiedHighLevelGpuProgrampublic boolean isPoseAnimationIncluded()
IGpuProgram
isPoseAnimationIncluded in interface IGpuProgramisPoseAnimationIncluded in interface IUnifiedHighLevelGpuProgrampublic boolean isVertexTextureFetchRequired()
IGpuProgram
isVertexTextureFetchRequired in interface IGpuProgramisVertexTextureFetchRequired in interface IUnifiedHighLevelGpuProgrampublic void getDefaultParameters(IGpuProgramParametersSharedPtr returnValue)
IGpuProgram
getDefaultParameters in interface IGpuProgramgetDefaultParameters in interface IUnifiedHighLevelGpuProgrampublic boolean hasDefaultParameters()
IGpuProgram
hasDefaultParameters in interface IGpuProgramhasDefaultParameters in interface IUnifiedHighLevelGpuProgrampublic boolean getPassSurfaceAndLightStates()
IGpuProgram
getPassSurfaceAndLightStates in interface IGpuProgramgetPassSurfaceAndLightStates in interface IUnifiedHighLevelGpuProgrampublic boolean hasCompileError()
IGpuProgram
hasCompileError in interface IGpuProgramhasCompileError in interface IUnifiedHighLevelGpuProgrampublic void resetCompileError()
IGpuProgram
resetCompileError in interface IGpuProgramresetCompileError in interface IUnifiedHighLevelGpuProgrampublic void load(boolean backgroundThread)
IResource
load in interface IResourceload in interface IUnifiedHighLevelGpuProgrampublic void reload()
IResource
reload in interface IResourcereload in interface IUnifiedHighLevelGpuProgrampublic boolean isReloadable()
IResource
isReloadable in interface IResourceisReloadable in interface IUnifiedHighLevelGpuProgrampublic boolean isLoaded()
IResource
isLoaded in interface IResourceisLoaded in interface IUnifiedHighLevelGpuProgrampublic boolean isLoading()
IResource
isLoading in interface IResourceisLoading in interface IUnifiedHighLevelGpuProgrampublic Resource.LoadingState getLoadingState()
IResource
getLoadingState in interface IResourcegetLoadingState in interface IUnifiedHighLevelGpuProgrampublic void unload()
IResource
unload in interface IResourceunload in interface IUnifiedHighLevelGpuProgrampublic int getSize()
IResource
getSize in interface IResourcegetSize in interface IUnifiedHighLevelGpuProgrampublic void touch()
IResource
touch in interface IResourcetouch in interface IUnifiedHighLevelGpuProgrampublic boolean isBackgroundLoaded()
IResource
isBackgroundLoaded in interface IResourceisBackgroundLoaded in interface IUnifiedHighLevelGpuProgrampublic void setBackgroundLoaded(boolean bl)
IResource
setBackgroundLoaded in interface IResourcesetBackgroundLoaded in interface IUnifiedHighLevelGpuProgrampublic void escalateLoading()
IResource
escalateLoading in interface IResourceescalateLoading in interface IUnifiedHighLevelGpuProgrampublic void addListener(IResource.IListener lis)
IResource
addListener in interface IResourceaddListener in interface IUnifiedHighLevelGpuProgrampublic void removeListener(IResource.IListener lis)
IResource
removeListener in interface IResourceremoveListener in interface IUnifiedHighLevelGpuProgrampublic IGpuNamedConstants getConstantDefinitions()
getConstantDefinitions in interface IGpuProgramgetConstantDefinitions in interface IHighLevelGpuProgrampublic IGpuNamedConstants getNamedConstants()
getNamedConstants in interface IGpuProgramgetNamedConstants in interface IHighLevelGpuProgrampublic void setSourceFile(java.lang.String filename)
setSourceFile in interface IGpuProgrampublic void setSource(java.lang.String source)
setSource in interface IGpuProgrampublic java.lang.String getSyntaxCode()
getSyntaxCode in interface IGpuProgrampublic void setSyntaxCode(java.lang.String syntax)
setSyntaxCode in interface IGpuProgrampublic java.lang.String getSourceFile()
getSourceFile in interface IGpuProgrampublic java.lang.String getSource()
getSource in interface IGpuProgrampublic void setType(GpuProgramType t)
setType in interface IGpuProgrampublic GpuProgramType getType()
getType in interface IGpuProgrampublic void setSkeletalAnimationIncluded(boolean included)
setSkeletalAnimationIncluded in interface IGpuProgrampublic void setMorphAnimationIncluded(boolean included)
setMorphAnimationIncluded in interface IGpuProgrampublic void setPoseAnimationIncluded(int poseCount)
setPoseAnimationIncluded in interface IGpuProgrampublic int getNumberOfPosesIncluded()
getNumberOfPosesIncluded in interface IGpuProgrampublic void setVertexTextureFetchRequired(boolean r)
setVertexTextureFetchRequired in interface IGpuProgrampublic void setAdjacencyInfoRequired(boolean r)
setAdjacencyInfoRequired in interface IGpuProgrampublic boolean isAdjacencyInfoRequired()
isAdjacencyInfoRequired in interface IGpuProgrampublic void setSurfaceAndPassLightStates(boolean state)
setSurfaceAndPassLightStates in interface IGpuProgrampublic void setManualNamedConstants(IGpuNamedConstants namedConstants)
setManualNamedConstants in interface IGpuProgrampublic void setManualNamedConstantsFile(java.lang.String paramDefFile)
setManualNamedConstantsFile in interface IGpuProgrampublic java.lang.String getManualNamedConstantsFile()
getManualNamedConstantsFile in interface IGpuProgrampublic void prepare()
prepare in interface IResourcepublic boolean isManuallyLoaded()
isManuallyLoaded in interface IResourcepublic java.lang.String getName()
getName in interface IResourcepublic long getHandle()
getHandle in interface IResourcepublic boolean isPrepared()
isPrepared in interface IResourcepublic java.lang.String getGroup()
getGroup in interface IResourcepublic void changeGroupOwnership(java.lang.String newGroup)
changeGroupOwnership in interface IResourcepublic IResourceManager getCreator()
getCreator in interface IResourcepublic java.lang.String getOrigin()
getOrigin in interface IResourcepublic void _notifyOrigin(java.lang.String origin)
_notifyOrigin in interface IResourcepublic int getStateCount()
getStateCount in interface IResourcepublic void _dirtyState()
_dirtyState in interface IResourcepublic void _fireBackgroundLoadingComplete()
_fireBackgroundLoadingComplete in interface IResourcepublic void _fireBackgroundPreparingComplete()
_fireBackgroundPreparingComplete in interface IResourcepublic IParamDictionary getParamDictionary()
getParamDictionary in interface IStringInterfacepublic IParamDictionary getParamDictionary_const()
getParamDictionary_const in interface IStringInterfacepublic IParameterList getParameters()
getParameters in interface IStringInterface
public boolean setParameter(java.lang.String name,
java.lang.String value)
setParameter in interface IStringInterfacepublic void setParameterList(INameValuePairList paramList)
setParameterList in interface IStringInterfacepublic java.lang.String getParameter(java.lang.String name)
getParameter in interface IStringInterfacepublic void copyParametersTo(IStringInterface dest)
copyParametersTo in interface IStringInterfacepublic static void cleanupDictionary()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||