Browse Source

Move extern to application, add link to README.org

master
Rick van Vonderen 5 years ago
parent
commit
a8e1a2d233
  1. 2
      CMakeLists.txt
  2. 1
      README.org
  3. 4
      inferno/src/inferno/application.h
  4. 2
      inferno/src/inferno/entrypoint.h

2
CMakeLists.txt

@ -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
README.org

@ -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

4
inferno/src/inferno/application.h

@ -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
inferno/src/inferno/entrypoint.h

@ -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

Loading…
Cancel
Save