Memory-based implementation of MGD::DEVICE for 32-bit visuals. More...
#include <mi32/mg2mem32.h>

Classes | |
| class | CONTEXT |
| Context for 32-bit memory device. More... | |
Public Types | |
| enum | FORMAT { FORMAT_Default = 0x00, FORMAT_PadTo8 = 0x01, FORMAT_Invert = 0x02 } |
Public Member Functions | |
| DEVICE_MEM32 () | |
| virtual | ~DEVICE_MEM32 () |
| void | EraseFrameBuffer (UINT16 FrameBuffer) |
| void | EraseFrameBuffers () |
| void | FindMinimalRectangle (UINT16 FrameBuffer, LRECT2D &rectangle) const |
| void | FindMinimalRectangle (LRECT2D &rectangle) const |
Protected Member Functions | |
| ERRVALUE | CreateFrameBuffers (UINT16 NumFrameBuffers=1) |
| FORMAT | GetFormat () const |
| UINT32 | GetNumBytesPerRow () const |
| ERRVALUE | ResizeFrameBuffers () |
| void | SetFormat (FORMAT format) |
| virtual CAPABILITY | v_GetCapabilities () const |
Memory-based implementation of MGD::DEVICE for 32-bit visuals.
| MGD::DEVICE_MEM32::DEVICE_MEM32 | ( | ) |
constructor
| virtual MGD::DEVICE_MEM32::~DEVICE_MEM32 | ( | ) | [virtual] |
Destructor.
Create frame buffers.
| NumFrameBuffers | Number of frame buffers |
| void MGD::DEVICE_MEM32::EraseFrameBuffer | ( | UINT16 | FrameBuffer | ) |
Erase specified frame buffer, setting contents to 0's.
| FrameBuffer | Frame buffer index |
| void MGD::DEVICE_MEM32::EraseFrameBuffers | ( | ) |
Erase all frame buffers, setting contents to 0's.
Find minimal rectangle containing all pixels with non-zero alpha values in specified frame buffer.
| rectangle | Frame buffer index Rectangle returned |
| void MGD::DEVICE_MEM32::FindMinimalRectangle | ( | LRECT2D & | rectangle | ) | const |
Find minimal rectangle containing all pixels with non-zero alpha values in any frame buffer.
| rectangle | Rectangle returned |
| FORMAT MGD::DEVICE_MEM32::GetFormat | ( | ) | const [inline, protected] |
Get memory format.
| UINT32 MGD::DEVICE_MEM32::GetNumBytesPerRow | ( | ) | const [inline, protected] |
Get number of memory bytes per row.
| ERRVALUE MGD::DEVICE_MEM32::ResizeFrameBuffers | ( | ) | [protected] |
Resize all frame buffers to match current device dimensions.
| void MGD::DEVICE_MEM32::SetFormat | ( | FORMAT | format | ) | [protected] |
Set memory format.
Must be done before creating frame buffers, typically in derived class Create method.
| virtual CAPABILITY MGD::DEVICE_MEM32::v_GetCapabilities | ( | ) | const [protected, virtual] |
Return a list of the capabilities of this device.
Derived class should bitwise-OR with result of base method.
Reimplemented from MGD::DEVICE.
1.6.1