src/Graphics.hh
changeset 389 e74c1820fbd2
parent 315 fe9da2d5355e
child 392 6c4dc68360eb
equal deleted inserted replaced
388:ecb243eebc25 389:e74c1820fbd2
    35     
    35     
    36     // basic fonts
    36     // basic fonts
    37     CL_Font simple_font;
    37     CL_Font simple_font;
    38 
    38 
    39 public:
    39 public:
    40     Graphics (Engine &engine, GameState &state);
    40     Graphics (Engine &engine, GameState &state, PixelCoordinate resolution, bool fullscreen);
    41 
    41 
    42     CL_Font& getSimpleFont (void) { return simple_font; }
    42     CL_Font& getSimpleFont (void) { return simple_font; }
       
    43 
       
    44     static const std::vector<CL_DisplayMode> & getDisplayModes (void);
    43     
    45     
    44 private:
    46 private:
       
    47     /**
       
    48      * Reads current input events from Input and applies them, using LocalPlayer::handleInput and
       
    49      * Graphics::handle_input.
       
    50      */
    45     void check_input (void);
    51     void check_input (void);
       
    52     
       
    53     /**
       
    54      * Handles GuiInput flags read from Input.
       
    55      */
       
    56     void handle_input (GuiInput flags);
       
    57 
    46     void do_redraw (void);
    58     void do_redraw (void);
    47     
    59     
    48     void on_update (TimeMS tick_length);
    60     void on_update (TimeMS tick_length);
    49     
    61     
    50     void draw_player_info(CL_GraphicContext *gc, Player *p);
    62     void draw_player_info(CL_GraphicContext *gc, Player *p);