Neatened up comments and got game using scene manager.
This commit is contained in:
+5
-3
@@ -17,9 +17,11 @@ main :: proc() {
|
||||
defer mem.tracking_allocator_destroy(&track)
|
||||
context.allocator = mem.tracking_allocator(&track)
|
||||
}
|
||||
// ------------------------------------------------------
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
// Game Start
|
||||
// ------------------------------------------------------------------------------
|
||||
// Game Loop
|
||||
// ------------------------------------------------------------------------------
|
||||
game := Game{}
|
||||
game_init(&game)
|
||||
|
||||
@@ -29,11 +31,11 @@ main :: proc() {
|
||||
game_render(&game)
|
||||
}
|
||||
|
||||
// Game Stop
|
||||
game_quit(&game)
|
||||
|
||||
// ------------------------------------------------------
|
||||
// Check for any leaks!
|
||||
// ------------------------------------------------------
|
||||
when DEBUG {
|
||||
if len(track.allocation_map) > 0 {
|
||||
log.errorf("\nMEMORY LEAKS: %v allocation(s)", len(track.allocation_map))
|
||||
|
||||
Reference in New Issue
Block a user