#include <screen.h>
Public Member Functions | |
Screen () | |
~Screen () | |
int | get_height () |
int | get_width () |
int | get_depth () |
int | configure (int width, int height, int depth) |
void | update_screen () |
void | update_rect (SDL_Rect dest) |
SDL_Surface * | get_screen () |
int | draw (SDL_Surface *s, SDL_Rect src, SDL_Rect dest) |
int | blankblit (SDL_Surface *s, SDL_Rect src) |
int | blank (SDL_Rect src) |
int | blit (SDL_Surface *s, SDL_Rect dest) |
int | textwidth (char *string) |
int | textwidthsy (char *string) |
int | textwidthsb (char *string) |
void | write (char *string, int x, int y, int color, int scale) |
void | writesy (char *string, int x, int y) |
void | writesb (char *string, int x, int y) |
void | operator= (Screen &source) |
Public Attributes | |
SDL_Surface * | screen |
Private Attributes | |
int | height |
int | width |
int | depth |
SFont_Font * | YFont |
SFont_Font * | BFont |
Friends | |
class | Coolfont |
Definition at line 45 of file screen.h.
Screen::Screen | ( | ) |
Screen::~Screen | ( | ) |
int Screen::get_height | ( | ) |
Definition at line 54 of file screen.cpp.
References height.
Referenced by BGDraw::initialize(), and Menu::run().
int Screen::get_width | ( | ) |
Definition at line 58 of file screen.cpp.
References width.
Referenced by BGDraw::initialize(), and Menu::run().
int Screen::get_depth | ( | ) |
int Screen::configure | ( | int | width, | |
int | height, | |||
int | depth | |||
) |
void Screen::update_screen | ( | ) |
void Screen::update_rect | ( | SDL_Rect | dest | ) |
SDL_Surface * Screen::get_screen | ( | ) |
int Screen::draw | ( | SDL_Surface * | s, | |
SDL_Rect | src, | |||
SDL_Rect | dest | |||
) |
int Screen::blankblit | ( | SDL_Surface * | s, | |
SDL_Rect | src | |||
) |
Definition at line 105 of file screen.cpp.
References blank(), makerect(), and screen.
Referenced by Menu::run().
int Screen::blank | ( | SDL_Rect | src | ) |
Definition at line 112 of file screen.cpp.
References screen.
Referenced by blankblit(), BGDraw::initialize(), and Menu::run().
int Screen::blit | ( | SDL_Surface * | s, | |
SDL_Rect | dest | |||
) |
Definition at line 99 of file screen.cpp.
References makerect(), and screen.
Referenced by BGDraw::initialize(), Player::overlay(), Player::redraw(), Player::static_redraw(), Player::static_redraw_cycle(), and FGEntityList::test().
int Screen::textwidth | ( | char * | string | ) |
Definition at line 118 of file screen.cpp.
int Screen::textwidthsy | ( | char * | string | ) |
int Screen::textwidthsb | ( | char * | string | ) |
void Screen::write | ( | char * | string, | |
int | x, | |||
int | y, | |||
int | color, | |||
int | scale | |||
) |
Definition at line 130 of file screen.cpp.
References screen.
Referenced by Menu::run(), and Stats::update().
void Screen::writesy | ( | char * | string, | |
int | x, | |||
int | y | |||
) |
void Screen::writesb | ( | char * | string, | |
int | x, | |||
int | y | |||
) |
void Screen::operator= | ( | Screen & | source | ) |
int Screen::height [private] |
Definition at line 48 of file screen.h.
Referenced by configure(), get_height(), operator=(), and Screen().
int Screen::width [private] |
Definition at line 48 of file screen.h.
Referenced by configure(), get_width(), operator=(), and Screen().
int Screen::depth [private] |
Definition at line 48 of file screen.h.
Referenced by configure(), get_depth(), operator=(), and Screen().
SFont_Font* Screen::YFont [private] |
Definition at line 49 of file screen.h.
Referenced by operator=(), Screen(), textwidthsy(), writesy(), and ~Screen().
SFont_Font* Screen::BFont [private] |
Definition at line 50 of file screen.h.
Referenced by operator=(), Screen(), textwidthsb(), writesb(), and ~Screen().
SDL_Surface* Screen::screen |
Definition at line 52 of file screen.h.
Referenced by blank(), blankblit(), blit(), configure(), draw(), get_screen(), operator=(), Screen(), update_rect(), update_screen(), write(), writesb(), writesy(), and ~Screen().