@ -28,7 +28,7 @@ else()
message("--- Release ---")
set(CMAKE_BUILD_TYPE "Release")
# -O3 = Optimizations that increase compilation time and performance
# -O3 = Optimizations that increases compilation time and performance
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O3")
endif()
@ -45,4 +45,5 @@ Or
* References
- [[https://www.glfw.org/docs/latest/build_guide.html#build_link_cmake_source][Build GLFW using CMake]]
- [[https://www.youtube.com/playlist?list=PLlrATfBNZ98dC-V-N3m0Go4deliWHPFwT][Game Engine]] by The Cherno
@ -11,14 +11,14 @@ namespace Inferno {
void run();
inline static Application &get() { return *s_instance; }
static inline Application &get() { return *s_instance; }
private:
static Application* s_instance;
};
// To be defined in the game
Application* createApplication();
extern Application* createApplication();
}
@ -10,8 +10,6 @@
#include "inferno/application.h"
#include "inferno/log.h"
extern Inferno::Application* Inferno::createApplication();
int main(int argc, char* argv[])
{
// Supress unused warning