comment
[vg.git] / src / template / main.c
1 // Copyright (C) 2021 Harry Godden (hgn) - All Rights Reserved
2
3 #include "vg/vg.h"
4
5 int main( int argc, char *argv[] )
6 {
7 vg_init( argc, argv, "Voyager Game Engine" );
8 }
9
10 void vg_register(void){}
11 void vg_start(void){}
12 void vg_update(void){}
13
14 void vg_render(void)
15 {
16 glViewport( 0,0, vg_window_x, vg_window_y );
17
18 glDisable( GL_DEPTH_TEST );
19 glClearColor( 0.1f, 0.1f, 0.2f, 1.0f );
20 glClear( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT );
21
22 // Rest of drawing code...
23 }
24
25 void vg_ui(void)
26 {
27 gui_text(
28 (ui_px [2]){ vg_window_x / 2, vg_window_y / 2 },
29 "Voyager Game Engine", 2, k_text_align_center
30 );
31
32 gui_text(
33 (ui_px [2]){ vg_window_x / 2, vg_window_y / 2 + 30 },
34 "Template project file", 1, k_text_align_center
35 );
36 }
37 void vg_free(void){}