summaryrefslogtreecommitdiffstats
path: root/src/code/program.cpp
blob: 36c49946a148a1887de6b4c37f1a1b720b6f9f92 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include "base/base_include.h"

ENTRYPOINT()
{
    MemArena *global_arena = ArenaCreate(GiB(1));
    
    Engine *engine = PushStructZero(global_arena, Engine);
    Assert(engine);
    engine->name   = "TB";
    engine->width  = 800;
    engine->height = 600;
    
    int display_width = PlatformGetDisplayWidth(display, screen_num);
    int display_height = PlatformGetDisplayHeight(display, screen_num) ;
    
    PlatformCreateWindow(global_arena, engine->height, engine->width, display_width, display_height);
    RenderEntrypoint(engine, global_arena);
    
    ArenaDestroy(global_arena);
    return (0);
}