MGD::CONTEXT_MEM24 Class Reference

#include <mi32/mg2mem24.h>

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

List of all members.

Public Member Functions

virtual ~CONTEXT_MEM24 ()

Protected Member Functions

 CONTEXT_MEM24 (MGD::DEVICE_MEM24 *disp)
virtual ERRVALUE v_PutImageSpanDirect (INT32 x, INT32 y, INT32 len, const void *data, const UINT8 *mask)
virtual ERRVALUE v_PutPixel (INT32 x, INT32 y, MGD::PIXEL pixel)
void v_UpdateColor ()
void v_UpdatePlaneMask ()

Protected Attributes

UINT8 m_maskbyte0
UINT8 m_maskbyte1
UINT8 m_maskbyte2
UINT8 m_pixbyte0
UINT8 m_pixbyte1
UINT8 m_pixbyte2

Constructor & Destructor Documentation

virtual MGD::CONTEXT_MEM24::~CONTEXT_MEM24 (  )  [virtual]
MGD::CONTEXT_MEM24::CONTEXT_MEM24 ( MGD::DEVICE_MEM24 disp  )  [protected]

Default Constructor.


Member Function Documentation

virtual ERRVALUE MGD::CONTEXT_MEM24::v_PutImageSpanDirect ( INT32  x,
INT32  y,
INT32  len,
const void *  data,
const UINT8 mask 
) [protected, virtual]

Put a span of image data.

Note: Before putting an image, you MUST call ImageBegin and call ImageEnd afterwards. These are stub functions that do nothing in most implementations, but required by others

This function should assume the data passed to it is exactly what it wants. The caller will actually call PutImageSpan(), and ImageBegin() will cause PutImageSpan to either call this directly or first translate the data from one display type to what we really want.

Reimplemented from MGD::CONTEXT.

virtual ERRVALUE MGD::CONTEXT_MEM24::v_PutPixel ( INT32  x,
INT32  y,
MGD::PIXEL  pixel 
) [protected, virtual]

Put single pixel on generic display.

Default implementation calls SetColor() and DrawPixel() and the default DrawPixel() just calls FillSpan with a one-pixel span If there is any 3D depth testing active, PutPixel() calculates z and calls PutPixel3D()

Reimplemented from MGD::CONTEXT.

void MGD::CONTEXT_MEM24::v_UpdateColor (  )  [protected, virtual]

Called when the current drawing color changes (via a PIXEL).

This method can be overridden by a derived class if it needs to notify the underlying device about a change to the context. The default implementation does nothing. Note that this method is always called when the color is changed, where as the COLOR version is only called if the COLOR version of SetColor() is called.

Reimplemented from MGD::CONTEXT.

void MGD::CONTEXT_MEM24::v_UpdatePlaneMask (  )  [protected, virtual]

Called when the PlaneMask changes.

This method can be overridden by a derived class if it needs to notify the underlying device about a change to the context. The default implementation does nothing.

Reimplemented from MGD::CONTEXT.


Member Data Documentation


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

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