deBaseGraphicContext Class Reference

Graphic Module Context Peer. More...

#include <deBaseGraphicContext.h>

List of all members.

Public Member Functions

Constructors and Destructors
 deBaseGraphicContext ()
 Creates a new peer.
virtual ~deBaseGraphicContext ()
 Cleans up the peer.
Notifications
virtual void ViewportChanged ()
 Viewport changed.
virtual void OffsetChanged ()
 Render offset changed.
virtual void ColorChanged ()
 Color changed.
virtual void AlphaChanged ()
 Alpha changed.
virtual void FontChanged ()
 Font changed.
Drawing
virtual void DrawPoint (int x, int y)
 Draw point at (x,y) using current drawing color and alpha value.
virtual void DrawLine (int x1, int y1, int x2, int y2)
 Draw line from (x1,y1) to (x2,y2) using the current drawing color and alpha value.
virtual void DrawRect (int x1, int y1, int x2, int y2)
 Draw outlined rectangle at (x1,y1) to (x2,y2) using the current color and alpha value.
virtual void DrawImage (deImage *image, int x, int y)
 Draw image at (x,y).
virtual void DrawImage (deImage *image, int x, int y, int width, int height)
 Draw image at (x,y) scaled to (width,height).
virtual void DrawImage (deImage *image, int x, int y, int width, int height, int sx, int sy, int swidth, int sheight)
 Draw area (sx,sy) size (swidth,sheight) from image at (x,y) scaled to (width,height).
virtual void DrawTarget (deRenderTarget *target, int x, int y)
 Draw render target at (x,y).
virtual void DrawTarget (deRenderTarget *target, int x, int y, int width, int height)
 Draw render target at (x,y) scaled to (width,height).
virtual void DrawTarget (deRenderTarget *target, int x, int y, int width, int height, int sx, int sy, int swidth, int sheight)
 Draw area (sx,sy) size (swidth,sheight) from render target at (x,y) scaled to (width,height).
virtual void DrawText (int x, int y, const char *text, int len)
 Draw text at (x,y) using the current font, drawing color and alpha value.
virtual void FillRect (int x1, int y1, int x2, int y2)
 Draw filled rectangle from (x1,y1) to (x2,y2) using the current color and alpha value.
virtual void RenderWorld (deCamera *camera)
 Render a world.
virtual void ExtractImage (deImage *image)
 Extract entire drawable area of context into the specified image.
virtual void ExtractImage (deImage *image, int x, int y, int width, int height)
 Extract area (x,y) size (width,height) of context into the specified image.
virtual void TransformColors (const decColorMatrix &matrix, int x1, int y1, int x2, int y2)
 Transform the color of all pixels in the given area using a color matrix.

Detailed Description

Graphic Module Context Peer.

A context provides the drawing capabilities for a render target or a similar object which is drawable. The context keeps track of the drawing state and provides low level switching of hardware needed if another context does drawing.

Author:
Plüss Roland
Version:
1.0
Date:
2008

Constructor & Destructor Documentation

deBaseGraphicContext::deBaseGraphicContext (  )

Creates a new peer.

virtual deBaseGraphicContext::~deBaseGraphicContext (  ) [virtual]

Cleans up the peer.


Member Function Documentation

virtual void deBaseGraphicContext::AlphaChanged (  ) [virtual]

Alpha changed.

virtual void deBaseGraphicContext::ColorChanged (  ) [virtual]

Color changed.

virtual void deBaseGraphicContext::DrawImage ( deImage image,
int  x,
int  y 
) [virtual]

Draw image at (x,y).

virtual void deBaseGraphicContext::DrawImage ( deImage image,
int  x,
int  y,
int  width,
int  height 
) [virtual]

Draw image at (x,y) scaled to (width,height).

virtual void deBaseGraphicContext::DrawImage ( deImage image,
int  x,
int  y,
int  width,
int  height,
int  sx,
int  sy,
int  swidth,
int  sheight 
) [virtual]

Draw area (sx,sy) size (swidth,sheight) from image at (x,y) scaled to (width,height).

virtual void deBaseGraphicContext::DrawLine ( int  x1,
int  y1,
int  x2,
int  y2 
) [virtual]

Draw line from (x1,y1) to (x2,y2) using the current drawing color and alpha value.

virtual void deBaseGraphicContext::DrawPoint ( int  x,
int  y 
) [virtual]

Draw point at (x,y) using current drawing color and alpha value.

virtual void deBaseGraphicContext::DrawRect ( int  x1,
int  y1,
int  x2,
int  y2 
) [virtual]

Draw outlined rectangle at (x1,y1) to (x2,y2) using the current color and alpha value.

virtual void deBaseGraphicContext::DrawTarget ( deRenderTarget target,
int  x,
int  y 
) [virtual]

Draw render target at (x,y).

virtual void deBaseGraphicContext::DrawTarget ( deRenderTarget target,
int  x,
int  y,
int  width,
int  height 
) [virtual]

Draw render target at (x,y) scaled to (width,height).

virtual void deBaseGraphicContext::DrawTarget ( deRenderTarget target,
int  x,
int  y,
int  width,
int  height,
int  sx,
int  sy,
int  swidth,
int  sheight 
) [virtual]

Draw area (sx,sy) size (swidth,sheight) from render target at (x,y) scaled to (width,height).

virtual void deBaseGraphicContext::DrawText ( int  x,
int  y,
const char *  text,
int  len 
) [virtual]

Draw text at (x,y) using the current font, drawing color and alpha value.

virtual void deBaseGraphicContext::ExtractImage ( deImage image ) [virtual]

Extract entire drawable area of context into the specified image.

virtual void deBaseGraphicContext::ExtractImage ( deImage image,
int  x,
int  y,
int  width,
int  height 
) [virtual]

Extract area (x,y) size (width,height) of context into the specified image.

virtual void deBaseGraphicContext::FillRect ( int  x1,
int  y1,
int  x2,
int  y2 
) [virtual]

Draw filled rectangle from (x1,y1) to (x2,y2) using the current color and alpha value.

virtual void deBaseGraphicContext::FontChanged (  ) [virtual]

Font changed.

virtual void deBaseGraphicContext::OffsetChanged (  ) [virtual]

Render offset changed.

virtual void deBaseGraphicContext::RenderWorld ( deCamera camera ) [virtual]

Render a world.

virtual void deBaseGraphicContext::TransformColors ( const decColorMatrix matrix,
int  x1,
int  y1,
int  x2,
int  y2 
) [virtual]

Transform the color of all pixels in the given area using a color matrix.

virtual void deBaseGraphicContext::ViewportChanged (  ) [virtual]

Viewport changed.


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