org.ogre4j
Class RenderSystemCapabilities

java.lang.Object
  extended by org.xbig.base.NativeObject
      extended by org.ogre4j.RenderSystemCapabilities
All Implemented Interfaces:
IAllocatedObject<IRenderSysAllocPolicy>, IRenderSysAllocatedObject, IRenderSystemCapabilities, INativeObject

public class RenderSystemCapabilities
extends NativeObject
implements IRenderSystemCapabilities


Nested Class Summary
static class RenderSystemCapabilities.ShaderProfiles
           
 
Nested classes/interfaces inherited from interface org.ogre4j.IRenderSystemCapabilities
IRenderSystemCapabilities.IShaderProfiles
 
Field Summary
 
Fields inherited from class org.xbig.base.NativeObject
deleted, object, remote
 
Constructor Summary
  RenderSystemCapabilities()
           
  RenderSystemCapabilities(InstancePointer p)
          This constructor is public for internal useage only!
protected RenderSystemCapabilities(InstancePointer p, boolean remote)
          Creates a Java wrapper object for an existing C++ object.
  RenderSystemCapabilities(WithoutNativeObject val)
          Allows creation of Java objects without C++ objects.
 
Method Summary
 void addShaderProfile(java.lang.String profile)
          Adds the profile to the list of supported profiles
 int calculateSize()
           
 void delete()
          Deletes the corresponding C++ object.
 void finalize()
           
 java.lang.String getDeviceName()
           
 void getDriverVersion(IDriverVersion returnValue)
           
 int getFragmentProgramConstantBoolCount()
           
 int getFragmentProgramConstantFloatCount()
           
 int getFragmentProgramConstantIntCount()
           
 int getGeometryProgramConstantBoolCount()
           
 int getGeometryProgramConstantFloatCount()
           
 int getGeometryProgramConstantIntCount()
           
 int getGeometryProgramNumOutputVertices()
           
 float getMaxPointSize()
           
 boolean getNonPOW2TexturesLimited()
          Are non-power of two textures limited in features?
 int getNumMultiRenderTargets()
           
 int getNumTextureUnits()
          Returns the number of texture units the current output hardware supports.
 int getNumVertexBlendMatrices()
          Returns the number of matrices available to hardware vertex blending for this rendering system.
 int getNumVertexTextureUnits()
           
 int getNumWorldMatrices()
           
 java.lang.String getRenderSystemName()
           
 int getStencilBufferBitDepth()
          Determines the bit depth of the hardware accelerated stencil buffer, if supported.
 IRenderSystemCapabilities.IShaderProfiles getSupportedShaderProfiles()
          Returns a set of all supported shader profiles
 GPUVendor getVendor()
           
 int getVertexProgramConstantBoolCount()
           
 int getVertexProgramConstantFloatCount()
           
 int getVertexProgramConstantIntCount()
           
 boolean getVertexTextureUnitsShared()
           
 boolean hasCapability(Capabilities c)
          Checks for a capability
 boolean isCapabilityRenderSystemSpecific(Capabilities c)
          Returns true if capability is render system specific
 boolean isCategoryRelevant(CapabilitiesCategory cat)
           
 boolean isDriverOlderThanVersion(IDriverVersion v)
           
 boolean isShaderProfileSupported(java.lang.String profile)
          Returns true if profile is in the list of supported profiles
 void log(ILog pLog)
          Write the capabilities to the pass in
 void parseDriverVersionFromString(java.lang.String versionString)
           
 void parseVendorFromString(java.lang.String vendorString)
           
 void removeShaderProfile(java.lang.String profile)
          Remove a given shader profile, if present.
 void setCapability(Capabilities c)
          Adds a capability flag
 void setCategoryRelevant(CapabilitiesCategory cat, boolean relevant)
           
 void setDeviceName(java.lang.String name)
           
 void setDriverVersion(IDriverVersion version)
          Set the driver version.
 void setFragmentProgramConstantBoolCount(int c)
           
 void setFragmentProgramConstantFloatCount(int c)
           
 void setFragmentProgramConstantIntCount(int c)
           
 void setGeometryProgramConstantBoolCount(int c)
           
 void setGeometryProgramConstantFloatCount(int c)
           
 void setGeometryProgramConstantIntCount(int c)
           
 void setGeometryProgramNumOutputVertices(int numOutputVertices)
           
 void setMaxPointSize(float s)
           
 void setNonPOW2TexturesLimited(boolean l)
           
 void setNumMultiRenderTargets(int num)
           
 void setNumTextureUnits(int num)
           
 void setNumVertexBlendMatrices(int num)
           
 void setNumVertexTextureUnits(int n)
           
 void setNumWorldMatrices(int num)
           
 void setRenderSystemName(java.lang.String rs)
           
 void setStencilBufferBitDepth(int num)
           
 void setVendor(GPUVendor v)
           
 void setVertexProgramConstantBoolCount(int c)
           
 void setVertexProgramConstantFloatCount(int c)
           
 void setVertexProgramConstantIntCount(int c)
           
 void setVertexTextureUnitsShared(boolean shared)
           
 void unsetCapability(Capabilities c)
          Remove a capability flag
