org.ogre4j
Class HardwareOcclusionQuery

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

public class HardwareOcclusionQuery
extends NativeObject
implements IHardwareOcclusionQuery


Field Summary
 
Fields inherited from class org.xbig.base.NativeObject
deleted, object, remote
 
Constructor Summary
  HardwareOcclusionQuery(InstancePointer p)
          This constructor is public for internal useage only!
protected HardwareOcclusionQuery(InstancePointer p, boolean remote)
          Creates a Java wrapper object for an existing C++ object.
  HardwareOcclusionQuery(WithoutNativeObject val)
          Allows creation of Java objects without C++ objects.
 
Method Summary
 void beginOcclusionQuery()
          Starts the hardware occlusion query Results must be pulled using: UINT m_uintNumberOfPixelsVisable; pullOcclusionQuery( &m_dwNumberOfPixelsVisable );
 void delete()
          Deletes the corresponding C++ object.
 void endOcclusionQuery()
          Ends the hardware occlusion test
 void finalize()
           
 long getLastQuerysPixelcount()
          Let's you get the last pixel count with out doing the hardware occlusion test
 boolean isStillOutstanding()
          Lets you know when query is done, or still be processed by the Hardware
 boolean pullOcclusionQuery(LongPointer NumOfFragments)
          Pulls the hardware occlusion query.
 
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

HardwareOcclusionQuery

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


HardwareOcclusionQuery

protected HardwareOcclusionQuery(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.


HardwareOcclusionQuery

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

See Also:
WithoutNativeObject, INativeObject.disconnectFromNativeObject()
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

beginOcclusionQuery

public void beginOcclusionQuery()
Starts the hardware occlusion query Results must be pulled using: UINT m_uintNumberOfPixelsVisable; pullOcclusionQuery( &m_dwNumberOfPixelsVisable );

Specified by:
beginOcclusionQuery in interface IHardwareOcclusionQuery

endOcclusionQuery

public void endOcclusionQuery()
Ends the hardware occlusion test

Specified by:
endOcclusionQuery in interface IHardwareOcclusionQuery

pullOcclusionQuery

public boolean pullOcclusionQuery(LongPointer NumOfFragments)
Pulls the hardware occlusion query.

Specified by:
pullOcclusionQuery in interface IHardwareOcclusionQuery

getLastQuerysPixelcount

public long getLastQuerysPixelcount()
Let's you get the last pixel count with out doing the hardware occlusion test

Specified by:
getLastQuerysPixelcount in interface IHardwareOcclusionQuery

isStillOutstanding

public boolean isStillOutstanding()
Lets you know when query is done, or still be processed by the Hardware

Specified by:
isStillOutstanding in interface IHardwareOcclusionQuery


Copyright © 2007 netAllied GmbH. All Rights Reserved.