mirror of
https://github.com/NoelFB/tiny_link.git
synced 2025-12-14 14:07:07 +08:00
adding gameplay buffer
This commit is contained in:
45
src/main.cpp
Normal file
45
src/main.cpp
Normal file
@ -0,0 +1,45 @@
|
||||
#include <blah.h>
|
||||
#include "game.h"
|
||||
|
||||
using namespace Blah;
|
||||
using namespace TL;
|
||||
|
||||
namespace
|
||||
{
|
||||
Game game;
|
||||
|
||||
void startup()
|
||||
{
|
||||
game.startup();
|
||||
}
|
||||
|
||||
void shutdown()
|
||||
{
|
||||
game.shutdown();
|
||||
}
|
||||
|
||||
void update()
|
||||
{
|
||||
game.update();
|
||||
}
|
||||
|
||||
void render()
|
||||
{
|
||||
game.render();
|
||||
}
|
||||
}
|
||||
|
||||
int main()
|
||||
{
|
||||
Config config;
|
||||
config.name = "Tiny Link";
|
||||
config.width = 1280;
|
||||
config.height = 720;
|
||||
|
||||
config.on_startup = startup;
|
||||
config.on_shutdown = shutdown;
|
||||
config.on_update = update;
|
||||
config.on_render = render;
|
||||
|
||||
App::run(&config);
|
||||
}
|
||||
Reference in New Issue
Block a user