Dawn/src/game/game.h

35 lines
781 B
C

// Copyright (c) 2021 Dominic Masters
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
#pragma once
#include <dawn/dawn.h>
#include "gametime.h"
#include "../display/render.h"
#include "../display/camera.h"
#include "../display/shader.h"
#include "../file/asset.h"
#include "../input/input.h"
#include "../poker/holdemgame.h"
#include "../debug/log.h"
/**
* Initialize the game context.
*
* @return True if successful, otherwise false.
*/
bool gameInit();
/**
* Tick the main game loop.
*
* @param platformDelta The platform tick delta between the last render.
* @return True if successful, false if safe exit requested..
*/
bool gameUpdate(float platformDelta);
/**
* Cleanup the game instance.
*/
void gameDispose();