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. |
void Renderer::drawButton | ( | const Point & | p1, | |
int | w, | |||
const ustring & | text | |||
) |
Draw a flat button with text.
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.
evidence | Pointer to displayed evidence |
void Renderer::drawEvidencePage | ( | const std::vector< Case::Evidence * > & | evidence, | |
int | page, | |||
int | selected | |||
) |
Draw the evidence Court Record page.
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.
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 |
Draw part of an image to a specific point onto the screen.
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.
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.
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.
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.
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.
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.
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 |
void Renderer::drawMoveScene | ( | const std::vector< ustring > & | locations, | |
LocationMap | lmap, | |||
int | selected | |||
) |
Draw the movement scene.
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.
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.
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] |
Draw a colored rectangle to another surface.
surface | The surface to draw to | |
rect | The rectangle to draw | |
color | The color for the rectangle |
Draw a colored rectangle.
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.
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.
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 |