Renderer Namespace Reference

Namespace for all higher level drawing functions. More...


Functions

void drawRect (const Rect &rect, const Color &color)
 Draw a colored rectangle.
void drawRect (SDL_Surface *surface, const Rect &rect, const Color &color)
 Draw a colored rectangle to another surface.
void drawImage (const Point &p, const ustring &texId)
 Draw a full image from the stack at a point.
void drawImage (const Point &p, SDL_Surface *dest, const ustring &texId)
 Draw a full image at a point onto another surface.
void drawImage (const Point &p, SDL_Surface *texture)
 Draw a full image at a point.
void drawImage (const Point &p, SDL_Surface *dest, SDL_Surface *texture)
 Draw a full image at a point onto another surface.
void drawImage (const Rect &rect, SDL_Surface *src, SDL_Surface *dest)
 Draw a part of an image onto another surface.
void drawImage (const Rect &rect, const Point &p2, const ustring &texId)
 Draw part of an image to a specific point onto the screen.
void drawButton (const Point &p1, int w, const ustring &text)
 Draw a flat button with text.
SDL_Surface * generateCourtPanorama (Case::Case *pcase, const ustring &prosecutor, const ustring &attorney, const ustring &witness)
 Generate a correctly rendered court panorama based on shown sprites.
void drawInitialScreen ()
 Draw the initial game screen.
void drawEvidencePage (const std::vector< Case::Evidence * > &evidence, int page, int selected)
 Draw the evidence Court Record page.
void drawEvidenceInfoPage (const Case::Evidence *evidence)
 Draw evidence information page in Court Record.
void drawProfilesPage (const std::vector< Character * > &uchars, int page, int selected)
 Draw the profiles page in the Court Record.
void drawProfileInfoPage (const Character *character)
 Draw the profile information page in the Court Record.
Point drawInfoStrip (const Point &p, SDL_Surface *image, const ustring &name, const ustring &caption, const ustring &desc, bool description)
 Draw the strip containing evidence or profile.
void drawExamineScene (SDL_Surface *bg, const Point &cursor, bool slideBG=true)
 Draw the examination scene.
void drawMoveScene (const std::vector< ustring > &locations, LocationMap lmap, int selected)
 Draw the movement scene.
void drawTalkScene (const std::vector< StringPair > &options, int selected, bool centered=false)
 Draw the talk scene.


Detailed Description

Namespace for all higher level drawing functions.

Function Documentation

void Renderer::drawButton ( const Point p1,
int  w,
const ustring &  text 
)

Draw a flat button with text.

Parameters:
p1 The point at which to draw the button at
w The width of the button
text The text for the button

void Renderer::drawEvidenceInfoPage ( const Case::Evidence evidence  ) 

Draw evidence information page in Court Record.

Parameters:
evidence Pointer to displayed evidence

void Renderer::drawEvidencePage ( const std::vector< Case::Evidence * > &  evidence,
int  page,
int  selected 
)

Draw the evidence Court Record page.

Parameters:
evidence Vector of evidence in the Court Record
page Selected page, should be 0 based
selected Selected evidence item, should be 0 based and in the range [0,7]

void Renderer::drawExamineScene ( SDL_Surface *  bg,
const Point cursor,
bool  slideBG = true 
)

Draw the examination scene.

Parameters:
bg The background for the location
cursor Position of the examine cursor
slideBG Flag whether or not to show the animation of the background sliding down

void Renderer::drawImage ( const Rect rect,
const Point p2,
const ustring &  texId 
)

Draw part of an image to a specific point onto the screen.

Parameters:
rect The part of the region to draw
p2 The destination point
texId The ID of the image

void Renderer::drawImage ( const Rect rect,
SDL_Surface *  src,
SDL_Surface *  dest 
)

Draw a part of an image onto another surface.

Parameters:
rect The region of the image to draw
src The source image
dest The destination surface

void Renderer::drawImage ( const Point p,
SDL_Surface *  dest,
SDL_Surface *  texture 
)

Draw a full image at a point onto another surface.

Parameters:
p The point to draw the image at
dest The destination surface to draw on
texture The image to draw

void Renderer::drawImage ( const Point p,
SDL_Surface *  texture 
)

Draw a full image at a point.

Parameters:
p The point to draw the image at
texture The image to draw

void Renderer::drawImage ( const Point p,
SDL_Surface *  dest,
const ustring &  texId 
)

Draw a full image at a point onto another surface.

Parameters:
p The point to draw the image at
dest The destination surface to draw the image on
texId The ID of the image to draw

void Renderer::drawImage ( const Point p,
const ustring &  texId 
)

Draw a full image from the stack at a point.

Parameters:
p The point to draw the image at
texId The ID of the image to draw

Point Renderer::drawInfoStrip ( const Point p,
SDL_Surface *  image,
const ustring &  name,
const ustring &  caption,
const ustring &  desc,
bool  description 
)

Draw the strip containing evidence or profile.

Parameters:
p The point at which to draw the strip at
image The image to display in the small box
name The name of the evidence or profile
caption Text to display in the green box
desc Description text to display below the image and caption
description Whether or not to include the description
Returns:
Point with the current, updated drawing coordinates relative to p

void Renderer::drawMoveScene ( const std::vector< ustring > &  locations,
LocationMap  lmap,
int  selected 
)

Draw the movement scene.

Parameters:
locations Vector of location IDs to draw
lmap Map of all locations
selected 0 based index of selected location

void Renderer::drawProfileInfoPage ( const Character character  ) 

Draw the profile information page in the Court Record.

Parameters:
character Pointer to displayed character profile

void Renderer::drawProfilesPage ( const std::vector< Character * > &  uchars,
int  page,
int  selected 
)

Draw the profiles page in the Court Record.

Parameters:
uchars Vector of characters in the Court Record
page Selected page, should be 0 based
selected Selected profile, should be 0 based and in the range [0,7]

void Renderer::drawRect ( SDL_Surface *  surface,
const Rect rect,
const Color color 
)

Draw a colored rectangle to another surface.

Parameters:
surface The surface to draw to
rect The rectangle to draw
color The color for the rectangle

void Renderer::drawRect ( const Rect rect,
const Color color 
)

Draw a colored rectangle.

Parameters:
rect The rectangle to draw
color The color for the rectangle

void Renderer::drawTalkScene ( const std::vector< StringPair > &  options,
int  selected,
bool  centered = false 
)

Draw the talk scene.

Parameters:
options String vector of talk options
selected 0 based index of selected option
centered Whether or not to draw the buttons centered on screen

SDL_Surface * Renderer::generateCourtPanorama ( Case::Case pcase,
const ustring &  prosecutor,
const ustring &  attorney,
const ustring &  witness 
)

Generate a correctly rendered court panorama based on shown sprites.

Parameters:
pcase Pointer to current Case::Case object
prosecutor ID of prosecutor character, or STR_NULL if none
attorney ID of defense character, or STR_NULL if none
witness ID of witness character, or STR_NULL if none
Returns:
Surface containing panorama


Generated on Fri Feb 22 22:29:23 2008 for Phoenix Wright Case Player API by  doxygen 1.5.3