|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xbig.base.NativeObject
org.ogre4j.HardwarePixelBuffer
public class HardwarePixelBuffer
| Field Summary |
|---|
| Fields inherited from class org.xbig.base.NativeObject |
|---|
deleted, object, remote |
| Constructor Summary | |
|---|---|
|
HardwarePixelBuffer(InstancePointer p)
This constructor is public for internal useage only! |
protected |
HardwarePixelBuffer(InstancePointer p,
boolean remote)
Creates a Java wrapper object for an existing C++ object. |
|
HardwarePixelBuffer(WithoutNativeObject val)
Allows creation of Java objects without C++ objects. |
| Method Summary | |
|---|---|
void |
_updateFromShadow()
|
void |
blit(IHardwarePixelBufferSharedPtr src)
Convenience function that blits the entire source pixel buffer to this buffer. |
void |
blit(IHardwarePixelBufferSharedPtr src,
IBox srcBox,
IBox dstBox)
Copies a box from another PixelBuffer to a region of the this PixelBuffer. |
void |
blitFromMemory(IPixelBox src)
Convenience function that blits a pixelbox from memory to the entire buffer. |
void |
blitFromMemory(IPixelBox src,
IBox dstBox)
Copies a region from normal memory to a region of this pixelbuffer. |
void |
blitToMemory(IBox srcBox,
IPixelBox dst)
Copies a region of this pixelbuffer to normal memory. |
void |
blitToMemory(IPixelBox dst)
Convience function that blits this entire buffer to a pixelbox. |
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()
|
IPixelBox |
getCurrentLock()
Get the current locked region. |
int |
getDepth()
|
PixelFormat |
getFormat()
|
int |
getHeight()
|
IRenderTexture |
getRenderTarget(int slice)
Get a render target for this PixelBuffer, or a slice of it. |
int |
getSizeInBytes()
|
HardwareBuffer.Usage |
getUsage()
|
int |
getWidth()
|
boolean |
hasShadowBuffer()
|
boolean |
isLocked()
|
boolean |
isSystemMemory()
|
VoidPointer |
lock(HardwareBuffer.LockOptions options)
Lock the entire buffer for (potentially) reading / writing. |
IPixelBox |
lock(IBox lockBox,
HardwareBuffer.LockOptions options)
Lock the 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 HardwarePixelBuffer(InstancePointer p)
protected HardwarePixelBuffer(InstancePointer p,
boolean remote)
public HardwarePixelBuffer(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 NativeObject
public IPixelBox lock(IBox lockBox,
HardwareBuffer.LockOptions options)
lock in interface IHardwarePixelBuffer
public VoidPointer lock(int offset,
int length,
HardwareBuffer.LockOptions options)
IHardwareBuffer
lock in interface IHardwareBufferlock in interface IHardwarePixelBufferpublic IPixelBox getCurrentLock()
getCurrentLock in interface IHardwarePixelBuffer
public void readData(int offset,
int length,
VoidPointer pDest)
IHardwareBuffer
readData in interface IHardwareBufferreadData in interface IHardwarePixelBuffer
public void writeData(int offset,
int length,
VoidPointer pSource,
boolean discardWholeBuffer)
IHardwareBuffer
writeData in interface IHardwareBufferwriteData in interface IHardwarePixelBuffer
public void blit(IHardwarePixelBufferSharedPtr src,
IBox srcBox,
IBox dstBox)
blit in interface IHardwarePixelBufferpublic void blit(IHardwarePixelBufferSharedPtr src)
blit in interface IHardwarePixelBuffer
public void blitFromMemory(IPixelBox src,
IBox dstBox)
blitFromMemory in interface IHardwarePixelBufferpublic void blitFromMemory(IPixelBox src)
blitFromMemory in interface IHardwarePixelBuffer
public void blitToMemory(IBox srcBox,
IPixelBox dst)
blitToMemory in interface IHardwarePixelBufferpublic void blitToMemory(IPixelBox dst)
blitToMemory in interface IHardwarePixelBufferpublic IRenderTexture getRenderTarget(int slice)
getRenderTarget in interface IHardwarePixelBufferpublic int getWidth()
getWidth in interface IHardwarePixelBufferpublic int getHeight()
getHeight in interface IHardwarePixelBufferpublic int getDepth()
getDepth in interface IHardwarePixelBufferpublic PixelFormat getFormat()
getFormat in interface IHardwarePixelBufferpublic VoidPointer lock(HardwareBuffer.LockOptions options)
lock in interface IHardwareBufferpublic void unlock()
unlock 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 | |||||||||