Move extern to application, add link to README.org

This commit is contained in:
Rick van Vonderen
2019-12-16 00:32:16 +01:00
parent 2d30f66030
commit a8e1a2d233
4 changed files with 4 additions and 5 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ else()
message("--- Release ---") message("--- Release ---")
set(CMAKE_BUILD_TYPE "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") set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O3")
endif() endif()
+1
View File
@@ -45,4 +45,5 @@ Or
* References * 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 - [[https://www.youtube.com/playlist?list=PLlrATfBNZ98dC-V-N3m0Go4deliWHPFwT][Game Engine]] by The Cherno
+2 -2
View File
@@ -11,14 +11,14 @@ namespace Inferno {
void run(); void run();
inline static Application &get() { return *s_instance; } static inline Application &get() { return *s_instance; }
private: private:
static Application* s_instance; static Application* s_instance;
}; };
// To be defined in the game // To be defined in the game
Application* createApplication(); extern Application* createApplication();
} }
-2
View File
@@ -10,8 +10,6 @@
#include "inferno/application.h" #include "inferno/application.h"
#include "inferno/log.h" #include "inferno/log.h"
extern Inferno::Application* Inferno::createApplication();
int main(int argc, char* argv[]) int main(int argc, char* argv[])
{ {
// Supress unused warning // Supress unused warning