![]() |
Rigs of Rods 2026.01
Soft-body Physics Simulation
|
An image in system memory, which can hold multiple faces (cubemaps) and mipmap levels.
Binding of Ogre::Image.
GameScriptClass::loadImageResource(). To display it, copy it into a texture with HardwarePixelBufferPtr::blitFromMemory() using getPixelBox(). Definition at line 17 of file AngelOgre_Image.h.
Public Member Functions | |
| Image () | |
| Image (const Image &in other) | |
| Image & | opAssign (const Image &in other) |
| color | getColourAt (uint32 x, uint32 y, uint32 z) |
| void | setColourAt (const color &c, uint32 x, uint32 y, uint32 z) |
| Image & | flipAroundX () |
| Image & | flipAroundY () |
| uint | getNumMipmaps () |
| uint | getNumFaces () |
| PixelBox | getPixelBox (uint face, uint mipmap) |
| uint | getSize () |
| uint | getWidth () |
| uint | getHeight () |
| void | resize (uint16 width, uint16 height, ImageFilter filter) |
| AngelOgre::Image::Image | ( | ) |
Creates an empty image.
| AngelOgre::Image::Image | ( | const Image &in | other | ) |
Creates a copy of the image, including pixel data.
| Image & AngelOgre::Image::flipAroundX | ( | ) |
Flips (mirrors) the image around the X axis (upside down), in place.
| Image & AngelOgre::Image::flipAroundY | ( | ) |
Flips (mirrors) the image around the Y axis (left to right), in place.
| color AngelOgre::Image::getColourAt | ( | uint32 | x, |
| uint32 | y, | ||
| uint32 | z | ||
| ) |
Gets the colour of the pixel at the given position.
| z | Slice; use 0 for 2D images. |
| uint AngelOgre::Image::getHeight | ( | ) |
Height of the image, in pixels.
| uint AngelOgre::Image::getNumFaces | ( | ) |
Number of faces - 6 for cubemaps, 1 otherwise.
| uint AngelOgre::Image::getNumMipmaps | ( | ) |
Number of mipmaps, excluding the base level.
| PixelBox AngelOgre::Image::getPixelBox | ( | uint | face, |
| uint | mipmap | ||
| ) |
| uint AngelOgre::Image::getSize | ( | ) |
Size of the image data, in bytes.
| uint AngelOgre::Image::getWidth | ( | ) |
Width of the image, in pixels.
| void AngelOgre::Image::resize | ( | uint16 | width, |
| uint16 | height, | ||
| ImageFilter | filter | ||
| ) |
Resizes the image in place, resampling the pixels.
| filter | Resampling method, see ImageFilter. |
| void AngelOgre::Image::setColourAt | ( | const color & | c, |
| uint32 | x, | ||
| uint32 | y, | ||
| uint32 | z | ||
| ) |
Sets the colour of the pixel at the given position, converting it to the image's pixel format.
| z | Slice; use 0 for 2D images. |