static GPUVendor vendorFromString(java.lang.String vendorString)
           
static java.lang.String vendorToString(GPUVendor v)
           
 
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

RenderSystemCapabilities

public RenderSystemCapabilities(InstancePointer p)
This constructor is public for internal useage only! Do not use it!


RenderSystemCapabilities

protected RenderSystemCapabilities(InstancePointer p,
                                   boolean remote)
Creates a Java wrapper object for an existing C++ object. If remote is set to 'true' this object cannot be deleted in Java.


RenderSystemCapabilities

public RenderSystemCapabilities(WithoutNativeObject val)
Allows creation of Java objects without C++ objects.

See Also:
WithoutNativeObject, INativeObject.disconnectFromNativeObject()

RenderSystemCapabilities

public RenderSystemCapabilities()
Method Detail

delete

public void delete()
Description copied from interface: INativeObject
Deletes the corresponding C++ object.

Subclasses must implement this but if the native instance was created by the underlying library the native call to dispose must not happen!

Specified by:
delete in interface INativeObject
Specified by:
delete in class NativeObject
See Also:
#remote

finalize

public void finalize()
Overrides:
finalize in class NativeObject

calculateSize

public int calculateSize()
Specified by:
calculateSize in interface IRenderSystemCapabilities

setDriverVersion

public void setDriverVersion(IDriverVersion version)
Set the driver version.

Specified by:
setDriverVersion in interface IRenderSystemCapabilities

parseDriverVersionFromString

public void parseDriverVersionFromString(java.lang.String versionString)
Specified by:
parseDriverVersionFromString in interface IRenderSystemCapabilities

getDriverVersion

public void getDriverVersion(IDriverVersion returnValue)
Specified by:
getDriverVersion in interface IRenderSystemCapabilities

getVendor

public GPUVendor getVendor()
Specified by:
getVendor in interface IRenderSystemCapabilities

setVendor

public void setVendor(GPUVendor v)
Specified by:
setVendor in interface IRenderSystemCapabilities

parseVendorFromString

public void parseVendorFromString(java.lang.String vendorString)
Specified by:
parseVendorFromString in interface IRenderSystemCapabilities

isDriverOlderThanVersion

public boolean isDriverOlderThanVersion(IDriverVersion v)
Specified by:
isDriverOlderThanVersion in interface IRenderSystemCapabilities

setNumWorldMatrices

public void setNumWorldMatrices(int num)
Specified by:
setNumWorldMatrices in interface IRenderSystemCapabilities

setNumTextureUnits

public void setNumTextureUnits(int num)
Specified by:
setNumTextureUnits in interface IRenderSystemCapabilities

setStencilBufferBitDepth

public void setStencilBufferBitDepth(int num)
Specified by:
setStencilBufferBitDepth in interface IRenderSystemCapabilities

setNumVertexBlendMatrices

public void setNumVertexBlendMatrices(int num)
Specified by:
setNumVertexBlendMatrices in interface IRenderSystemCapabilities

setNumMultiRenderTargets

public void setNumMultiRenderTargets(int num)
Specified by:
setNumMultiRenderTargets in interface IRenderSystemCapabilities

getNumWorldMatrices

public int getNumWorldMatrices()
Specified by:
getNumWorldMatrices in interface IRenderSystemCapabilities

getNumTextureUnits

public int getNumTextureUnits()
Returns the number of texture units the current output hardware supports. For use in rendering, this determines how many texture units the are available for multitexturing (i.e. rendering multiple textures in a single pass). Where a has multiple texture layers, it will try to use multitexturing where available, and where it is not available, will perform multipass rendering to achieve the same effect. This property only applies to the fixed-function pipeline, the number available to the programmable pipeline depends on the shader model in use.

