src/Graphics.hh
author terom
Sun, 07 Dec 2008 21:58:34 +0000
changeset 266 ad72d0a0cc02
parent 235 0a0c729365ee
child 275 fa44b905bc2e
permissions -rw-r--r--
increase the map size and control the camera to always have the screen full of terrain
#ifndef GRAPHICS_HH
#define GRAPHICS_HH

#include "GraphicsPointer.hh"

#include "GameState.hh"
#include "Input.hh"
#include "Timer.hh"
#include "Engine.hh"
#include "Config.hh"

#include <ClanLib/core.h>
#include <ClanLib/gl.h>
#include <ClanLib/display.h>

class Graphics : public CL_DisplayWindow {
private:
    Engine &engine;
    GameState &state;

    PixelCoordinate resolution;
    
    CL_SlotContainer slots;
    
    Timer update_timer;

    Input input;

    // current GUI input state
    GuiInput flags;
    
    // basic fonts
    CL_Font simple_font;

public:
    Graphics (Engine &engine, GameState &state);

    CL_Font& getSimpleFont (void) { return simple_font; }
    
private:
    void check_input (void);
    void do_redraw (void);
    
    void on_update (TimeMS tick_length);
    
};

#endif /* GRAPHICS_HH */