|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xbig.base.NativeObject
org.ogre4j.DefaultHardwareVertexBuffer
public class DefaultHardwareVertexBuffer
| Field Summary |
|---|
| Fields inherited from class org.xbig.base.NativeObject |
|---|
deleted, object, remote |
| Constructor Summary | |
|---|---|
|
DefaultHardwareVertexBuffer(InstancePointer p)
This constructor is public for internal useage only! |
protected |
DefaultHardwareVertexBuffer(InstancePointer p,
boolean remote)
Creates a Java wrapper object for an existing C++ object. |
|
DefaultHardwareVertexBuffer(int vertexSize,
int numVertices,
HardwareBuffer.Usage usage)
|
|
DefaultHardwareVertexBuffer(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 |
getNumVertices()
|
int |
getSizeInBytes()
|
HardwareBuffer.Usage |
getUsage()
|
int |
getVertexSize()
|
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 DefaultHardwareVertexBuffer(InstancePointer p)
protected DefaultHardwareVertexBuffer(InstancePointer p,
boolean remote)
public DefaultHardwareVertexBuffer(WithoutNativeObject val)
WithoutNativeObject,
INativeObject.disconnectFromNativeObject()
public DefaultHardwareVertexBuffer(int vertexSize,
int numVertices,
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 int getVertexSize()
getVertexSize in interface IHardwareVertexBufferpublic int getNumVertices()
getNumVertices in interface IHardwareVertexBufferpublic 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 | |||||||||