NE::SDL_Renderer Class Reference

SDL implementation for Renderer. More...

#include <NEngine/Native/SDL/SDL_Renderer.h>

Inheritance diagram for NE::SDL_Renderer:
NE::Renderer

List of all members.

Public Member Functions

 SDL_Renderer (Window *pWin)
bool clearScreen (const Colour &colour)
 Clear the screen using a Colour.
bool drawRect (const Rect &tile, const Colour &colour) const
 Draw a rectangle using a Colour.
bool drawSurface (const IVec2 &position, const Sprite &pSprite) const
 Draw a Sprite.
bool drawSurface (const IVec2 &position, const Sprite &pSprite, const Colour &mask) const
 Draw a Sprite using a mask.
bool drawSurface (const IVec2 &position, const Sprite &pSprite, const Rect &srcRect) const
 Draw a part of a Sprite.
bool drawSurface (const IVec2 &position, const Sprite &pSprite, const Rect &srcRect, const Colour &mask) const
 Draw a part of a Sprite using a mask.
bool updateWindow (void)
 Refresh the Window.

Detailed Description

SDL implementation for Renderer.


Constructor & Destructor Documentation

NE::SDL_Renderer::SDL_Renderer ( Window pWin  )  [inline]
Parameters:
pWin Window to use by the Renderer

Member Function Documentation

bool NE::SDL_Renderer::clearScreen ( const Colour colour  )  [virtual]

Clear the screen using a Colour.

Parameters:
colour the Colour to use to clear the screen
Returns:
true if all goes right

Implements NE::Renderer.

bool NE::SDL_Renderer::drawRect ( const Rect tile,
const Colour colour 
) const [virtual]

Draw a rectangle using a Colour.

Parameters:
tile the Rect where to draw
colour the Colour of the rectangle
Returns:
true if all goes right

Implements NE::Renderer.

bool NE::SDL_Renderer::drawSurface ( const IVec2 position,
const Sprite pSurface,
const Rect srcRect,
const Colour mask 
) const [virtual]

Draw a part of a Sprite using a mask.

Parameters:
position the position where to draw
pSurface the sprite to draw
srcRect the part of the Sprite to use
mask Colour of the mask to use
Returns:
true if all goes right

Implements NE::Renderer.

bool NE::SDL_Renderer::drawSurface ( const IVec2 position,
const Sprite pSurface,
const Rect srcRect 
) const [virtual]

Draw a part of a Sprite.

Parameters:
position the position where to draw
pSurface the sprite to draw
srcRect the part of the Sprite to use
Returns:
true if all goes right

Implements NE::Renderer.

bool NE::SDL_Renderer::drawSurface ( const IVec2 position,
const Sprite pSurface,
const Colour mask 
) const [virtual]

Draw a Sprite using a mask.

Parameters:
position the position where to draw
pSurface the sprite to draw
mask Colour of the mask to use
Returns:
true if all goes right

Implements NE::Renderer.

bool NE::SDL_Renderer::drawSurface ( const IVec2 position,
const Sprite pSurface 
) const [virtual]

Draw a Sprite.

Parameters:
position the position where to draw
pSurface the sprite to draw
Returns:
true if all goes right

Implements NE::Renderer.

bool NE::SDL_Renderer::updateWindow ( void   )  [virtual]

Refresh the Window.

Returns:
true if all goes right

Implements NE::Renderer.


The documentation for this class was generated from the following files:
 All Classes Functions Variables Typedefs
Generated on Thu Oct 6 22:11:38 2011 for WE_Kit by  doxygen 1.6.3