Cleaned some code, drastically reduced memory footprint.
This commit is contained in:
21
src/game/sandbox/sandboxscene.c
Normal file
21
src/game/sandbox/sandboxscene.c
Normal file
@ -0,0 +1,21 @@
|
||||
/**
|
||||
* Copyright (c) 2021 Dominic Masters
|
||||
*
|
||||
* This software is released under the MIT License.
|
||||
* https://opensource.org/licenses/MIT
|
||||
*/
|
||||
|
||||
#include "sandboxscene.h"
|
||||
|
||||
bool sandboxSceneInit(sandboxscene_t *game) {
|
||||
printf("Sandbox init\n");
|
||||
return true;
|
||||
}
|
||||
|
||||
void sandboxSceneUpdate(sandboxscene_t *game, engine_t *engine) {
|
||||
|
||||
}
|
||||
|
||||
void sandboxSceneDispose(sandboxscene_t *game) {
|
||||
|
||||
}
|
37
src/game/sandbox/sandboxscene.h
Normal file
37
src/game/sandbox/sandboxscene.h
Normal file
@ -0,0 +1,37 @@
|
||||
/**
|
||||
* 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 "../../display/camera.h"
|
||||
#include "../../display/shader.h"
|
||||
#include "../../display/font.h"
|
||||
#include "../../display/primitive.h"
|
||||
#include "../../display/primitives/quad.h"
|
||||
|
||||
/**
|
||||
* Initialize the sandbox scene test game.
|
||||
*
|
||||
* @param game Game to initialize.
|
||||
* @return True if successful, otherwise false.
|
||||
*/
|
||||
bool sandboxSceneInit(sandboxscene_t *game);
|
||||
|
||||
/**
|
||||
* Update a sandbox scene.
|
||||
*
|
||||
* @param game Game to update.
|
||||
* @param engine Engine to use when updating.
|
||||
*/
|
||||
void sandboxSceneUpdate(sandboxscene_t *game, engine_t *engine);
|
||||
|
||||
/**
|
||||
* Dispose a previously created scene game.
|
||||
*
|
||||
* @param game Game to dispose.
|
||||
*/
|
||||
void sandboxSceneDispose(sandboxscene_t *game);
|
Reference in New Issue
Block a user