org.ogre4j
Interface ITechnique

All Superinterfaces:
IAllocatedObject<IResourceAllocPolicy>, INativeObject, IResourceAllocatedObject
All Known Implementing Classes:
Technique

public interface ITechnique
extends INativeObject, IResourceAllocatedObject


Nested Class Summary
static interface ITechnique.IGPUDeviceNameRule
           
static interface ITechnique.IGPUDeviceNameRuleIterator
           
static interface ITechnique.IGPUDeviceNameRuleList
           
static interface ITechnique.IGPUVendorRule
           
static interface ITechnique.IGPUVendorRuleIterator
           
static interface ITechnique.IGPUVendorRuleList
           
static interface ITechnique.IIlluminationPassIterator
           
static interface ITechnique.IPasses
           
static interface ITechnique.IPassIterator
           
 
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 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 interface org.xbig.base.INativeObject
delete, disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer
 

Method Detail

isSupported

boolean isSupported()
Indicates if this technique is supported by the current graphics card.


_compile

java.lang.String _compile(boolean autoManageTextureUnits)
Internal compilation method; see .


checkGPURules

boolean checkGPURules(Iostringstream errors)

checkHardwareSupport

boolean checkHardwareSupport(boolean autoManageTextureUnits,
                             Iostringstream compileErrors)

_compileIlluminationPasses

void _compileIlluminationPasses()
Internal method for splitting the passes into illumination passes.


createPass

IPass createPass()
Creates a new for this .


getPass

IPass getPass(int index)
Retrieves the with the given index.


getPass

IPass getPass(java.lang.String name)
Retrieves the matching name. Returns 0 if name match is not found.


getNumPasses

int getNumPasses()
Retrieves the number of passes.


removePass

void removePass(int index)
Removes the with the given index.


removeAllPasses

void removeAllPasses()
Removes all Passes from this .


movePass

boolean movePass(int sourceIndex,
                 int destinationIndex)
Move a pass from source index to destination index. If successful then returns true.


getPassIterator

void getPassIterator(ITechnique.IPassIterator returnValue)
Gets an iterator over the passes in this .


getIlluminationPassIterator

void getIlluminationPassIterator(ITechnique.IIlluminationPassIterator returnValue)
Gets an iterator over the illumination-stage categorised passes.


getParent

IMaterial getParent()

operatorAssignment

ITechnique operatorAssignment(ITechnique rhs)
Overloaded operator to copy on to another.


getResourceGroup

java.lang.String getResourceGroup()

isTransparent

boolean isTransparent()
Returns true if this involves transparency.


isTransparentSortingEnabled

boolean isTransparentSortingEnabled()
Returns true if this has transparent sorting enabled.


_prepare

void _prepare()
Internal prepare method, derived from call to .


_unprepare

void _unprepare()
Internal unprepare method, derived from call to Material::unprepare.


_load

void _load()
Internal load method, derived from call to .


_unload

void _unload()
Internal unload method, derived from call to .


isLoaded

boolean isLoaded()

_notifyNeedsRecompile

void _notifyNeedsRecompile()
Tells the technique that it needs recompilation.


getShadowCasterMaterial

void getShadowCasterMaterial(IMaterialPtr returnValue)
return this material specific shadow casting specific material


setShadowCasterMaterial

void setShadowCasterMaterial(IMaterialPtr val)
set this material specific shadow casting specific material


setShadowCasterMaterial

void setShadowCasterMaterial(java.lang.String name)
set this material specific shadow casting specific material


getShadowReceiverMaterial

void getShadowReceiverMaterial(IMaterialPtr returnValue)
return this material specific shadow receiving specific material


setShadowReceiverMaterial

void setShadowReceiverMaterial(IMaterialPtr val)
set this material specific shadow receiving specific material


setShadowReceiverMaterial

void setShadowReceiverMaterial(java.lang.String name)
set this material specific shadow receiving specific material


setPointSize

void setPointSize(float ps)
Sets the point size properties for every in this .


setAmbient

void setAmbient(float red,
                float green,
                float blue)
Sets the ambient colour reflectance properties for every in every .


setAmbient

void setAmbient(IColourValue ambient)
Sets the ambient colour reflectance properties for every in every .


setDiffuse

void setDiffuse(float red,
                float green,
                float blue,
                float alpha)
Sets the diffuse colour reflectance properties of every in every .


setDiffuse

void setDiffuse(IColourValue diffuse)
Sets the diffuse colour reflectance properties of every in every .


setSpecular

void setSpecular(float red,
                 float green,
                 float blue,
                 float alpha)
Sets the specular colour reflectance properties of every in every .


setSpecular

