renderer.h

00001 /***************************************************************************
00002  *   Copyright (C) 2007 by Mike Polan                                      *
00003  *   kanadakid@gmail.com                                                   *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  *                                                                         *
00010  *   This program is distributed in the hope that it will be useful,       *
00011  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00012  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00013  *   GNU General Public License for more details.                          *
00014  *                                                                         *
00015  *   You should have received a copy of the GNU General Public License     *
00016  *   along with this program; if not, write to the                         *
00017  *   Free Software Foundation, Inc.,                                       *
00018  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
00019  ***************************************************************************/
00020 // renderer.h: various higher rendering functions
00021 
00022 #ifndef RENDERER_H
00023 #define RENDERER_H
00024 
00025 #include <iostream>
00026 #include "SDL.h"
00027 
00028 #include "case.h"
00029 #include "common.h"
00030 #include "uimanager.h"
00031 
00033 namespace Renderer {
00034 
00039 void drawRect(const Rect &rect, const Color &color);
00040 
00046 void drawRect(SDL_Surface *surface, const Rect &rect, const Color &color);
00047 
00052 void drawImage(const Point &p, const ustring &texId);
00053 
00059 void drawImage(const Point &p, SDL_Surface *dest, const ustring &texId);
00060 
00065 void drawImage(const Point &p, SDL_Surface *texture);
00066 
00072 void drawImage(const Point &p, SDL_Surface *dest, SDL_Surface *texture);
00073 
00079 void drawImage(const Rect &rect, SDL_Surface *src, SDL_Surface *dest);
00080 
00086 void drawImage(const Rect &rect, const Point &p2, const ustring &texId);
00087 
00093 void drawButton(const Point &p1, int w, const ustring &text);
00094 
00102 SDL_Surface* generateCourtPanorama(Case::Case *pcase, const ustring &prosecutor, 
00103                                    const ustring &attorney, const ustring &witness);
00104 
00106 void drawInitialScreen();
00107 
00113 void drawEvidencePage(const std::vector<Case::Evidence*> &evidence, int page, int selected);
00114 
00118 void drawEvidenceInfoPage(const Case::Evidence *evidence);
00119 
00125 void drawProfilesPage(const std::vector<Character*> &uchars, int page, int selected);
00126 
00130 void drawProfileInfoPage(const Character *character);
00131 
00141 Point drawInfoStrip(const Point &p, SDL_Surface *image, const ustring &name, const ustring &caption, const ustring &desc, bool description);
00142 
00148 void drawExamineScene(SDL_Surface *bg, const Point &cursor, bool slideBG=true);
00149 
00155 void drawMoveScene(const std::vector<ustring> &locations, LocationMap lmap, int selected);
00156 
00162 void drawTalkScene(const std::vector<StringPair> &options, int selected, bool centered=false);
00163 
00164 }; // namespace Renderer
00165 
00166 #endif

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