MGD::DEVICE_MEM32 Class Reference

Memory-based implementation of MGD::DEVICE for 32-bit visuals. More...

#include <mi32/mg2mem32.h>

Inheritance diagram for MGD::DEVICE_MEM32:
Inheritance graph
[legend]

List of all members.

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

Detailed Description

Memory-based implementation of MGD::DEVICE for 32-bit visuals.


Member Enumeration Documentation

Memory format.

Enumerator:
FORMAT_Default 
FORMAT_PadTo8 

Pad rows to 8-byte boundary.

FORMAT_Invert 

Invert rows in memory so first bottom row is first in buffer.


Constructor & Destructor Documentation

MGD::DEVICE_MEM32::DEVICE_MEM32 (  ) 

constructor

virtual MGD::DEVICE_MEM32::~DEVICE_MEM32 (  )  [virtual]

Destructor.


Member Function Documentation

ERRVALUE MGD::DEVICE_MEM32::CreateFrameBuffers ( UINT16  NumFrameBuffers = 1  )  [protected]

Create frame buffers.

Parameters:
NumFrameBuffers Number of frame buffers
void MGD::DEVICE_MEM32::EraseFrameBuffer ( UINT16  FrameBuffer  ) 

Erase specified frame buffer, setting contents to 0's.

Parameters:
FrameBuffer Frame buffer index
void MGD::DEVICE_MEM32::EraseFrameBuffers (  ) 

Erase all frame buffers, setting contents to 0's.

void MGD::DEVICE_MEM32::FindMinimalRectangle ( UINT16  FrameBuffer,
LRECT2D rectangle 
) const

Find minimal rectangle containing all pixels with non-zero alpha values in specified frame buffer.

Parameters:
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.

Parameters:
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.


The documentation for this class was generated from the following file:

Generated on Sun Oct 7 21:35:14 2012 for TNTsdk 2012 by  doxygen 1.6.1