|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xbig.base.NativeObject
org.ogre4j.HardwareIndexBuffer
public class HardwareIndexBuffer
| Nested Class Summary | |
|---|---|
static class |
HardwareIndexBuffer.IndexType
|
| Field Summary |
|---|
| Fields inherited from class org.xbig.base.NativeObject |
|---|
deleted, object, remote |
| Constructor Summary | |
|---|---|
|
HardwareIndexBuffer(InstancePointer p)
This constructor is public for internal useage only! |
protected |
HardwareIndexBuffer(InstancePointer p,
boolean remote)
Creates a Java wrapper object for an existing C++ object. |
|
HardwareIndexBuffer(WithoutNativeObject val)
Allows creation of Java objects without C++ objects. |
| Method Summary | |
|---|---|
void |
_updateFromShadow()
|
void |
copyData(IHardwareBuffer srcBuffer,
int srcOffset,
int dstOffset,
int length,
boolean discardWholeBuffer)
Copy data from another buffer into this one. |
void |
delete()
Deletes the corresponding C++ object. |
void |
finalize()
|
int |
getIndexSize()
|
int |
getNumIndexes()
|
int |
getSizeInBytes()
|
HardwareIndexBuffer.IndexType |
getType()
|
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 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 |
|---|
public HardwareIndexBuffer(InstancePointer p)
protected HardwareIndexBuffer(InstancePointer p,
boolean remote)
public HardwareIndexBuffer(WithoutNativeObject val)
WithoutNativeObject,
INativeObject.disconnectFromNativeObject()| Method Detail |
|---|
public void delete()
INativeObjectSubclasses must implement this but if the native instance was created by the underlying library the native call to dispose must not happen!
delete in interface INativeObjectdelete in class NativeObject#remotepublic void finalize()
finalize in class NativeObjectpublic HardwareIndexBuffer.IndexType getType()
getType in interface IHardwareIndexBufferpublic int getNumIndexes()
getNumIndexes in interface IHardwareIndexBufferpublic int getIndexSize()
getIndexSize in interface IHardwareIndexBuffer
public VoidPointer lock(int offset,
int length,
HardwareBuffer.LockOptions options)
lock in interface IHardwareBufferpublic VoidPointer lock(HardwareBuffer.LockOptions options)
lock in interface IHardwareBufferpublic void unlock()
unlock in interface IHardwareBuffer
public void readData(int offset,
int length,
VoidPointer pDest)
readData in interface IHardwareBuffer
public void writeData(int offset,
int length,
VoidPointer pSource,
boolean discardWholeBuffer)
writeData in interface IHardwareBuffer
public void copyData(IHardwareBuffer srcBuffer,
int srcOffset,
int dstOffset,
int length,
boolean discardWholeBuffer)
copyData in interface IHardwareBufferpublic void _updateFromShadow()
_updateFromShadow in interface IHardwareBufferpublic int getSizeInBytes()
getSizeInBytes in interface IHardwareBufferpublic HardwareBuffer.Usage getUsage()
getUsage in interface IHardwareBufferpublic boolean isSystemMemory()
isSystemMemory in interface IHardwareBufferpublic boolean hasShadowBuffer()
hasShadowBuffer in interface IHardwareBufferpublic boolean isLocked()
isLocked in interface IHardwareBufferpublic void suppressHardwareUpdate(boolean suppress)
suppressHardwareUpdate in interface IHardwareBuffer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||