Skip to content
Snippets Groups Projects
Commit e08bae1f authored by Joseph Walton-Rivers's avatar Joseph Walton-Rivers
Browse files

don't expose logging library as part of public API

parent 004cba41
No related branches found
No related tags found
No related merge requests found
......@@ -24,11 +24,11 @@ target_sources(${PROJECT_NAME}
# spdlog for cleaner logging
find_package(spdlog REQUIRED)
target_link_libraries(${PROJECT_NAME} spdlog::spdlog)
target_link_libraries(${PROJECT_NAME} PRIVATE fmt::fmt spdlog::spdlog)
# Graphics backend
add_subdirectory(gfx)
target_link_libraries(${PROJECT_NAME} glfw)
target_link_libraries(${PROJECT_NAME} PUBLIC glfw)
# Debug backend
add_subdirectory(debug)
......
......@@ -10,7 +10,7 @@ target_sources(fggl
# OpenGL Backend
find_package( OpenGL REQUIRED )
include_directories( ${OPENGL_INCLUDE_DIR} )
target_link_libraries(fggl OpenGL::OpenGL GLEW)
target_link_libraries(fggl PUBLIC OpenGL::OpenGL GLEW)
# GLEW
find_package( GLEW REQUIRED )
......
......@@ -5,8 +5,6 @@
#include <string>
#include <filesystem>
#include <spdlog/spdlog.h>
namespace fggl::data {
template<typename T>
......@@ -23,7 +21,7 @@ namespace fggl::data {
bool load(StorageType pool, const std::string& name, T* out) {
auto path = resolvePath(pool, name);
if ( !std::filesystem::exists(path) ) {
spdlog::warn("Path {} does not exist!", path.c_str());
//spdlog::warn("Path {} does not exist!", path.c_str());
return false;
}
return fggl_deserialize<T>(path, out);
......
......@@ -8,7 +8,6 @@
#include <string>
#include <map>
#include <memory>
#include <spdlog/spdlog.h>
#include <fggl/ecs3/types.hpp>
......@@ -34,7 +33,7 @@ namespace fggl::ecs3 {
m_modules[ptr->name()] = ptr;
ptr->onLoad(*this, m_types);
spdlog::info("loaded ECS module: {}", ptr->name());
//spdlog::info("loaded ECS module: {}", ptr->name());
return ptr;
}
......
......@@ -22,7 +22,7 @@ namespace fggl::ecs3::prototype {
explicit Entity(entity_t id) : m_id(id), m_abstract(false) {};
Entity(const Entity& entity) : m_id(entity.m_id), m_components(entity.m_components) {
spdlog::info("entity created fro copy: {}", m_id);
//spdlog::info("entity created fro copy: {}", m_id);
}
~Entity() = default;
......@@ -163,7 +163,7 @@ namespace fggl::ecs3::prototype {
template<typename C>
C* add(entity_t entity_id) {
spdlog::info("component '{}' added to '{}'", C::name, entity_id);
//spdlog::info("component '{}' added to '{}'", C::name, entity_id);
auto& entity = m_entities.at(entity_id);
auto comp = entity.template add<C>();
......@@ -182,7 +182,7 @@ namespace fggl::ecs3::prototype {
template<typename C>
C* set(entity_t entity_id, const C* ptr) {
spdlog::info("component '{}' set on '{}'", C::name, entity_id);
//spdlog::info("component '{}' set on '{}'", C::name, entity_id);
auto& entity = m_entities.at(entity_id);
auto comp = entity.set<C>(ptr);
......
......@@ -12,7 +12,6 @@
#include <algorithm>
#include <map>
#include <unordered_map>
#include <spdlog/spdlog.h>
namespace fggl::ecs3 {
......@@ -203,7 +202,7 @@ namespace fggl::ecs3 {
callback(world, entity);
}
} catch ( std::out_of_range& e) {
spdlog::debug("no callbacks for {}", m_types[type]->name());
//spdlog::debug("no callbacks for {}", m_types[type]->name());
}
}
......
......@@ -107,7 +107,7 @@ namespace fggl::gfx {
// fake module/callbacks - our ECS doesn't have module/callback support yet.
//
void onStaticMeshAdded(ecs3::World& ecs, ecs::entity_t entity, OglModule& mod) {
spdlog::info("[CALLBACK] static mesh added, renderable?");
//spdlog::info("[CALLBACK] static mesh added, renderable?");
/*
auto meshData = ecs.get<gfx::StaticMesh>(entity);
auto pipeline = mod->cache.get(meshData->pipeline);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment