37 lines
704 B
C
37 lines
704 B
C
/**
|
|
* Copyright (c) 2021 Dominic Masters
|
|
*
|
|
* This software is released under the MIT License.
|
|
* https://opensource.org/licenses/MIT
|
|
*/
|
|
|
|
#pragma once
|
|
#include <dawn/libs.h>
|
|
#include <dawn/engine/engine.h>
|
|
|
|
typedef struct {
|
|
engine_t engine;
|
|
} game_t;
|
|
|
|
/**
|
|
* Initializes the Dawn Game instance.
|
|
*
|
|
* @param game Game to instanciate.
|
|
* @return True if successful otherwise false.
|
|
*/
|
|
bool gameInit(game_t *game);
|
|
|
|
/**
|
|
* Update the Dawn Game Instance.
|
|
*
|
|
* @param game Game to update.
|
|
* @param delta The delta of the game to tick by.
|
|
*/
|
|
bool gameUpdate(game_t *game, float delta);
|
|
|
|
/**
|
|
* Cleanup the dawn game instance.
|
|
*
|
|
* @param game Game to dispose.
|
|
*/
|
|
void gameDispose(game_t *game); |