void setSpecular(IColourValue specular)
Sets the specular colour reflectance properties of every in every .


setShininess

void setShininess(float val)
Sets the shininess properties of every in every .


setSelfIllumination

void setSelfIllumination(float red,
                         float green,
                         float blue)
Sets the amount of self-illumination of every in every .


setSelfIllumination

void setSelfIllumination(IColourValue selfIllum)
Sets the amount of self-illumination of every in every .


setDepthCheckEnabled

void setDepthCheckEnabled(boolean enabled)
Sets whether or not each renders with depth-buffer checking on or not.


setDepthWriteEnabled

void setDepthWriteEnabled(boolean enabled)
Sets whether or not each renders with depth-buffer writing on or not.


setDepthFunction

void setDepthFunction(CompareFunction func)
Sets the function used to compare depth values when depth checking is on.


setColourWriteEnabled

void setColourWriteEnabled(boolean enabled)
Sets whether or not colour buffer writing is enabled for each .


setCullingMode

void setCullingMode(CullingMode mode)
Sets the culling mode for each pass based on the 'vertex winding'.


setManualCullingMode

void setManualCullingMode(ManualCullingMode mode)
Sets the manual culling mode, performed by CPU rather than hardware.


setLightingEnabled

void setLightingEnabled(boolean enabled)
Sets whether or not dynamic lighting is enabled for every .


setShadingMode

void setShadingMode(ShadeOptions mode)
Sets the type of light shading required


setFog

void setFog(boolean overrideScene,
            FogMode mode,
            IColourValue colour,
            float expDensity,
            float linearStart,
            float linearEnd)
Sets the fogging mode applied to each pass.


setDepthBias

void setDepthBias(float constantBias,
                  float slopeScaleBias)
Sets the depth bias to be used for each .


setTextureFiltering

void setTextureFiltering(TextureFilterOptions filterType)
Set texture filtering for every texture unit in every


setTextureAnisotropy

void setTextureAnisotropy(long maxAniso)
Sets the anisotropy level to be used for all textures.


setSceneBlending

void setSceneBlending(SceneBlendType sbt)
Sets the kind of blending every pass has with the existing contents of the scene.


setSeparateSceneBlending

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


setSceneBlending

void setSceneBlending(SceneBlendFactor sourceFactor,
                      SceneBlendFactor destFactor)
Allows very fine control of blending every with the existing contents of the scene.


setSeparateSceneBlending

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


setLodIndex

void setLodIndex(int index)
Assigns a level-of-detail (LOD) index to this .


getLodIndex

int getLodIndex()
Gets the level-of-detail index assigned to this .


setSchemeName

void setSchemeName(java.lang.String schemeName)
Set the 'scheme name' for this technique.


getSchemeName

java.lang.String getSchemeName()
Returns the scheme to which this technique is assigned.


_getSchemeIndex

int _getSchemeIndex()

isDepthWriteEnabled

boolean isDepthWriteEnabled()
Is depth writing going to occur on this technique?


isDepthCheckEnabled

boolean isDepthCheckEnabled()
Is depth checking going to occur on this technique?


hasColourWriteDisabled

boolean hasColourWriteDisabled()
Exists colour writing disabled pass on this technique?


setName

void setName(java.lang.String name)
Set the name of the technique.


getName

java.lang.String getName()

applyTextureAliases

boolean applyTextureAliases(IAliasTextureNamePairList aliasList,
                            boolean apply)
Applies texture names to Unit State with matching texture name aliases. All passes, and Unit States within the technique are checked. If matching texture aliases are found then true is returned.


addGPUVendorRule

void addGPUVendorRule(GPUVendor vendor,
                      Technique.IncludeOrExclude includeOrExclude)
Add a rule which manually influences the support for this technique based on a GPU vendor.


addGPUVendorRule

void addGPUVendorRule(ITechnique.IGPUVendorRule rule)
Add a rule which manually influences the support for this technique based on a GPU vendor.


removeGPUVendorRule

void removeGPUVendorRule(GPUVendor vendor)
Removes a matching vendor rule.


getGPUVendorRuleIterator

void getGPUVendorRuleIterator(ITechnique.IGPUVendorRuleIterator returnValue)

addGPUDeviceNameRule

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*').


addGPUDeviceNameRule

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*').


removeGPUDeviceNameRule

void removeGPUDeviceNameRule(java.lang.String devicePattern)
Removes a matching device name rule.


getGPUDeviceNameRuleIterator

void getGPUDeviceNameRuleIterator(ITechnique.IGPUDeviceNameRuleIterator returnValue)


Copyright © 2007 netAllied GmbH. All Rights Reserved.