Specified by:
getNumTextureUnits in interface IRenderSystemCapabilities

getStencilBufferBitDepth

public int getStencilBufferBitDepth()
Determines the bit depth of the hardware accelerated stencil buffer, if supported.

Specified by:
getStencilBufferBitDepth in interface IRenderSystemCapabilities

getNumVertexBlendMatrices

public int getNumVertexBlendMatrices()
Returns the number of matrices available to hardware vertex blending for this rendering system.

Specified by:
getNumVertexBlendMatrices in interface IRenderSystemCapabilities

getNumMultiRenderTargets

public int getNumMultiRenderTargets()
Specified by:
getNumMultiRenderTargets in interface IRenderSystemCapabilities

isCapabilityRenderSystemSpecific

public boolean isCapabilityRenderSystemSpecific(Capabilities c)
Returns true if capability is render system specific

Specified by:
isCapabilityRenderSystemSpecific in interface IRenderSystemCapabilities

setCapability

public void setCapability(Capabilities c)
Adds a capability flag

Specified by:
setCapability in interface IRenderSystemCapabilities

unsetCapability

public void unsetCapability(Capabilities c)
Remove a capability flag

Specified by:
unsetCapability in interface IRenderSystemCapabilities

hasCapability

public boolean hasCapability(Capabilities c)
Checks for a capability

Specified by:
hasCapability in interface IRenderSystemCapabilities

addShaderProfile

public void addShaderProfile(java.lang.String profile)
Adds the profile to the list of supported profiles

Specified by:
addShaderProfile in interface IRenderSystemCapabilities

removeShaderProfile

public void removeShaderProfile(java.lang.String profile)
Remove a given shader profile, if present.

Specified by:
removeShaderProfile in interface IRenderSystemCapabilities

isShaderProfileSupported

public boolean isShaderProfileSupported(java.lang.String profile)
Returns true if profile is in the list of supported profiles

Specified by:
isShaderProfileSupported in interface IRenderSystemCapabilities

getSupportedShaderProfiles

public IRenderSystemCapabilities.IShaderProfiles getSupportedShaderProfiles()
Returns a set of all supported shader profiles

Specified by:
getSupportedShaderProfiles in interface IRenderSystemCapabilities

getVertexProgramConstantFloatCount

public int getVertexProgramConstantFloatCount()
Specified by:
getVertexProgramConstantFloatCount in interface IRenderSystemCapabilities

getVertexProgramConstantIntCount

public int getVertexProgramConstantIntCount()
Specified by:
getVertexProgramConstantIntCount in interface IRenderSystemCapabilities

getVertexProgramConstantBoolCount

public int getVertexProgramConstantBoolCount()
Specified by:
getVertexProgramConstantBoolCount in interface IRenderSystemCapabilities

getGeometryProgramConstantFloatCount

public int getGeometryProgramConstantFloatCount()
Specified by:
getGeometryProgramConstantFloatCount in interface IRenderSystemCapabilities

getGeometryProgramConstantIntCount

public int getGeometryProgramConstantIntCount()
Specified by:
getGeometryProgramConstantIntCount in interface IRenderSystemCapabilities

getGeometryProgramConstantBoolCount

public int getGeometryProgramConstantBoolCount()
Specified by:
getGeometryProgramConstantBoolCount in interface IRenderSystemCapabilities

getFragmentProgramConstantFloatCount

public int getFragmentProgramConstantFloatCount()
Specified by:
getFragmentProgramConstantFloatCount in interface IRenderSystemCapabilities

getFragmentProgramConstantIntCount

public int getFragmentProgramConstantIntCount()
Specified by:
getFragmentProgramConstantIntCount in interface IRenderSystemCapabilities

getFragmentProgramConstantBoolCount

public int getFragmentProgramConstantBoolCount()
Specified by:
getFragmentProgramConstantBoolCount in interface IRenderSystemCapabilities

setDeviceName

public void setDeviceName(java.lang.String name)
Specified by:
setDeviceName in interface IRenderSystemCapabilities

getDeviceName

public java.lang.String getDeviceName()
Specified by:
getDeviceName in interface IRenderSystemCapabilities

setVertexProgramConstantFloatCount

