CartoType API
Public Member Functions | Static Public Member Functions | Protected Member Functions
CartoType::COpenGlGraphicsContext Class Reference
Inheritance diagram for CartoType::COpenGlGraphicsContext:
CartoType::CGraphicsContext

List of all members.

Public Member Functions

CT_IMPORT void Sync ()
CT_IMPORT TResult DrawBitmap (const TBitmap &aBitmap, const TPoint &aTopLeft)
CT_IMPORT TResult DrawShape (const MPath &aPath, uint32 aFlags)
CT_IMPORT void Clear ()
CT_IMPORT void OnViewResize (int32 aWidth, int32 aHeight)
CT_IMPORT void Flush ()

Static Public Member Functions

static CT_IMPORT
COpenGlGraphicsContext
New (TResult &aError, CEngine &aEngine, void *aNativeDevice, int32 aWidth, int32 aHeight)

Protected Member Functions

CT_IMPORT COpenGlGraphicsContext (CEngine &aEngine, int32 aWidth, int32 aHeight)
CT_IMPORT TResult Construct ()

Member Function Documentation

CT_EXPORT void COpenGlGraphicsContext::Clear ( ) [virtual]

Clear the drawing area to transparent black. If colors are not stored set all pixels to zero intensity. If transparency levels are not stored set all pixels to black.

Implements CartoType::CGraphicsContext.

CT_EXPORT TResult COpenGlGraphicsContext::DrawBitmap ( const TBitmap aBitmap,
const TPoint aTopLeft 
) [virtual]

Draw a bitmap. If the bitmap has no color information use the current color. Combine any alpha information from the bitmap with the current alpha level. The coordinates are whole pixels.

Implements CartoType::CGraphicsContext.

CT_EXPORT TResult COpenGlGraphicsContext::DrawShape ( const MPath aPath,
uint32  aFlags 
) [virtual]

Draw a filled shape in the current color.

Implements CartoType::CGraphicsContext.

CT_EXPORT void COpenGlGraphicsContext::OnViewResize ( int32  aWidth,
int32  aHeight 
) [virtual]

Call this when the native window's size is set for the first time or changed.

Reimplemented from CartoType::CGraphicsContext.

CT_EXPORT void COpenGlGraphicsContext::Sync ( ) [virtual]

Synchronize the private graphics state to take account of any changes in iChangeFlags.

Implements CartoType::CGraphicsContext.


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