added fmt library

This commit is contained in:
georgemoralis 2023-04-28 12:46:29 +03:00
parent 222d0204db
commit f998469730
5 changed files with 12 additions and 2 deletions

View file

@ -14,6 +14,8 @@
#include <SDL3/SDL_opengl.h>
#endif
#include <fmt/core.h>
// This example can also compile and run with Emscripten! See 'Makefile.emscripten' for details.
#ifdef __EMSCRIPTEN__
#include "../libs/emscripten/emscripten_mainloop_stub.h"
@ -22,6 +24,7 @@
// Main code
int main(int, char**)
{
fmt::print("Hello, world!\n");
// Setup SDL
if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_TIMER | SDL_INIT_GAMEPAD) != 0)
{