![]() |
Rigs of Rods 2026.01
Soft-body Physics Simulation
|
A box of pixels in memory, with a known pixel format.
Binding of Ogre::PixelBox.
HardwarePixelBufferPtr::lock() (it then points directly into the locked buffer) or from Image::getPixelBox(). It can be passed to HardwarePixelBufferPtr::blitFromMemory() and HardwarePixelBufferPtr::blitToMemory(). unlock() is called). Definition at line 20 of file AngelOgre_PixelBox.h.
Public Member Functions | |
| PixelBox () | |
| PixelBox (const PixelBox &in other) | |
| PixelBox & | opAssign (const PixelBox &in other) |
| color | getColourAt (uint32 x, uint32 y, uint32 z) |
| void | setColourAt (const color &c, uint32 x, uint32 y, uint32 z) |
| uint | getWidth () |
| uint | getHeight () |
| uint | getDepth () |
| AngelOgre::PixelBox::PixelBox | ( | ) |
Creates an empty PixelBox which points to no memory.
| AngelOgre::PixelBox::PixelBox | ( | const PixelBox &in | other | ) |
Creates a copy referencing the same memory.
| color AngelOgre::PixelBox::getColourAt | ( | uint32 | x, |
| uint32 | y, | ||
| uint32 | z | ||
| ) |
Gets the colour of the pixel at the given position.
| x | Column, relative to the box's left edge. |
| y | Row, relative to the box's top edge. |
| z | Slice, relative to the box's front edge (use 0 for 2D images). |
| uint AngelOgre::PixelBox::getDepth | ( | ) |
Depth of the box, in pixels (1 for 2D images).
| uint AngelOgre::PixelBox::getHeight | ( | ) |
Height of the box, in pixels.
| uint AngelOgre::PixelBox::getWidth | ( | ) |
Width of the box, in pixels.
| void AngelOgre::PixelBox::setColourAt | ( | const color & | c, |
| uint32 | x, | ||
| uint32 | y, | ||
| uint32 | z | ||
| ) |
Sets the colour of the pixel at the given position, converting it to the box's pixel format.
| c | The colour. |
| x | Column, relative to the box's left edge. |
| y | Row, relative to the box's top edge. |
| z | Slice, relative to the box's front edge (use 0 for 2D images). |