public void setVertexProgramConstantFloatCount(int c)
Specified by:
setVertexProgramConstantFloatCount in interface IRenderSystemCapabilities

setVertexProgramConstantIntCount

public void setVertexProgramConstantIntCount(int c)
Specified by:
setVertexProgramConstantIntCount in interface IRenderSystemCapabilities

setVertexProgramConstantBoolCount

public void setVertexProgramConstantBoolCount(int c)
Specified by:
setVertexProgramConstantBoolCount in interface IRenderSystemCapabilities

setGeometryProgramConstantFloatCount

public void setGeometryProgramConstantFloatCount(int c)
Specified by:
setGeometryProgramConstantFloatCount in interface IRenderSystemCapabilities

setGeometryProgramConstantIntCount

public void setGeometryProgramConstantIntCount(int c)
Specified by:
setGeometryProgramConstantIntCount in interface IRenderSystemCapabilities

setGeometryProgramConstantBoolCount

public void setGeometryProgramConstantBoolCount(int c)
Specified by:
setGeometryProgramConstantBoolCount in interface IRenderSystemCapabilities

setFragmentProgramConstantFloatCount

public void setFragmentProgramConstantFloatCount(int c)
Specified by:
setFragmentProgramConstantFloatCount in interface IRenderSystemCapabilities

setFragmentProgramConstantIntCount

public void setFragmentProgramConstantIntCount(int c)
Specified by:
setFragmentProgramConstantIntCount in interface IRenderSystemCapabilities

setFragmentProgramConstantBoolCount

public void setFragmentProgramConstantBoolCount(int c)
Specified by:
setFragmentProgramConstantBoolCount in interface IRenderSystemCapabilities

setMaxPointSize

public void setMaxPointSize(float s)
Specified by:
setMaxPointSize in interface IRenderSystemCapabilities

getMaxPointSize

public float getMaxPointSize()
Specified by:
getMaxPointSize in interface IRenderSystemCapabilities

setNonPOW2TexturesLimited

public void setNonPOW2TexturesLimited(boolean l)
Specified by:
setNonPOW2TexturesLimited in interface IRenderSystemCapabilities

getNonPOW2TexturesLimited

public boolean getNonPOW2TexturesLimited()
Are non-power of two textures limited in features?

Specified by:
getNonPOW2TexturesLimited in interface IRenderSystemCapabilities

setNumVertexTextureUnits

public void setNumVertexTextureUnits(int n)
Specified by:
setNumVertexTextureUnits in interface IRenderSystemCapabilities

getNumVertexTextureUnits

public int getNumVertexTextureUnits()
Specified by:
getNumVertexTextureUnits in interface IRenderSystemCapabilities

setVertexTextureUnitsShared

public void setVertexTextureUnitsShared(boolean shared)
Specified by:
setVertexTextureUnitsShared in interface IRenderSystemCapabilities

getVertexTextureUnitsShared

public boolean getVertexTextureUnitsShared()
Specified by:
getVertexTextureUnitsShared in interface IRenderSystemCapabilities

setGeometryProgramNumOutputVertices

public void setGeometryProgramNumOutputVertices(int numOutputVertices)
Specified by:
setGeometryProgramNumOutputVertices in interface IRenderSystemCapabilities

getGeometryProgramNumOutputVertices

public int getGeometryProgramNumOutputVertices()
Specified by:
getGeometryProgramNumOutputVertices in interface IRenderSystemCapabilities

getRenderSystemName

public java.lang.String getRenderSystemName()
Specified by:
getRenderSystemName in interface IRenderSystemCapabilities

setRenderSystemName

public void setRenderSystemName(java.lang.String rs)
Specified by:
setRenderSystemName in interface IRenderSystemCapabilities

setCategoryRelevant

public void setCategoryRelevant(CapabilitiesCategory cat,
                                boolean relevant)
Specified by:
setCategoryRelevant in interface IRenderSystemCapabilities

isCategoryRelevant

public boolean isCategoryRelevant(CapabilitiesCategory cat)
Specified by:
isCategoryRelevant in interface IRenderSystemCapabilities

log

public void log(ILog pLog)
Write the capabilities to the pass in

Specified by:
log in interface IRenderSystemCapabilities

vendorFromString

public static GPUVendor vendorFromString(java.lang.String vendorString)

vendorToString

public static java.lang.String vendorToString(GPUVendor v)


Copyright © 2007 netAllied GmbH. All Rights Reserved.