org.ogre4j
Class RenderToVertexBuffer

java.lang.Object
  extended by org.xbig.base.NativeObject
      extended by org.ogre4j.RenderToVertexBuffer
All Implemented Interfaces:
IRenderToVertexBuffer, INativeObject

public class RenderToVertexBuffer
extends NativeObject
implements IRenderToVertexBuffer


Field Summary
 
Fields inherited from class org.xbig.base.NativeObject
deleted, object, remote
 
Constructor Summary
  RenderToVertexBuffer(InstancePointer p)
          This constructor is public for internal useage only!
protected RenderToVertexBuffer(InstancePointer p, boolean remote)
          Creates a Java wrapper object for an existing C++ object.
  RenderToVertexBuffer(WithoutNativeObject val)
          Allows creation of Java objects without C++ objects.
 
Method Summary
 void delete()
          Deletes the corresponding C++ object.
 void finalize()
           
 long getMaxVertexCount()
          Get the maximum number of vertices that the buffer will hold
 RenderOperation.OperationType getOperationType()
          What type of primitives does this object generate?
 void getRenderOperation(IRenderOperation op)
          Get the render operation for this buffer
 IMaterialPtr getRenderToBufferMaterial()
          Get the material which is used to render the geometry into the vertex buffer.
 boolean getResetsEveryUpdate()
          Does this object reset its buffer each time it updates?
 IRenderable getSourceRenderable()
          Get the source renderable of this object
 IVertexDeclaration getVertexDeclaration()
          Get the vertex declaration that the pass will output.
 void reset()
          Reset the vertex buffer to the initial state.
 void setMaxVertexCount(long maxVertexCount)
          Set the maximum number of vertices that the buffer will hold
 void setOperationType(RenderOperation.OperationType operationType)
          Set the type of primitives that this object generates
 void setRenderToBufferMaterialName(java.lang.String materialName)
          Set the material name which is used to render the geometry into the vertex buffer
 void setResetsEveryUpdate(boolean resetsEveryUpdate)
          Set wether this object resets its buffers each time it updates.
 void setSourceRenderable(IRenderable source)
          Set the source renderable of this object.
 void update(ISceneManager sceneMgr)
          Update the contents of this vertex buffer by rendering
 
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

RenderToVertexBuffer

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


RenderToVertexBuffer

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


RenderToVertexBuffer

public RenderToVertexBuffer(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

getVertexDeclaration

public IVertexDeclaration getVertexDeclaration()
Get the vertex declaration that the pass will output.

Specified by:
getVertexDeclaration in interface IRenderToVertexBuffer

getMaxVertexCount

public long getMaxVertexCount()
Get the maximum number of vertices that the buffer will hold

Specified by:
getMaxVertexCount in interface IRenderToVertexBuffer

setMaxVertexCount

public void setMaxVertexCount(long maxVertexCount)
Set the maximum number of vertices that the buffer will hold

Specified by:
setMaxVertexCount in interface IRenderToVertexBuffer

getOperationType

public RenderOperation.OperationType getOperationType()
What type of primitives does this object generate?

Specified by:
getOperationType in interface IRenderToVertexBuffer

setOperationType

public void setOperationType(RenderOperation.OperationType operationType)
Set the type of primitives that this object generates

Specified by:
setOperationType in interface IRenderToVertexBuffer

setResetsEveryUpdate

public void setResetsEveryUpdate(boolean resetsEveryUpdate)
Set wether this object resets its buffers each time it updates.

Specified by:
setResetsEveryUpdate in interface IRenderToVertexBuffer

getResetsEveryUpdate

public boolean getResetsEveryUpdate()
Does this object reset its buffer each time it updates?

Specified by:
getResetsEveryUpdate in interface IRenderToVertexBuffer

getRenderOperation

public void getRenderOperation(IRenderOperation op)
Get the render operation for this buffer

Specified by:
getRenderOperation in interface IRenderToVertexBuffer

update

public void update(ISceneManager sceneMgr)
Update the contents of this vertex buffer by rendering

Specified by:
update in interface IRenderToVertexBuffer

reset

public void reset()
Reset the vertex buffer to the initial state. In the next update, the source renderable will be used as input.

Specified by:
reset in interface IRenderToVertexBuffer

setSourceRenderable

public void setSourceRenderable(IRenderable source)
Set the source renderable of this object. During the first (and perhaps later) update of this object, this object's data will be used as input)

Specified by:
setSourceRenderable in interface IRenderToVertexBuffer

getSourceRenderable

public IRenderable getSourceRenderable()
Get the source renderable of this object

Specified by:
getSourceRenderable in interface IRenderToVertexBuffer

getRenderToBufferMaterial

public IMaterialPtr getRenderToBufferMaterial()
Get the material which is used to render the geometry into the vertex buffer.

Specified by:
getRenderToBufferMaterial in interface IRenderToVertexBuffer

setRenderToBufferMaterialName

public void setRenderToBufferMaterialName(java.lang.String materialName)
Set the material name which is used to render the geometry into the vertex buffer

Specified by:
setRenderToBufferMaterialName in interface IRenderToVertexBuffer


Copyright © 2007 netAllied GmbH. All Rights Reserved.