Move file/input/log to io directory, rename assertions to assert
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
// -----------------------------------------
|
// -----------------------------------------
|
||||||
|
|
||||||
#include "inferno/application.h"
|
#include "inferno/application.h"
|
||||||
#include "inferno/log.h"
|
#include "inferno/io/log.h"
|
||||||
|
|
||||||
// -----------------------------------------
|
// -----------------------------------------
|
||||||
|
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
#include "inferno/application.h"
|
#include "inferno/application.h"
|
||||||
#include "inferno/assertions.h"
|
#include "inferno/assert.h"
|
||||||
#include "inferno/core.h"
|
#include "inferno/core.h"
|
||||||
#include "inferno/event/applicationevent.h"
|
#include "inferno/event/applicationevent.h"
|
||||||
#include "inferno/event/event.h"
|
#include "inferno/event/event.h"
|
||||||
#include "inferno/event/keyevent.h"
|
#include "inferno/event/keyevent.h"
|
||||||
#include "inferno/event/mouseevent.h"
|
#include "inferno/event/mouseevent.h"
|
||||||
#include "inferno/input.h"
|
|
||||||
#include "inferno/inputcodes.h"
|
#include "inferno/inputcodes.h"
|
||||||
#include "inferno/log.h"
|
#include "inferno/io/input.h"
|
||||||
|
#include "inferno/io/log.h"
|
||||||
#include "inferno/render/buffer.h"
|
#include "inferno/render/buffer.h"
|
||||||
#include "inferno/render/context.h"
|
#include "inferno/render/context.h"
|
||||||
#include "inferno/render/font.h"
|
#include "inferno/render/font.h"
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
#include <csignal> // raise
|
#include <csignal> // raise
|
||||||
|
|
||||||
#include "inferno/core.h"
|
#include "inferno/core.h"
|
||||||
#include "inferno/log.h"
|
#include "inferno/io/log.h"
|
||||||
|
|
||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
#define NF_ENABLE_ASSERTS
|
#define NF_ENABLE_ASSERTS
|
||||||
@@ -8,7 +8,6 @@
|
|||||||
#define ENTRYPOINT_H
|
#define ENTRYPOINT_H
|
||||||
|
|
||||||
#include "inferno/application.h"
|
#include "inferno/application.h"
|
||||||
#include "inferno/log.h"
|
|
||||||
|
|
||||||
int main(int argc, char* argv[])
|
int main(int argc, char* argv[])
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
#include "GLFW/glfw3.h"
|
#include "GLFW/glfw3.h"
|
||||||
|
|
||||||
#include "inferno/assertions.h"
|
#include "inferno/assert.h"
|
||||||
#include "inferno/inputcodes.h"
|
#include "inferno/inputcodes.h"
|
||||||
|
|
||||||
namespace Inferno {
|
namespace Inferno {
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
#include <iostream> // std::ios
|
#include <iostream> // std::ios
|
||||||
#include <memory> // std::make_unique
|
#include <memory> // std::make_unique
|
||||||
|
|
||||||
#include "inferno/assertions.h"
|
#include "inferno/assert.h"
|
||||||
#include "inferno/file.h"
|
#include "inferno/io/file.h"
|
||||||
|
|
||||||
namespace Inferno {
|
namespace Inferno {
|
||||||
|
|
||||||
@@ -5,9 +5,9 @@
|
|||||||
#include <iomanip> // std::setfill, std::setw
|
#include <iomanip> // std::setfill, std::setw
|
||||||
#include <string> // std::string
|
#include <string> // std::string
|
||||||
|
|
||||||
#include "inferno/assertions.h"
|
#include "inferno/assert.h"
|
||||||
#include "inferno/core.h"
|
#include "inferno/core.h"
|
||||||
#include "inferno/log.h"
|
#include "inferno/io/log.h"
|
||||||
|
|
||||||
namespace Inferno {
|
namespace Inferno {
|
||||||
|
|
||||||
@@ -2,8 +2,8 @@
|
|||||||
|
|
||||||
#include "inferno/application.h"
|
#include "inferno/application.h"
|
||||||
#include "inferno/event/mouseevent.h"
|
#include "inferno/event/mouseevent.h"
|
||||||
#include "inferno/input.h"
|
#include "inferno/io/input.h"
|
||||||
#include "inferno/log.h"
|
#include "inferno/io/log.h"
|
||||||
#include "inferno/window.h"
|
#include "inferno/window.h"
|
||||||
|
|
||||||
namespace Inferno {
|
namespace Inferno {
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
#include "inferno/assertions.h"
|
#include "inferno/assert.h"
|
||||||
#include "inferno/log.h"
|
#include "inferno/io/log.h"
|
||||||
|
|
||||||
#include <cstring> // strlen
|
#include <cstring> // strlen
|
||||||
#include <string> // std::string
|
#include <string> // std::string
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
#include "glad/glad.h"
|
#include "glad/glad.h"
|
||||||
|
|
||||||
#include "inferno/assertions.h"
|
#include "inferno/assert.h"
|
||||||
#include "inferno/core.h"
|
#include "inferno/core.h"
|
||||||
#include "inferno/log.h"
|
#include "inferno/io/log.h"
|
||||||
#include "inferno/render/buffer.h"
|
#include "inferno/render/buffer.h"
|
||||||
|
|
||||||
namespace Inferno {
|
namespace Inferno {
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
#include "glad/glad.h"
|
#include "glad/glad.h"
|
||||||
#include "GLFW/glfw3.h"
|
#include "GLFW/glfw3.h"
|
||||||
|
|
||||||
#include "inferno/assertions.h"
|
#include "inferno/assert.h"
|
||||||
#include "inferno/core.h"
|
#include "inferno/core.h"
|
||||||
#include "inferno/log.h"
|
#include "inferno/io/log.h"
|
||||||
#include "inferno/render/context.h"
|
#include "inferno/render/context.h"
|
||||||
#include "inferno/window.h"
|
#include "inferno/window.h"
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
#include <bits/stdint-uintn.h>
|
#include <bits/stdint-uintn.h>
|
||||||
#include <string> // std::getline
|
#include <string> // std::getline
|
||||||
|
|
||||||
#include "inferno/assertions.h"
|
#include "inferno/assert.h"
|
||||||
#include "inferno/file.h"
|
#include "inferno/io/file.h"
|
||||||
#include "inferno/render/font.h"
|
#include "inferno/render/font.h"
|
||||||
#include "inferno/render/texture.h"
|
#include "inferno/render/texture.h"
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
#include "glm/ext/vector_int2.hpp" // glm::ivec2
|
#include "glm/ext/vector_int2.hpp" // glm::ivec2
|
||||||
|
|
||||||
#include "inferno/log.h"
|
#include "inferno/io/log.h"
|
||||||
|
|
||||||
namespace Inferno {
|
namespace Inferno {
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
#include "glad/glad.h"
|
#include "glad/glad.h"
|
||||||
|
|
||||||
#include "inferno/assertions.h"
|
#include "inferno/assert.h"
|
||||||
#include "inferno/render/buffer.h"
|
#include "inferno/render/buffer.h"
|
||||||
#include "inferno/render/renderer.h"
|
#include "inferno/render/renderer.h"
|
||||||
#include "inferno/render/shader.h"
|
#include "inferno/render/shader.h"
|
||||||
|
|||||||
@@ -3,10 +3,10 @@
|
|||||||
#include "glad/glad.h"
|
#include "glad/glad.h"
|
||||||
#include "glm/gtc/type_ptr.hpp" // glm::value_ptr
|
#include "glm/gtc/type_ptr.hpp" // glm::value_ptr
|
||||||
|
|
||||||
#include "inferno/assertions.h"
|
#include "inferno/assert.h"
|
||||||
#include "inferno/core.h"
|
#include "inferno/core.h"
|
||||||
#include "inferno/file.h"
|
#include "inferno/io/file.h"
|
||||||
#include "inferno/log.h"
|
#include "inferno/io/log.h"
|
||||||
#include "inferno/render/shader.h"
|
#include "inferno/render/shader.h"
|
||||||
|
|
||||||
namespace Inferno {
|
namespace Inferno {
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
#define STB_IMAGE_IMPLEMENTATION
|
#define STB_IMAGE_IMPLEMENTATION
|
||||||
#include "stb_image.h"
|
#include "stb_image.h"
|
||||||
|
|
||||||
#include "inferno/assertions.h"
|
#include "inferno/assert.h"
|
||||||
#include "inferno/render/texture.h"
|
#include "inferno/render/texture.h"
|
||||||
|
|
||||||
namespace Inferno {
|
namespace Inferno {
|
||||||
|
|||||||
@@ -8,8 +8,8 @@
|
|||||||
#include "glm/ext/matrix_float4x4.hpp" // glm::mat4
|
#include "glm/ext/matrix_float4x4.hpp" // glm::mat4
|
||||||
#include "glm/ext/vector_float3.hpp" // glm::vec3
|
#include "glm/ext/vector_float3.hpp" // glm::vec3
|
||||||
|
|
||||||
#include "inferno/assertions.h"
|
#include "inferno/assert.h"
|
||||||
#include "inferno/log.h"
|
#include "inferno/io/log.h"
|
||||||
#include "inferno/render/texture.h"
|
#include "inferno/render/texture.h"
|
||||||
#include "inferno/script/nativescript.h"
|
#include "inferno/script/nativescript.h"
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
#include "entt/entity/registry.hpp" // entt::entity, entt::registry
|
#include "entt/entity/registry.hpp" // entt::entity, entt::registry
|
||||||
#include "glm/ext/matrix_float4x4.hpp" // glm::mat4
|
#include "glm/ext/matrix_float4x4.hpp" // glm::mat4
|
||||||
|
|
||||||
#include "inferno/log.h"
|
#include "inferno/io/log.h"
|
||||||
|
|
||||||
namespace Inferno {
|
namespace Inferno {
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#include "glm/ext/matrix_transform.hpp" // glm::radians
|
#include "glm/ext/matrix_transform.hpp" // glm::radians
|
||||||
|
|
||||||
#include "inferno/input.h"
|
|
||||||
#include "inferno/inputcodes.h"
|
#include "inferno/inputcodes.h"
|
||||||
|
#include "inferno/io/input.h"
|
||||||
#include "inferno/script/cameracontroller.h"
|
#include "inferno/script/cameracontroller.h"
|
||||||
|
|
||||||
namespace Inferno {
|
namespace Inferno {
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
#include "sol/unsafe_function_result.hpp"
|
#include "sol/unsafe_function_result.hpp"
|
||||||
|
|
||||||
#include "inferno/assertions.h"
|
#include "inferno/io/file.h"
|
||||||
#include "inferno/file.h"
|
|
||||||
#include "inferno/scene/components.h"
|
#include "inferno/scene/components.h"
|
||||||
#include "inferno/scene/scene.h"
|
#include "inferno/scene/scene.h"
|
||||||
#include "inferno/script/luascript.h"
|
#include "inferno/script/luascript.h"
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
#include "sol/state.hpp"
|
#include "sol/state.hpp"
|
||||||
#include "sol/table.hpp"
|
#include "sol/table.hpp"
|
||||||
|
|
||||||
#include "inferno/assertions.h"
|
#include "inferno/assert.h"
|
||||||
|
|
||||||
namespace Inferno {
|
namespace Inferno {
|
||||||
|
|
||||||
|
|||||||
@@ -3,8 +3,8 @@
|
|||||||
#include "glm/ext/vector_float4.hpp" // glm::vec4
|
#include "glm/ext/vector_float4.hpp" // glm::vec4
|
||||||
#include "glm/ext/matrix_transform.hpp" // glm::radians
|
#include "glm/ext/matrix_transform.hpp" // glm::radians
|
||||||
|
|
||||||
#include "inferno/input.h"
|
|
||||||
#include "inferno/inputcodes.h"
|
#include "inferno/inputcodes.h"
|
||||||
|
#include "inferno/io/input.h"
|
||||||
#include "inferno/scene/components.h"
|
#include "inferno/scene/components.h"
|
||||||
#include "inferno/script/registration.h"
|
#include "inferno/script/registration.h"
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#include <string> // std::string
|
#include <string> // std::string
|
||||||
|
|
||||||
#include "inferno/file.h"
|
#include "inferno/io/file.h"
|
||||||
#include "inferno/log.h"
|
#include "inferno/io/log.h"
|
||||||
#include "inferno/settings.h"
|
#include "inferno/settings.h"
|
||||||
|
|
||||||
namespace Inferno {
|
namespace Inferno {
|
||||||
|
|||||||
@@ -2,10 +2,10 @@
|
|||||||
#include "glm/ext/matrix_transform.hpp" // glm::radians, glm::lookAt
|
#include "glm/ext/matrix_transform.hpp" // glm::radians, glm::lookAt
|
||||||
|
|
||||||
#include "inferno/application.h"
|
#include "inferno/application.h"
|
||||||
#include "inferno/assertions.h"
|
#include "inferno/assert.h"
|
||||||
#include "inferno/input.h"
|
|
||||||
#include "inferno/inputcodes.h"
|
#include "inferno/inputcodes.h"
|
||||||
#include "inferno/log.h"
|
#include "inferno/io/input.h"
|
||||||
|
#include "inferno/io/log.h"
|
||||||
#include "inferno/systems/camera.h"
|
#include "inferno/systems/camera.h"
|
||||||
#include "inferno/window.h"
|
#include "inferno/window.h"
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#include "glm/ext/matrix_transform.hpp" // glm::translate, glm::rotate, glm::scale, glm::radians
|
#include "glm/ext/matrix_transform.hpp" // glm::translate, glm::rotate, glm::scale, glm::radians
|
||||||
|
|
||||||
#include "inferno/assertions.h"
|
#include "inferno/assert.h"
|
||||||
#include "inferno/log.h"
|
#include "inferno/io/log.h"
|
||||||
#include "inferno/render/renderer.h"
|
#include "inferno/render/renderer.h"
|
||||||
#include "inferno/scene/components.h"
|
#include "inferno/scene/components.h"
|
||||||
#include "inferno/systems/render.h"
|
#include "inferno/systems/render.h"
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
#include "entt/entity/registry.hpp" // entt::entity, entt::registry
|
#include "entt/entity/registry.hpp" // entt::entity, entt::registry
|
||||||
|
|
||||||
#include "inferno/assertions.h"
|
#include "inferno/assert.h"
|
||||||
|
#include "inferno/io/log.h"
|
||||||
#include "inferno/scene/components.h"
|
#include "inferno/scene/components.h"
|
||||||
#include "inferno/scene/scene.h"
|
#include "inferno/scene/scene.h"
|
||||||
#include "inferno/script/luascript.h"
|
#include "inferno/script/luascript.h"
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#include "glm/ext/matrix_transform.hpp" // glm::translate, glm::rotate, glm::scale, glm::radians
|
#include "glm/ext/matrix_transform.hpp" // glm::translate, glm::rotate, glm::scale, glm::radians
|
||||||
|
|
||||||
#include "inferno/assertions.h"
|
#include "inferno/assert.h"
|
||||||
#include "inferno/log.h"
|
#include "inferno/io/log.h"
|
||||||
#include "inferno/scene/components.h"
|
#include "inferno/scene/components.h"
|
||||||
#include "inferno/systems/transform.h"
|
#include "inferno/systems/transform.h"
|
||||||
|
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
#include "GLFW/glfw3.h"
|
#include "GLFW/glfw3.h"
|
||||||
|
|
||||||
#include "inferno/assertions.h"
|
#include "inferno/assert.h"
|
||||||
#include "inferno/core.h"
|
#include "inferno/core.h"
|
||||||
#include "inferno/event/applicationevent.h"
|
#include "inferno/event/applicationevent.h"
|
||||||
#include "inferno/event/keyevent.h"
|
#include "inferno/event/keyevent.h"
|
||||||
#include "inferno/event/mouseevent.h"
|
#include "inferno/event/mouseevent.h"
|
||||||
#include "inferno/input.h"
|
|
||||||
#include "inferno/inputcodes.h"
|
#include "inferno/inputcodes.h"
|
||||||
#include "inferno/log.h"
|
#include "inferno/io/input.h"
|
||||||
|
#include "inferno/io/log.h"
|
||||||
#include "inferno/render/context.h"
|
#include "inferno/render/context.h"
|
||||||
#include "inferno/settings.h"
|
#include "inferno/settings.h"
|
||||||
#include "inferno/window.h"
|
#include "inferno/window.h"
|
||||||
|
|||||||
Reference in New Issue
Block a user