I’m making a game engine as a personal project and I’ve been experimenting with logging to the console with spdlog. I’ve implemented OpenGL and I’ve rendered a basic triangle but I’m having issues with console logging like simple things.
NA_CORE_INFO is just a macro that expands to #define NA_CORE_INFO(…) ::Nova::Log::GetCoreLogger()->info(_VA_ARGS_). And me being new to OpenGL what I could find is that glGetString(GL_VENDOR) returns a char pointer. I’m not sure how spdlog and OpenGL handles that.
What I’m expecting.
I want the output to be something like NOVA: Vendor: (the vendor)
I’ve changed the line to say NA_CORE_INFO(” Vendor: {0}”, glGetString(GL_VENDOR));
0