|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xbig.base.NativeObject
org.ogre4j.DefaultHardwareIndexBuffer
public class DefaultHardwareIndexBuffer
| Field Summary |
|---|
| Fields inherited from class org.xbig.base.NativeObject |
|---|
deleted, object, remote |
| Constructor Summary | |
|---|---|
|
DefaultHardwareIndexBuffer(HardwareIndexBuffer.IndexType idxType,
int numIndexes,
HardwareBuffer.Usage usage)
|
|
DefaultHardwareIndexBuffer(InstancePointer p)
This constructor is public for internal useage only! |
protected |
DefaultHardwareIndexBuffer(InstancePointer p,
boolean remote)
Creates a Java wrapper object for an existing C++ object. |
|
DefaultHardwareIndexBuffer(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)
Override to turn off all shadowing. |
void |
readData(int offset,
int length,
VoidPointer pDest)
See . |
void |
suppressHardwareUpdate(boolean suppress)
|
void |
unlock()
Override to turn off all shadowing. |
void |
writeData(int offset,
int length,
VoidPointer pSource,
boolean discardWholeBuffer)
See . |
| 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 DefaultHardwareIndexBuffer(InstancePointer p)
protected DefaultHardwareIndexBuffer(InstancePointer p,
boolean remote)
public DefaultHardwareIndexBuffer(WithoutNativeObject val)
WithoutNativeObject,
INativeObject.disconnectFromNativeObject()
public DefaultHardwareIndexBuffer(HardwareIndexBuffer.IndexType idxType,
int numIndexes,
HardwareBuffer.Usage usage)
| 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 NativeObject
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 VoidPointer lock(int offset,
int length,
HardwareBuffer.LockOptions options)
lock in interface IHardwareBufferpublic void unlock()
unlock in interface IHardwareBufferpublic HardwareIndexBuffer.IndexType getType()
getType in interface IHardwareIndexBufferpublic int getNumIndexes()
getNumIndexes in interface IHardwareIndexBufferpublic int getIndexSize()
getIndexSize in interface IHardwareIndexBufferpublic VoidPointer lock(HardwareBuffer.LockOptions options)
lock 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 | |||||||||