org.ogre4j
Interface IHardwareBuffer

All Superinterfaces:
IAllocatedObject<IRenderSysAllocPolicy>, INativeObject, IRenderSysAllocatedObject
All Known Subinterfaces:
IDefaultHardwareIndexBuffer, IDefaultHardwareVertexBuffer, IHardwareIndexBuffer, IHardwarePixelBuffer, IHardwareVertexBuffer
All Known Implementing Classes:
DefaultHardwareIndexBuffer, DefaultHardwareVertexBuffer, HardwareBuffer, HardwareIndexBuffer, HardwarePixelBuffer, HardwareVertexBuffer

public interface IHardwareBuffer
extends INativeObject, IRenderSysAllocatedObject


Method Summary
 void _updateFromShadow()
           
 void copyData(IHardwareBuffer srcBuffer, int srcOffset, int dstOffset, int length, boolean discardWholeBuffer)
          Copy data from another buffer into this one.
 int getSizeInBytes()
           
 HardwareBuffer.Usage getUsage()
           
 boolean hasShadowBuffer()
           
 boolean isLocked()
           
 boolean isSystemMemory()
           
 VoidPointer lock(HardwareBuffer.LockOptions options)
          Lock the entire buffer for (potentially) reading / writing.
 VoidPointer lock(int offset, int length, HardwareBuffer.LockOptions options)
          Lock the buffer for (potentially) reading / writing.
 void readData(int offset, int length, VoidPointer pDest)
          Reads data from the buffer and places it in the memory pointed to by pDest.
 void suppressHardwareUpdate(boolean suppress)
           
 void unlock()
          Releases the lock on this buffer.
 void writeData(int offset, int length, VoidPointer pSource, boolean discardWholeBuffer)
          Writes data to the buffer from an area of system memory; note that you must ensure that your buffer is big enough.
 
Methods inherited from interface org.xbig.base.INativeObject
delete, disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer
 

Method Detail

lock

VoidPointer lock(int offset,
                 int length,
                 HardwareBuffer.LockOptions options)
Lock the buffer for (potentially) reading / writing.


lock

VoidPointer lock(HardwareBuffer.LockOptions options)
Lock the entire buffer for (potentially) reading / writing.


unlock

void unlock()
Releases the lock on this buffer.


readData

void readData(int offset,
              int length,
              VoidPointer pDest)
Reads data from the buffer and places it in the memory pointed to by pDest.


writeData

void writeData(int offset,
               int length,
               VoidPointer pSource,
               boolean discardWholeBuffer)
Writes data to the buffer from an area of system memory; note that you must ensure that your buffer is big enough.


copyData

void copyData(IHardwareBuffer srcBuffer,
              int srcOffset,
              int dstOffset,
              int length,
              boolean discardWholeBuffer)
Copy data from another buffer into this one.


_updateFromShadow

void _updateFromShadow()

getSizeInBytes

int getSizeInBytes()

getUsage

HardwareBuffer.Usage getUsage()

isSystemMemory

boolean isSystemMemory()

hasShadowBuffer

boolean hasShadowBuffer()

isLocked

boolean isLocked()

suppressHardwareUpdate

void suppressHardwareUpdate(boolean suppress)


Copyright © 2007 netAllied GmbH. All Rights Reserved.