Rigs of Rods 2026.01
Soft-body Physics Simulation
Loading...
Searching...
No Matches
AngelOgre_HardwarePixelBufferPtr.h
Go to the documentation of this file.
1
2namespace AngelOgre { // Dummy namespace, just to distinguish AngelScript from C++
3
22 {
23 public:
24
27
30
32
39 const PixelBox& lock(const box& lockbox, HardwareBufferLockOptions opt);
40
45
47 void unlock();
48
50 uint getWidth();
51
53 uint getHeight();
54
61 void blitFromMemory(const PixelBox& src, const box& dst);
62
68 void blitToMemory(const box& src, const PixelBox& dst);
69 };
70
73
74} // namespace AngelOgre (dummy, just to distinguish AngelScript from C++)
75
A shared pointer to a pixel buffer, which may be a texture surface (a single face and mipmap level) o...
HardwarePixelBufferPtr()
Creates an empty (null) pointer.
void blitToMemory(const box &src, const PixelBox &dst)
Copies a region of this buffer into memory.
HardwarePixelBufferPtr & opAssign(const HardwarePixelBufferPtr &in other)
void blitFromMemory(const PixelBox &src, const box &dst)
Copies a region of memory into a region of this buffer.
const PixelBox & lock(const box &lockbox, HardwareBufferLockOptions opt)
Locks a region of the buffer for reading/writing.
uint getWidth()
Width of the buffer, in pixels.
const PixelBox & getCurrentLock()
Returns the PixelBox of the currently locked region.
uint getHeight()
Height of the buffer, in pixels.
void unlock()
Releases the lock obtained by lock(), uploading any modifications to the GPU.
HardwarePixelBufferPtr(const HardwarePixelBufferPtr &in other)
Creates a copy pointing to the same buffer.
A box of pixels in memory, with a known pixel format.
HardwareBufferLockOptions
Locking options (binding of enum Ogre::HardwareBuffer::LockOptions)
OGRE-AngelScript bindings; Actually named Ogre in the scripts, just changed for docs to separate thin...