src/Engine.cc
changeset 389 e74c1820fbd2
parent 381 9b35bc329d23
child 408 e6cfc44266af
equal deleted inserted replaced
388:ecb243eebc25 389:e74c1820fbd2
    10     is_running(true), resources(resource_xml_path)
    10     is_running(true), resources(resource_xml_path)
    11 {
    11 {
    12     
    12     
    13 }
    13 }
    14 
    14 
    15 void Engine::setupGraphics (void) {
    15 void Engine::setupGraphics (PixelCoordinate resolution, bool fullscreen) {
    16     // create the graphics
    16     // create the graphics
    17     graphics = new Graphics(*this, game_state);
    17     graphics = new Graphics(*this, game_state, resolution, fullscreen);
    18 }
    18 }
    19 
    19 
    20 void Engine::setupNetworkServer (const std::string &listen_port) {
    20 void Engine::setupNetworkServer (const std::string &listen_port) {
    21     NetworkEndpoint listen_addr(listen_port);
    21     NetworkEndpoint listen_addr(listen_port);
    22 
    22