added spdlog library

This commit is contained in:
georgemoralis 2023-04-28 14:36:05 +03:00
parent f998469730
commit 72bdf22035
5 changed files with 15 additions and 3 deletions

View file

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