Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

Display Class Reference

#include <display.h>

List of all members.

Public Member Functions

 Display ()
 ~Display ()
SDL_Surface * GetScreen ()
SDL_Surface * CreateSurface (int w, int h)
SDL_Surface * CreateSurfaceFromFile (string filename, int alpha)
SDL_Surface * LoadImage (string filename)
void SetFullScreen (bool)
void DrawText (int x, int y, string text_str, int font_color)
void DrawTextCentered (int y, string text_str, int font_color)
void DrawGameMessage (string text, int alpha)
void DrawTitlePlane ()
void DrawRect (int x, int y, int w, int h, Uint8 r, Uint8 g, Uint8 b, int alpha)
void DrawBlackPlane (int alpha)
void DrawInfo (list< string > info)
void Flip ()
int Width ()
int Height ()
int WidthHalf ()
int HeightHalf ()
int WidthInTiles ()
int HeightInTiles ()
void SetWidthHeightInTiles (int w, int h)

Private Member Functions

void SetVideoMode ()
void SetFonts ()

Private Attributes

bool fullscreen
int width
int height
SDL_Surface * screen
SDL_Surface * font
SFont_FontInfo * font_sel
SDL_Surface * title_plane


Constructor & Destructor Documentation

Display::Display (    ) 
 

Display::~Display (    ) 
 


Member Function Documentation

SDL_Surface * Display::CreateSurface (  int    w,
int    h
) 
 

SDL_Surface * Display::CreateSurfaceFromFile (  string    filename,
int    alpha
) 
 

void Display::DrawBlackPlane (  int    alpha ) 
 

void Display::DrawGameMessage (  string    text,
int    alpha
) 
 

void Display::DrawInfo (  list< string >    info ) 
 

void Display::DrawRect (  int    x,
int    y,
int    w,
int    h,
Uint8    r,
Uint8    g,
Uint8    b,
int    alpha
) 
 

void Display::DrawText (  int    x,
int    y,
string    text_str,
int    font_color
) 
 

void Display::DrawTextCentered (  int    y,
string    text_str,
int    font_color
) 
 

void Display::DrawTitlePlane (    ) 
 

void Display::Flip (    ) 
 

SDL_Surface * Display::GetScreen (    ) 
 

int Display::Height (    ) 
 

int Display::HeightHalf (    ) 
 

int Display::HeightInTiles (    ) 
 

SDL_Surface * Display::LoadImage (  string    filename ) 
 

void Display::SetFonts (    )  [private]
 

void Display::SetFullScreen (  bool    ) 
 

void Display::SetVideoMode (    )  [private]
 

void Display::SetWidthHeightInTiles (  int    w,
int    h
) 
 

int Display::Width (    ) 
 

int Display::WidthHalf (    ) 
 

int Display::WidthInTiles (    ) 
 


Member Data Documentation

SDL_Surface* Display::font [private]
 

normal font

SFont_FontInfo* Display::font_sel [private]
 

font selector - secondary font

bool Display::fullscreen [private]
 

a flag: is it a fullscreen or a windowed mode

int Display::height [private]
 

window height in pixels

SDL_Surface* Display::screen [private]
 

SDL_Surface* Display::title_plane [private]
 

int Display::width [private]
 

window width in pixels


The documentation for this class was generated from the following files:
Generated on Sun Mar 2 18:50:27 2003 for eounicorn by doxygen1.3-rc3