![]() |
Rigs of Rods 2026.01
Soft-body Physics Simulation
|
A shared pointer to a pixel buffer, which may be a texture surface (a single face and mipmap level) or a render target.
Binding of Ogre::HardwarePixelBufferSharedPtr.
TexturePtr::getBuffer(). Use lock()/unlock() to access the pixels directly, or blitFromMemory()/blitToMemory() to copy them from/to a PixelBox. SE_GENERIC_EXCEPTION_CAUGHT script events, so check the event if a call seems to do nothing. Definition at line 21 of file AngelOgre_HardwarePixelBufferPtr.h.
Public Member Functions | |
| HardwarePixelBufferPtr () | |
| HardwarePixelBufferPtr (const HardwarePixelBufferPtr &in other) | |
| HardwarePixelBufferPtr & | opAssign (const HardwarePixelBufferPtr &in other) |
| const PixelBox & | lock (const box &lockbox, HardwareBufferLockOptions opt) |
| const PixelBox & | getCurrentLock () |
| void | unlock () |
| uint | getWidth () |
| uint | getHeight () |
| void | blitFromMemory (const PixelBox &src, const box &dst) |
| void | blitToMemory (const box &src, const PixelBox &dst) |
| AngelOgre::HardwarePixelBufferPtr::HardwarePixelBufferPtr | ( | ) |
Creates an empty (null) pointer.
| AngelOgre::HardwarePixelBufferPtr::HardwarePixelBufferPtr | ( | const HardwarePixelBufferPtr &in | other | ) |
Creates a copy pointing to the same buffer.
| void AngelOgre::HardwarePixelBufferPtr::blitFromMemory | ( | const PixelBox & | src, |
| const box & | dst | ||
| ) |
Copies a region of memory into a region of this buffer.
| src | The source pixels. |
| dst | The destination region within this buffer; if its size differs from src, the pixels are scaled. |
| void AngelOgre::HardwarePixelBufferPtr::blitToMemory | ( | const box & | src, |
| const PixelBox & | dst | ||
| ) |
Copies a region of this buffer into memory.
| src | The source region within this buffer. |
| dst | The destination pixels; if its size differs from src, the pixels are scaled. |
| const PixelBox & AngelOgre::HardwarePixelBufferPtr::getCurrentLock | ( | ) |
| uint AngelOgre::HardwarePixelBufferPtr::getHeight | ( | ) |
Height of the buffer, in pixels.
| uint AngelOgre::HardwarePixelBufferPtr::getWidth | ( | ) |
Width of the buffer, in pixels.
| const PixelBox & AngelOgre::HardwarePixelBufferPtr::lock | ( | const box & | lockbox, |
| HardwareBufferLockOptions | opt | ||
| ) |
| HardwarePixelBufferPtr & AngelOgre::HardwarePixelBufferPtr::opAssign | ( | const HardwarePixelBufferPtr &in | other | ) |
| void AngelOgre::HardwarePixelBufferPtr::unlock | ( | ) |
Releases the lock obtained by lock(), uploading any modifications to the GPU.