mirror of
https://gitea.windcorp.ru/Wind-Corporation/Progressia.git
synced 2025-12-16 07:58:35 +03:00
Added logging, refactored versioning; STB is now included
- Added logging - Rewrote versioning code - Refactored dependency management - STB (stb_image.h) is now included - All other dependencies now use find_package - Cross-compilation from Linux to Windows is now possible
This commit is contained in:
@@ -12,6 +12,9 @@
|
||||
|
||||
#include "rendering.h"
|
||||
|
||||
#include "logging.h"
|
||||
using namespace progressia::main::logging;
|
||||
|
||||
namespace progressia {
|
||||
namespace main {
|
||||
|
||||
@@ -56,13 +59,13 @@ void addBox(glm::vec3 origin, glm::vec3 length, glm::vec3 height,
|
||||
|
||||
void initialize(GraphicsInterface &gintp) {
|
||||
|
||||
std::cout << "game init begin" << std::endl;
|
||||
debug("game init begin");
|
||||
gint = &gintp;
|
||||
|
||||
texture1.reset(
|
||||
gint->newTexture(progressia::main::loadImage(u"../assets/texture.png")));
|
||||
texture2.reset(
|
||||
gint->newTexture(progressia::main::loadImage(u"../assets/texture2.png")));
|
||||
texture1.reset(gint->newTexture(
|
||||
progressia::main::loadImage(u"../assets/texture.png")));
|
||||
texture2.reset(gint->newTexture(
|
||||
progressia::main::loadImage(u"../assets/texture2.png")));
|
||||
|
||||
// Cube 1
|
||||
{
|
||||
@@ -121,7 +124,7 @@ void initialize(GraphicsInterface &gintp) {
|
||||
perspective.reset(gint->newView());
|
||||
light.reset(gint->newLight());
|
||||
|
||||
std::cout << "game init complete" << std::endl;
|
||||
debug("game init complete");
|
||||
}
|
||||
|
||||
void renderTick() {
|
||||
@@ -161,7 +164,7 @@ void renderTick() {
|
||||
}
|
||||
|
||||
void shutdown() {
|
||||
std::cout << "game shutdown begin" << std::endl;
|
||||
debug("game shutdown begin");
|
||||
|
||||
cube1.reset();
|
||||
cube2.reset();
|
||||
@@ -171,7 +174,7 @@ void shutdown() {
|
||||
light.reset();
|
||||
perspective.reset();
|
||||
|
||||
std::cout << "game shutdown complete" << std::endl;
|
||||
debug("game shutdown complete");
|
||||
}
|
||||
|
||||
} // namespace main
|
||||
|
||||
Reference in New Issue
Block a user