Rigs of Rods 2026.01
Soft-body Physics Simulation
Loading...
Searching...
No Matches
AngelOgre_PixelBox.h
Go to the documentation of this file.
1
2namespace AngelOgre { // Dummy namespace, just to distinguish AngelScript from C++
3
21 {
22 public:
23
26
28 PixelBox(const PixelBox&in other);
29
30 PixelBox& opAssign(const PixelBox&in other);
31
37 color getColourAt(uint32 x, uint32 y, uint32 z);
38
45 void setColourAt(const color& c, uint32 x, uint32 y, uint32 z);
46
48 uint getWidth();
49
51 uint getHeight();
52
54 uint getDepth();
55 };
56
59
60} // namespace AngelOgre (dummy, just to distinguish AngelScript from C++)
61
A box of pixels in memory, with a known pixel format.
uint getHeight()
Height of the box, in pixels.
uint getWidth()
Width of the box, in pixels.
color getColourAt(uint32 x, uint32 y, uint32 z)
Gets the colour of the pixel at the given position.
PixelBox(const PixelBox &in other)
Creates a copy referencing the same memory.
void 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.
PixelBox()
Creates an empty PixelBox which points to no memory.
uint getDepth()
Depth of the box, in pixels (1 for 2D images).
PixelBox & opAssign(const PixelBox &in other)
OGRE-AngelScript bindings; Actually named Ogre in the scripts, just changed for docs to separate thin...