crystalspace.jbind.impl.video.rndbuf
Class csRenderBuffer

java.lang.Object
  extended bycrystalspace.jbind.impl.csNativeObject
      extended bycrystalspace.jbind.impl.csutil.scf.csBase
          extended bycrystalspace.jbind.impl.video.rndbuf.csRenderBuffer
All Implemented Interfaces:
iBase, iPointer, iRenderBuffer

public class csRenderBuffer
extends csBase
implements iRenderBuffer

Author:
Quentin Anciaux

Field Summary
 
Fields inherited from class crystalspace.jbind.impl.csNativeObject
ImplFactory, nPointer
 
Constructor Summary
csRenderBuffer(iPointer nPointer)
           
 
Method Summary
 int getBufferType()
          Get type of buffer (static/dynamic);.
 int getComponentCount()
          Gets the number of components per element.
 int getComponentType()
          Gets the component type (float, int, etc);.
 java.lang.String getName()
          Return the name of the interface
 int getSize()
          Get the size of the buffer (in bytes);.
 int getVersion()
          Return the version of the interface
protected  boolean isNativePointerValidSafe(long pointer)
           
 iPointer lock(int lockType)
          Lock the buffer to allow writing and give us a pointer to the data.
 void release()
          Releases the buffer.
 void setComponentCount(int count)
          Sets the number of components per element.
 void setComponentType(int type)
          Sets the component type (float, int, etc);.
 
Methods inherited from class crystalspace.jbind.impl.csutil.scf.csBase
decRef, equals, finalize, getRefCount, incRef, nDelete, queryInterface, queryInterfaceSafe
 
Methods inherited from class crystalspace.jbind.impl.csNativeObject
changePointer, getPointer, getPointer, getPointerArray, hashCode, isMemoryOwner, isNativePointerValid, newNativeObject, setMemoryOwner, toString
 
Methods inherited from class java.lang.Object
clone, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface crystalspace.jbind.interfaces.iutil.scf.iBase
decRef, getRefCount, incRef, queryInterface, queryInterfaceSafe
 
Methods inherited from interface crystalspace.jbind.interfaces.iPointer
changePointer, getPointer, isMemoryOwner, setMemoryOwner
 

Constructor Detail

csRenderBuffer

public csRenderBuffer(iPointer nPointer)
Parameters:
nPointer -
Method Detail

getVersion

public int getVersion()
Description copied from interface: iBase
Return the version of the interface

Specified by:
getVersion in interface iBase
Specified by:
getVersion in class csBase
See Also:
iBase.getVersion()

getName

public java.lang.String getName()
Description copied from interface: iBase
Return the name of the interface

Specified by:
getName in interface iBase
Specified by:
getName in class csBase
See Also:
iBase.getName()

isNativePointerValidSafe

protected boolean isNativePointerValidSafe(long pointer)
Specified by:
isNativePointerValidSafe in class csNativeObject
See Also:
csNativeObject.isNativePointerValidSafe(long)

getBufferType

public int getBufferType()
Description copied from interface: iRenderBuffer
Get type of buffer (static/dynamic);.

Specified by:
getBufferType in interface iRenderBuffer
Returns:
See Also:
iRenderBuffer.getBufferType()

getComponentCount

public int getComponentCount()
Description copied from interface: iRenderBuffer
Gets the number of components per element.

Specified by:
getComponentCount in interface iRenderBuffer
Returns:
See Also:
iRenderBuffer.getComponentCount()

getComponentType

public int getComponentType()
Description copied from interface: iRenderBuffer
Gets the component type (float, int, etc);.

Specified by:
getComponentType in interface iRenderBuffer
Returns:
See Also:
iRenderBuffer.getComponentType()

getSize

public int getSize()
Description copied from interface: iRenderBuffer
Get the size of the buffer (in bytes);.

Specified by:
getSize in interface iRenderBuffer
Returns:
See Also:
iRenderBuffer.getSize()

lock

public iPointer lock(int lockType)
Description copied from interface: iRenderBuffer
Lock the buffer to allow writing and give us a pointer to the data. The pointer will be (void*);-1 if there was some error.

Specified by:
lock in interface iRenderBuffer
Parameters:
lockType -
Returns:
See Also:
iRenderBuffer.lock(int)

release

public void release()
Description copied from interface: iRenderBuffer
Releases the buffer. After this all writing to the buffer is illegal.

Specified by:
release in interface iRenderBuffer
See Also:
iRenderBuffer.release()

setComponentCount

public void setComponentCount(int count)
Description copied from interface: iRenderBuffer
Sets the number of components per element.

Specified by:
setComponentCount in interface iRenderBuffer
Parameters:
count -
See Also:
iRenderBuffer.setComponentCount(int)

setComponentType

public void setComponentType(int type)
Description copied from interface: iRenderBuffer
Sets the component type (float, int, etc);.

Specified by:
setComponentType in interface iRenderBuffer
Parameters:
type -
See Also:
iRenderBuffer.setComponentType(int)