Rasterizer

Public Methods

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)

Surface * SetRenderTarget (Surface *target)

Friends

class DisplayDevice

 

Member Functions

void Rasterizer::Blit ( int             destX,

                        int             destY,

                        const Surface * source,

                        const Rect *    srcRect = 0

                      )

Parameters:

destX

destY

source

srcRect

Returns:

void

 

void Rasterizer::BlitRotated ( int             destX,

                               int             destY,

                               float           angle,

                               const Surface * source

                             )

Parameters:

destX

destY

angle

source

Returns:

void

 

void Rasterizer::BlitStretch ( const Rect &    dest,

                               const Surface * source, 

                               const Rect *    srcRect = 0

                             )

Parameters:

dest

source

srcRect

Returns:

void

 

void Rasterizer::Clear ( Pixel color )
Parameters:

color

Returns:

void

 

void Rasterizer::DrawCircle ( int   x,

                              int   y,

                              int   radius,

                              Pixel color

                            )

Parameters:

x

y

radius

color

Returns:

void

 

void Rasterizer::DrawHLine ( int   x,

                             int   y,

                             int   length,

                             Pixel color

                           )

Parameters:

x

y

length

color

Returns:

void

 

void Rasterizer::DrawLine ( int   x1,

                            int   y1,

                            int   x2,

                            int   y2,

                            Pixel color

                          )

Parameters:

x1

y1

x2

y2

color

Returns:

void

 

void Rasterizer::DrawRect ( int   x1,

                            int   y1,

                            int   x2,

                            int   y2,

                            Pixel color

                          )

Parameters:

x1

y1

x2

y2

color

Returns:

void

 

void Rasterizer::DrawVLine ( int   x,

                             int   y,

                             int   length,

                             Pixel color

                           )

Parameters:

x

y

length

color

Returns:

void

 

void Rasterizer::FillRect ( const Rect & rect,

                            Pixel        color

                          )

Parameters:

rect

color

Returns:

void

 

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

none

Returns:

const Rect&

 

Pixel Rasterizer::GetPixel ( int    x,

                             int    y

                           )

Parameters:

x

y

Returns:

Pixel

 

void Rasterizer::SetBlending ( uint8_t alpha )
Parameters:

alpha

Returns:

void

 

void Rasterizer::SetClipping ( const Rect & rect )
Parameters:

rect

Returns:

void

 

void Rasterizer::SetDefaultShader ( )
Parameters:

none

Returns:

void

 

void Rasterizer::SetPixel ( int   x,

                            int   y,

                            Pixel color

                          )

Parameters:

x

y

color

Returns:

void

 

void Rasterizer::SetPixelShader ( PixelShader * shader )
Parameters:

shader

Returns:

void

 

Surface * Rasterizer::SetRenderTarget ( Surface * target )

Reimplemented in Frog::DisplayDevice.

Parameters:

target

Returns:

Surface *