In file include/csws/csgfxppl.h:

## class csGraphicsPipeline : public csBase

> Graphics System pipeline class

> This class implements all drawing operations (which are then passed to System->piG2D object)

## Inheritance:

### Private Fields

friend class csApp
  Only csApp can manipulate the graphics pipeline

### Private Methods

csPipeEntry* AllocOp(int pipeOp)
  Allocate a new slot in graphics pipeline
bool BeginDraw()
  Begin painting
void Box(int xmin, int ymin, int xmax, int ymax, int color)
  Draw a box
void Clear(int color)
  Clear screen with specified color
csGraphicsPipeline()
  Initialize pipeline
void Desync()
  Drop all synchronization rectangles
void FinishDraw()
  Finish painting
void Flush(int iCurPage)
  Flush graphics pipeline
void FreeArea(ImageArea *Area)
  Free buffer used to keep an area of screen
void Line(float x1, float y1, float x2, float y2, int color)
  Draw a line
void Pixel(int x, int y, int color)
  Draw a pixel
void RestoreArea(ImageArea *Area, bool Free)
  Restore a part of screen
void RestoreClipRect()
  Restore clipping rectangle to (0, 0, ScreenW, ScreenH);
void SaveArea(ImageArea **Area, int x, int y, int w, int h)
  Save a part of screen
void SetClipRect(int xmin, int ymin, int xmax, int ymax)
  Set clipping rectangle: SHOULD CALL RestoreClipRect() AFTER DRAWING!
void Sprite2D(csSprite2D *s2d, int x, int y, int w, int h)
  Draw a 2D sprite
void Sync(int CurPage, int &xmin, int &ymin, int &xmax, int &ymax)
  Synchronise image on this page with previous pages
void Text(int x, int y, int fg, int bg, int font, char *s)
  Draw a text string: if bg < 0 background is not drawn
int TextHeight(int Font)
  Return the height of selected font
int TextWidth(char *text, int Font)
  Return the width of given text using selected font
virtual ~csGraphicsPipeline()
  Deinitialize pipeline

### Private

enum
  Graphics pipeline operations
typedef struct int Op
  Graphics pipeline entry

### Inherited from csBase:

## Documentation

> Graphics System pipeline class

> This class implements all drawing operations (which are then passed to System->piG2D object). All drawing operations are put on hold until Flush() is called. This routine is usually called once per frame.

> All methods and variables of this class are private. Only csApp should have access to its internals, all graphics pipeline management is done through main application object.

`friend class csApp`
  Only csApp can manipulate the graphics pipeline

`enum`
  Graphics pipeline operations

`typedef struct int Op`
  Graphics pipeline entry

`csGraphicsPipeline()`
  Initialize pipeline

`virtual ~csGraphicsPipeline()`
  Deinitialize pipeline

`void Sync(int CurPage, int &xmin, int &ymin, int &xmax, int &ymax)`
  Synchronise image on this page with previous pages

`void Desync()`
  Drop all synchronization rectangles

`void Flush(int iCurPage)`
  Flush graphics pipeline

`void Box(int xmin, int ymin, int xmax, int ymax, int color)`
  Draw a box

`void Line(float x1, float y1, float x2, float y2, int color)`
  Draw a line

`void Pixel(int x, int y, int color)`
  Draw a pixel

`void Text(int x, int y, int fg, int bg, int font, char *s)`
  Draw a text string: if bg < 0 background is not drawn

`void Sprite2D(csSprite2D *s2d, int x, int y, int w, int h)`
  Draw a 2D sprite

`void SaveArea(ImageArea **Area, int x, int y, int w, int h)`
  Save a part of screen

`void RestoreArea(ImageArea *Area, bool Free)`
  Restore a part of screen

`void FreeArea(ImageArea *Area)`
  Free buffer used to keep an area of screen

`void Clear(int color)`
  Clear screen with specified color

`void SetClipRect(int xmin, int ymin, int xmax, int ymax)`
  Set clipping rectangle: SHOULD CALL RestoreClipRect() AFTER DRAWING!

`void RestoreClipRect()`
  Restore clipping rectangle to (0, 0, ScreenW, ScreenH);

`csPipeEntry* AllocOp(int pipeOp)`
  Allocate a new slot in graphics pipeline

`int TextWidth(char *text, int Font)`
  Return the width of given text using selected font

`int TextHeight(int Font)`
  Return the height of selected font

`bool BeginDraw()`
  Begin painting

`void FinishDraw()`
  Finish painting

This class has no child classes.

alphabetic index hierarchy of classes

this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de