|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xbig.base.NativeObject
org.ogre4j.Technique
public class Technique
| Nested Class Summary | |
|---|---|
static class |
Technique.GPUDeviceNameRule
|
static class |
Technique.GPUDeviceNameRuleIterator
|
static class |
Technique.GPUDeviceNameRuleList
|
static class |
Technique.GPUVendorRule
|
static class |
Technique.GPUVendorRuleIterator
|
static class |
Technique.GPUVendorRuleList
|
protected static class |
Technique.IlluminationPassesState
|
static class |
Technique.IlluminationPassIterator
|
static class |
Technique.IncludeOrExclude
|
protected static class |
Technique.Passes
|
static class |
Technique.PassIterator
|
| Nested classes/interfaces inherited from interface org.ogre4j.ITechnique |
|---|
ITechnique.IGPUDeviceNameRule, ITechnique.IGPUDeviceNameRuleIterator, ITechnique.IGPUDeviceNameRuleList, ITechnique.IGPUVendorRule, ITechnique.IGPUVendorRuleIterator, ITechnique.IGPUVendorRuleList, ITechnique.IIlluminationPassIterator, ITechnique.IPasses, ITechnique.IPassIterator |
| Field Summary |
|---|
| Fields inherited from class org.xbig.base.NativeObject |
|---|
deleted, object, remote |
| Constructor Summary | |
|---|---|
|
Technique(IMaterial parent)
|
|
Technique(IMaterial parent,
ITechnique oth)
|
|
Technique(InstancePointer p)
This constructor is public for internal useage only! |
protected |
Technique(InstancePointer p,
boolean remote)
Creates a Java wrapper object for an existing C++ object. |
|
Technique(WithoutNativeObject val)
Allows creation of Java objects without C++ objects. |
| Method Summary | |
|---|---|
java.lang.String |
_compile(boolean autoManageTextureUnits)
Internal compilation method; see . |
void |
_compileIlluminationPasses()
Internal method for splitting the passes into illumination passes. |
int |
_getSchemeIndex()
|
void |
_load()
Internal load method, derived from call to . |
void |
_notifyNeedsRecompile()
Tells the technique that it needs recompilation. |
void |
_prepare()
Internal prepare method, derived from call to . |
void |
_unload()
Internal unload method, derived from call to . |
void |
_unprepare()
Internal unprepare method, derived from call to Material::unprepare. |
void |
addGPUDeviceNameRule(ITechnique.IGPUDeviceNameRule rule)
Add a rule which manually influences the support for this technique based on a pattern that matches a GPU device name (e.g. '*8800*'). |
void |
addGPUDeviceNameRule(java.lang.String devicePattern,
Technique.IncludeOrExclude includeOrExclude,
boolean caseSensitive)
Add a rule which manually influences the support for this technique based on a pattern that matches a GPU device name (e.g. '*8800*'). |
void |
addGPUVendorRule(GPUVendor vendor,
Technique.IncludeOrExclude includeOrExclude)
Add a rule which manually influences the support for this technique based on a GPU vendor. |
void |
addGPUVendorRule(ITechnique.IGPUVendorRule rule)
Add a rule which manually influences the support for this technique based on a GPU vendor. |
boolean |
applyTextureAliases(IAliasTextureNamePairList aliasList,
boolean apply)
Applies texture names to Unit State with matching texture name aliases. |
boolean |
checkGPURules(Iostringstream errors)
|
boolean |
checkHardwareSupport(boolean autoManageTextureUnits,
Iostringstream compileErrors)
|
IPass |
createPass()
Creates a new for this . |
void |
delete()
Deletes the corresponding C++ object. |
void |
finalize()
|
void |
getGPUDeviceNameRuleIterator(ITechnique.IGPUDeviceNameRuleIterator returnValue)
|
void |
getGPUVendorRuleIterator(ITechnique.IGPUVendorRuleIterator returnValue)
|
void |
getIlluminationPassIterator(ITechnique.IIlluminationPassIterator returnValue)
Gets an iterator over the illumination-stage categorised passes. |
int |
getLodIndex()
Gets the level-of-detail index assigned to this . |
java.lang.String |
getName()
|
int |
getNumPasses()
Retrieves the number of passes. |
IMaterial |
getParent()
|
IPass |
getPass(int index)
Retrieves the with the given index. |
IPass |
getPass(java.lang.String name)
Retrieves the matching name. |
void |
getPassIterator(ITechnique.IPassIterator returnValue)
Gets an iterator over the passes in this . |
java.lang.String |
getResourceGroup()
|
java.lang.String |
getSchemeName()
Returns the scheme to which this technique is assigned. |
void |
getShadowCasterMaterial(IMaterialPtr returnValue)
return this material specific shadow casting specific material |
void |
getShadowReceiverMaterial(IMaterialPtr returnValue)
return this material specific shadow receiving specific material |
boolean |
hasColourWriteDisabled()
Exists colour writing disabled pass on this technique? |
boolean |
isDepthCheckEnabled()
Is depth checking going to occur on this technique? |
boolean |
isDepthWriteEnabled()
Is depth writing going to occur on this technique? |
boolean |
isLoaded()
|
boolean |
isSupported()
Indicates if this technique is supported by the current graphics card. |
boolean |
isTransparent()
Returns true if this involves transparency. |
boolean |
isTransparentSortingEnabled()
Returns true if this has transparent sorting enabled. |
boolean |
movePass(int sourceIndex,
int destinationIndex)
Move a pass from source index to destination index. |
ITechnique |
operatorAssignment(ITechnique rhs)
Overloaded operator to copy on to another. |
void |
removeAllPasses()
Removes all Passes from this . |
void |
removeGPUDeviceNameRule(java.lang.String devicePattern)
Removes a matching device name rule. |
void |
removeGPUVendorRule(GPUVendor vendor)
Removes a matching vendor rule. |
void |
removePass(int index)
Removes the with the given index. |
void |
setAmbient(float red,
float green,
float blue)
Sets the ambient colour reflectance properties for every in every . |
void |
setAmbient(IColourValue ambient)
Sets the ambient colour reflectance properties for every in every . |
void |
setColourWriteEnabled(boolean enabled)
Sets whether or not colour buffer writing is enabled for each . |
void |
setCullingMode(CullingMode mode)
Sets the culling mode for each pass based on the 'vertex winding'. |
void |
setDepthBias(float constantBias,
float slopeScaleBias)
Sets the depth bias to be used for each . |
void |
setDepthCheckEnabled(boolean enabled)
Sets whether or not each renders with depth-buffer checking on or not. |
void |
setDepthFunction(CompareFunction func)
Sets the function used to compare depth values when depth checking is on. |
void |
setDepthWriteEnabled(boolean enabled)
Sets whether or not each renders with depth-buffer writing on or not. |
void |
setDiffuse(float red,
float green,
float blue,
float alpha)
Sets the diffuse colour reflectance properties of every in every . |
void |
setDiffuse(IColourValue diffuse)
Sets the diffuse colour reflectance properties of every in every . |
void |
setFog(boolean overrideScene,
FogMode mode,
IColourValue colour,
float expDensity,
float linearStart,
float linearEnd)
Sets the fogging mode applied to each pass. |
void |
setLightingEnabled(boolean enabled)
Sets whether or not dynamic lighting is enabled for every . |
void |
setLodIndex(int index)
Assigns a level-of-detail (LOD) index to this . |
void |
setManualCullingMode(ManualCullingMode mode)
Sets the manual culling mode, performed by CPU rather than hardware. |
void |
setName(java.lang.String name)
Set the name of the technique. |
void |
setPointSize(float ps)
Sets the point size properties for every in this . |
void |
setSceneBlending(SceneBlendFactor sourceFactor,
SceneBlendFactor destFactor)
Allows very fine control of blending every with the existing contents of the scene. |
void |
setSceneBlending(SceneBlendType sbt)
Sets the kind of blending every pass has with the existing contents of the scene. |
void |
setSchemeName(java.lang.String schemeName)
Set the 'scheme name' for this technique. |
void |
setSelfIllumination(float red,
float green,
float blue)
Sets the amount of self-illumination of every in every . |
void |
setSelfIllumination(IColourValue selfIllum)
Sets the amount of self-illumination of every in every . |
void |
setSeparateSceneBlending(SceneBlendFactor sourceFactor,
SceneBlendFactor destFactor,
SceneBlendFactor sourceFactorAlpha,
SceneBlendFactor destFactorAlpha)
Allows very fine control of blending every with the existing contents of the scene, using individual factors both color and alpha channels |
void |
setSeparateSceneBlending(SceneBlendType sbt,
SceneBlendType sbta)
Sets the kind of blending every pass has with the existing contents of the scene, using individual factors both color and alpha channels |
void |
setShadingMode(ShadeOptions mode)
Sets the type of light shading required |
void |
setShadowCasterMaterial(IMaterialPtr val)
set this material specific shadow casting specific material |
void |
setShadowCasterMaterial(java.lang.String name)
set this material specific shadow casting specific material |
void |
setShadowReceiverMaterial(IMaterialPtr val)
set this material specific shadow receiving specific material |
void |
setShadowReceiverMaterial(java.lang.String name)
set this material specific shadow receiving specific material |
void |
setShininess(float val)
Sets the shininess properties of every in every . |
void |
setSpecular(float red,
float green,
float blue,
float alpha)
Sets the specular colour reflectance properties of every in every . |
void |
setSpecular(IColourValue specular)
Sets the specular colour reflectance properties of every in every . |
void |
setTextureAnisotropy(long maxAniso)
Sets the anisotropy level to be used for all textures. |
void |
setTextureFiltering(TextureFilterOptions filterType)
Set texture filtering for every texture unit in every |
| 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 Technique(InstancePointer p)
protected Technique(InstancePointer p,
boolean remote)
public Technique(WithoutNativeObject val)
WithoutNativeObject,
INativeObject.disconnectFromNativeObject()public Technique(IMaterial parent)
public Technique(IMaterial parent,
ITechnique oth)
| 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 boolean isSupported()
isSupported in interface ITechniquepublic java.lang.String _compile(boolean autoManageTextureUnits)
_compile in interface ITechniquepublic boolean checkGPURules(Iostringstream errors)
checkGPURules in interface ITechnique
public boolean checkHardwareSupport(boolean autoManageTextureUnits,
Iostringstream compileErrors)
checkHardwareSupport in interface ITechniquepublic void _compileIlluminationPasses()
_compileIlluminationPasses in interface ITechniquepublic IPass createPass()
createPass in interface ITechniquepublic IPass getPass(int index)
getPass in interface ITechniquepublic IPass getPass(java.lang.String name)
getPass in interface ITechniquepublic int getNumPasses()
getNumPasses in interface ITechniquepublic void removePass(int index)
removePass in interface ITechniquepublic void removeAllPasses()
removeAllPasses in interface ITechnique
public boolean movePass(int sourceIndex,
int destinationIndex)
movePass in interface ITechniquepublic void getPassIterator(ITechnique.IPassIterator returnValue)
getPassIterator in interface ITechniquepublic void getIlluminationPassIterator(ITechnique.IIlluminationPassIterator returnValue)
getIlluminationPassIterator in interface ITechniquepublic IMaterial getParent()
getParent in interface ITechniquepublic ITechnique operatorAssignment(ITechnique rhs)
operatorAssignment in interface ITechniquepublic java.lang.String getResourceGroup()
getResourceGroup in interface ITechniquepublic boolean isTransparent()
isTransparent in interface ITechniquepublic boolean isTransparentSortingEnabled()
isTransparentSortingEnabled in interface ITechniquepublic void _prepare()
_prepare in interface ITechniquepublic void _unprepare()
_unprepare in interface ITechniquepublic void _load()
_load in interface ITechniquepublic void _unload()
_unload in interface ITechniquepublic boolean isLoaded()
isLoaded in interface ITechniquepublic void _notifyNeedsRecompile()
_notifyNeedsRecompile in interface ITechniquepublic void getShadowCasterMaterial(IMaterialPtr returnValue)
getShadowCasterMaterial in interface ITechniquepublic void setShadowCasterMaterial(IMaterialPtr val)
setShadowCasterMaterial in interface ITechniquepublic void setShadowCasterMaterial(java.lang.String name)
setShadowCasterMaterial in interface ITechniquepublic void getShadowReceiverMaterial(IMaterialPtr returnValue)
getShadowReceiverMaterial in interface ITechniquepublic void setShadowReceiverMaterial(IMaterialPtr val)
setShadowReceiverMaterial in interface ITechniquepublic void setShadowReceiverMaterial(java.lang.String name)
setShadowReceiverMaterial in interface ITechniquepublic void setPointSize(float ps)
setPointSize in interface ITechnique
public void setAmbient(float red,
float green,
float blue)
setAmbient in interface ITechniquepublic void setAmbient(IColourValue ambient)
setAmbient in interface ITechnique
public void setDiffuse(float red,
float green,
float blue,
float alpha)
setDiffuse in interface ITechniquepublic void setDiffuse(IColourValue diffuse)
setDiffuse in interface ITechnique
public void setSpecular(float red,
float green,
float blue,
float alpha)
setSpecular in interface ITechniquepublic void setSpecular(IColourValue specular)
setSpecular in interface ITechniquepublic void setShininess(float val)
setShininess in interface ITechnique
public void setSelfIllumination(float red,
float green,
float blue)
setSelfIllumination in interface ITechniquepublic void setSelfIllumination(IColourValue selfIllum)
setSelfIllumination in interface ITechniquepublic void setDepthCheckEnabled(boolean enabled)
setDepthCheckEnabled in interface ITechniquepublic void setDepthWriteEnabled(boolean enabled)
setDepthWriteEnabled in interface ITechniquepublic void setDepthFunction(CompareFunction func)
setDepthFunction in interface ITechniquepublic void setColourWriteEnabled(boolean enabled)
setColourWriteEnabled in interface ITechniquepublic void setCullingMode(CullingMode mode)
setCullingMode in interface ITechniquepublic void setManualCullingMode(ManualCullingMode mode)
setManualCullingMode in interface ITechniquepublic void setLightingEnabled(boolean enabled)
setLightingEnabled in interface ITechniquepublic void setShadingMode(ShadeOptions mode)
setShadingMode in interface ITechnique
public void setFog(boolean overrideScene,
FogMode mode,
IColourValue colour,
float expDensity,
float linearStart,
float linearEnd)
setFog in interface ITechnique
public void setDepthBias(float constantBias,
float slopeScaleBias)
setDepthBias in interface ITechniquepublic void setTextureFiltering(TextureFilterOptions filterType)
setTextureFiltering in interface ITechniquepublic void setTextureAnisotropy(long maxAniso)
setTextureAnisotropy in interface ITechniquepublic void setSceneBlending(SceneBlendType sbt)
setSceneBlending in interface ITechnique
public void setSeparateSceneBlending(SceneBlendType sbt,
SceneBlendType sbta)
setSeparateSceneBlending in interface ITechnique
public void setSceneBlending(SceneBlendFactor sourceFactor,
SceneBlendFactor destFactor)
setSceneBlending in interface ITechnique
public void setSeparateSceneBlending(SceneBlendFactor sourceFactor,
SceneBlendFactor destFactor,
SceneBlendFactor sourceFactorAlpha,
SceneBlendFactor destFactorAlpha)
setSeparateSceneBlending in interface ITechniquepublic void setLodIndex(int index)
setLodIndex in interface ITechniquepublic int getLodIndex()
getLodIndex in interface ITechniquepublic void setSchemeName(java.lang.String schemeName)
setSchemeName in interface ITechniquepublic java.lang.String getSchemeName()
getSchemeName in interface ITechniquepublic int _getSchemeIndex()
_getSchemeIndex in interface ITechniquepublic boolean isDepthWriteEnabled()
isDepthWriteEnabled in interface ITechniquepublic boolean isDepthCheckEnabled()
isDepthCheckEnabled in interface ITechniquepublic boolean hasColourWriteDisabled()
hasColourWriteDisabled in interface ITechniquepublic void setName(java.lang.String name)
setName in interface ITechniquepublic java.lang.String getName()
getName in interface ITechnique
public boolean applyTextureAliases(IAliasTextureNamePairList aliasList,
boolean apply)
applyTextureAliases in interface ITechnique
public void addGPUVendorRule(GPUVendor vendor,
Technique.IncludeOrExclude includeOrExclude)
addGPUVendorRule in interface ITechniquepublic void addGPUVendorRule(ITechnique.IGPUVendorRule rule)
addGPUVendorRule in interface ITechniquepublic void removeGPUVendorRule(GPUVendor vendor)
removeGPUVendorRule in interface ITechniquepublic void getGPUVendorRuleIterator(ITechnique.IGPUVendorRuleIterator returnValue)
getGPUVendorRuleIterator in interface ITechnique
public void addGPUDeviceNameRule(java.lang.String devicePattern,
Technique.IncludeOrExclude includeOrExclude,
boolean caseSensitive)
addGPUDeviceNameRule in interface ITechniquepublic void addGPUDeviceNameRule(ITechnique.IGPUDeviceNameRule rule)
addGPUDeviceNameRule in interface ITechniquepublic void removeGPUDeviceNameRule(java.lang.String devicePattern)
removeGPUDeviceNameRule in interface ITechniquepublic void getGPUDeviceNameRuleIterator(ITechnique.IGPUDeviceNameRuleIterator returnValue)
getGPUDeviceNameRuleIterator in interface ITechnique
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||