Skip to content

LitEngine/Application

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Application

Allows you to easily create and work with SDL2 application.

#include <lit/application/application.hpp>
#include <spdlog/spdlog.h>

using namespace lit::application;

int main(int, char **) {
    auto logger = spdlog::default_logger();
    Application app(logger/*you can omit logger, defaults to spdlog::default_logger()*/);
    app.Init();
    
    WindowInfo game_window;
    game_window.title = "Test window";
    game_window.maximized = false;
    game_window.width = 1280;
    game_window.height = 720;
    
    app.CreateWindow(game_window, {}, {});
    
    while (app.AnyWindowAlive()) {
        app.PollEvents();
        app.Redraw();
    }

    return 0;
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published