DisplayDevice

Public Types

enum DitherMode { DITHER_NONE, DITHER_FAST, DITHER_NICE }

Public Methods

~DisplayDevice ()

void BeginScene ()

Surface * CreateSurface (int width, int height)

Surface * GetBackBuffer ()

Surface * GetFrontBuffer ()

Orientation GetOrientation () const

Orientation GetOrientationBB () const

int GetWidth () const

int GetHeight () const

Rasterizer * CreateRasterizer (Surface *target) const

void SetDithering (DitherMode mode)

Surface * SetRenderTarget (Surface *target)

void Update (const Rect *rect=0)

void Blit (int destX, int destY, const Surface *source, const Rect *srcRect=0)

void Clear (Pixel color)

void DrawCircle (int x, int y, int radius, Pixel color)

void DrawHLine (int x, int y, int length, Pixel color)

void DrawLine (int x1, int y1, int x2, int y2, Pixel color)

void DrawRect (int x1, int y1, int x2, int y2, Pixel color)

void DrawVLine (int x, int y, int length, Pixel color)

void FillRect (const Rect &rect, Pixel color)

void SetPixel (int x, int y, Pixel color)

void BlitRotated (int destX, int destY, float angle, const Surface *source)

void BlitStretch (const Rect &dest, const Surface *source, const Rect *srcRect=0)

Pixel GetPixel (int x, int y)

const Rect & GetClipping () const

void SetBlending (uint8_t alpha)

void SetClipping (const Rect &rect)

void SetDefaultShader ()

void SetPixelShader (PixelShader *shader)

Friends

class PocketPC

 

Enumeration

enum Frog::DisplayDevice::DitherMode
Values:

DITHER_NONE

DITHER_FAST

DITHER_NICE

Constructor & Destructor

DisplayDevice::~DisplayDevice ( )
Parameters:

none

Returns:

none

Member Functions

void DisplayDevice::BeginScene ( )
Parameters:

none

Returns:

void

 

void Rasterizer::Blit ( int             destX,

                        int             destY,

                        const Surface * source,

                        const Rect *    srcRect = 0

                      ) [inherited]

Parameters:

destX

destY

source

srcRect

Returns:

void

 

void Rasterizer::BlitRotated ( int             destX,

                               int             destY,

                               float           angle,

                               const Surface * source

                             ) [inherited]

Parameters:

destX

destY

angle

source

Returns:

void

 

void Rasterizer::BlitStretch ( const Rect &    dest,

                               const Surface * source,

                               const Rect *    srcRect = 0

                              ) [inherited]

Parameters:

dest

source

srcRect

Returns:

void

 

void Rasterizer::Clear ( Pixel color ) [inherited]
Parameters:

color

Returns:

void

 

Rasterizer * DisplayDevice::CreateRasterizer ( Surface * target ) const
Parameters:

target

Returns:

Rasterizer *

 

Surface * DisplayDevice::CreateSurface ( int width,

                                         int height

                                       )

Parameters:

width

height

Returns:

Surface *

 

void Rasterizer::DrawCircle ( int    x,

                              int    y,

                              int    radius,

                              Pixel  color

                            ) [inherited]

Parameters:

x

y

radius

color

Returns:

void

 

void Rasterizer::DrawHLine ( int    x,

                             int    y,

                             int    length,

                             Pixel  color

                           ) [inherited]

Parameters:

x

y

length

color

Returns:

void

 

void Rasterizer::DrawLine ( int    x1,

                            int    y1,

                            int    x2,

                            int    y2,

                            Pixel  color

                          ) [inherited]

Parameters:

x1

y1

x2

y2

color

Returns:

void

 

void Rasterizer::DrawRect ( int   x1,

                            int   y1,

                            int   x2,

                            int   y2,

                            Pixel color

                          ) [inherited]

Parameters:

x1

y1

x2

y2

color

Returns:

void

 

void Rasterizer::DrawVLine ( int    x,

                             int    y,

                             int    length,

                             Pixel  color

                           ) [inherited]

Parameters:

x

y

length

color

Returns:

void

 

void Rasterizer::FillRect ( const Rect & rect,

                            Pixel        color

                          ) [inherited]

Parameters:

rect

color

Returns:

void

 

Surface * DisplayDevice::GetBackBuffer ( )
Parameters:

none

Returns:

Surface *

 

const Rect& Rasterizer::GetClipping ( ) const [inline, inherited]
Parameters:

none

Returns:

const Rect&

 

Surface * DisplayDevice::GetFrontBuffer ( )
Parameters:

none

Returns:

Surface *

 

int DisplayDevice::GetHeight ( ) const [inline]
Parameters:

none

Returns:

int

 

Orientation DisplayDevice::GetOrientation ( ) const [inline]
Parameters:

none

Returns:

Orientation

 

Orientation DisplayDevice::GetOrientationBB ( ) const [inline]
Parameters:

none

Returns:

Orientation

 

Pixel Rasterizer::GetPixel ( int    x,

                             int    y

                           )  [inherited]

Parameters:

x

y

Returns:

Pixel

 

int DisplayDevice::GetWidth ( ) const [inline]
Parameters:

none

Returns:

int

 

void Rasterizer::SetBlending ( uint8_t alpha ) [inherited]
Parameters:

alpha

Returns:

void

 

void Rasterizer::SetClipping ( const Rect & rect )[inherited]
Parameters:

rect

Returns:

void

 

void Rasterizer::SetDefaultShader ( ) [inherited]
Parameters:

none

Returns:

void

 

void DisplayDevice::SetDithering ( DitherMode mode )
Parameters:

mode

Returns:

void

 

void Rasterizer::SetPixel ( int    x,

                            int    y,

                            Pixel  color

                          ) [inherited]

Parameters:

x

y

color

Returns:

void

 

void Rasterizer::SetPixelShader ( PixelShader * shader ) [inherited]
Parameters:

shader

Returns:

void

 

Surface * DisplayDevice::SetRenderTarget ( Surface * target )

Reimplemented from Rasterizer.

Parameters:

target

Returns:

Surface *

 

void DisplayDevice::Update ( const Rect * rect = 0 )
Parameters:

rect

Returns:

void