Browse Source

Everywhere: Add copyright headers

master
Riyyi 2 years ago
parent
commit
aedb1a5fc9
  1. 6
      example/src/game.cpp
  2. 6
      src/inferno/application.cpp
  3. 6
      src/inferno/application.h
  4. 6
      src/inferno/component/cameracomponent.h
  5. 6
      src/inferno/component/luascriptcomponent.h
  6. 6
      src/inferno/component/nativescriptcomponent.h
  7. 6
      src/inferno/component/spritecomponent.h
  8. 6
      src/inferno/component/tagcomponent.h
  9. 6
      src/inferno/component/textareacomponent.h
  10. 6
      src/inferno/component/transformcomponent.cpp
  11. 6
      src/inferno/component/transformcomponent.h
  12. 6
      src/inferno/core.h
  13. 6
      src/inferno/entrypoint.h
  14. 6
      src/inferno/event/applicationevent.h
  15. 6
      src/inferno/event/event.h
  16. 6
      src/inferno/event/joystickevent.h
  17. 6
      src/inferno/event/keyevent.h
  18. 6
      src/inferno/event/mouseevent.h
  19. 6
      src/inferno/io/gltffile.cpp
  20. 6
      src/inferno/io/gltffile.h
  21. 6
      src/inferno/io/input.cpp
  22. 6
      src/inferno/io/input.h
  23. 6
      src/inferno/keycodes.cpp
  24. 6
      src/inferno/keycodes.h
  25. 6
      src/inferno/render/buffer.cpp
  26. 6
      src/inferno/render/buffer.h
  27. 6
      src/inferno/render/context.cpp
  28. 6
      src/inferno/render/context.h
  29. 6
      src/inferno/render/font.cpp
  30. 6
      src/inferno/render/font.h
  31. 6
      src/inferno/render/framebuffer.cpp
  32. 6
      src/inferno/render/framebuffer.h
  33. 6
      src/inferno/render/gltf.cpp
  34. 6
      src/inferno/render/gltf.h
  35. 6
      src/inferno/render/renderer.cpp
  36. 6
      src/inferno/render/renderer.h
  37. 6
      src/inferno/render/renderer3d.cpp
  38. 19
      src/inferno/render/renderer3d.h
  39. 6
      src/inferno/render/shader.cpp
  40. 6
      src/inferno/render/shader.h
  41. 6
      src/inferno/render/texture.cpp
  42. 6
      src/inferno/render/texture.h
  43. 6
      src/inferno/scene/scene.cpp
  44. 6
      src/inferno/scene/scene.h
  45. 6
      src/inferno/script/cameracontroller.cpp
  46. 6
      src/inferno/script/cameracontroller.h
  47. 6
      src/inferno/script/luascript.cpp
  48. 6
      src/inferno/script/luascript.h
  49. 6
      src/inferno/script/nativescript.h
  50. 6
      src/inferno/script/registration.cpp
  51. 6
      src/inferno/script/registration.h
  52. 6
      src/inferno/settings.cpp
  53. 6
      src/inferno/settings.h
  54. 6
      src/inferno/system/camerasystem.cpp
  55. 6
      src/inferno/system/camerasystem.h
  56. 6
      src/inferno/system/rendersystem.cpp
  57. 6
      src/inferno/system/rendersystem.h
  58. 6
      src/inferno/system/scriptsystem.cpp
  59. 6
      src/inferno/system/scriptsystem.h
  60. 6
      src/inferno/system/textareasystem.cpp
  61. 6
      src/inferno/system/textareasystem.h
  62. 6
      src/inferno/system/transformsystem.cpp
  63. 6
      src/inferno/system/transformsystem.h
  64. 6
      src/inferno/time.cpp
  65. 6
      src/inferno/time.h
  66. 6
      src/inferno/util/integer.h
  67. 6
      src/inferno/util/json.h
  68. 6
      src/inferno/window.cpp
  69. 6
      src/inferno/window.h

6
example/src/game.cpp

@ -1,3 +1,9 @@
/*
* Copyright (C) 2022 Riyyi
*
* SPDX-License-Identifier: MIT
*/
#include "inferno.h"
#include "inferno/entrypoint.h"

6
src/inferno/application.cpp

@ -1,3 +1,9 @@
/*
* Copyright (C) 2022 Riyyi
*
* SPDX-License-Identifier: MIT
*/
#include "glm/gtc/type_ptr.hpp" // glm::make_mat4
#include "ruc/format/log.h"
#include "ruc/meta/assert.h"

6
src/inferno/application.h

@ -1,3 +1,9 @@
/*
* Copyright (C) 2022 Riyyi
*
* SPDX-License-Identifier: MIT
*/
#pragma once
#include <memory> // std::unique_ptr, std::shared_ptr

6
src/inferno/component/cameracomponent.h

@ -1,3 +1,9 @@
/*
* Copyright (C) 2022 Riyyi
*
* SPDX-License-Identifier: MIT
*/
#pragma once
#include "glm/ext/matrix_float4x4.hpp" // glm::mat4

6
src/inferno/component/luascriptcomponent.h

@ -1,3 +1,9 @@
/*
* Copyright (C) 2022 Riyyi
*
* SPDX-License-Identifier: MIT
*/
#pragma once
#include <string> // std::string

6
src/inferno/component/nativescriptcomponent.h

@ -1,3 +1,9 @@
/*
* Copyright (C) 2022 Riyyi
*
* SPDX-License-Identifier: MIT
*/
#pragma once
#include "ruc/meta/assert.h"

6
src/inferno/component/spritecomponent.h

@ -1,3 +1,9 @@
/*
* Copyright (C) 2022 Riyyi
*
* SPDX-License-Identifier: MIT
*/
#pragma once
#include <memory> // std::shared_ptr

6
src/inferno/component/tagcomponent.h

@ -1,3 +1,9 @@
/*
* Copyright (C) 2022 Riyyi
*
* SPDX-License-Identifier: MIT
*/
#pragma once
#include <string> // std::string

6
src/inferno/component/textareacomponent.h

@ -1,3 +1,9 @@
/*
* Copyright (C) 2022 Riyyi
*
* SPDX-License-Identifier: MIT
*/
#pragma once
#include <cstdint> // uint32_t

6
src/inferno/component/transformcomponent.cpp

@ -1,3 +1,9 @@
/*
* Copyright (C) 2022 Riyyi
*
* SPDX-License-Identifier: MIT
*/
#include "inferno/component/transformcomponent.h"
void ruc::format::Formatter<glm::vec2>::format(Builder& builder, glm::vec2 value) const

6
src/inferno/component/transformcomponent.h

@ -1,3 +1,9 @@
/*
* Copyright (C) 2022 Riyyi
*
* SPDX-License-Identifier: MIT
*/
#pragma once
#include "glm/ext/matrix_float4x4.hpp" // glm::mat4

6
src/inferno/core.h

@ -1,3 +1,9 @@
/*
* Copyright (C) 2022 Riyyi
*
* SPDX-License-Identifier: MIT
*/
#pragma once
#include <functional> // std::bind, std::placeholders

6
src/inferno/entrypoint.h

@ -1,3 +1,9 @@
/*
* Copyright (C) 2022 Riyyi
*
* SPDX-License-Identifier: MIT
*/
/*
* `m_` for member variables,
* `s_` for static variables,

6
src/inferno/event/applicationevent.h

@ -1,3 +1,9 @@
/*
* Copyright (C) 2022 Riyyi
*
* SPDX-License-Identifier: MIT
*/
#pragma once
#include <sstream> // std::stringstream

6
src/inferno/event/event.h

@ -1,3 +1,9 @@
/*
* Copyright (C) 2022 Riyyi
*
* SPDX-License-Identifier: MIT
*/
#pragma once
#include <ostream> // std::ostream

6
src/inferno/event/joystickevent.h

@ -1,3 +1,9 @@
/*
* Copyright (C) 2022 Riyyi
*
* SPDX-License-Identifier: MIT
*/
#pragma once
#include <sstream> // std::stringstream

6
src/inferno/event/keyevent.h

@ -1,3 +1,9 @@
/*
* Copyright (C) 2022 Riyyi
*
* SPDX-License-Identifier: MIT
*/
#pragma once
#include <sstream> // std::stringstream

6
src/inferno/event/mouseevent.h

@ -1,3 +1,9 @@
/*
* Copyright (C) 2022 Riyyi
*
* SPDX-License-Identifier: MIT
*/
#pragma once
#include <sstream> // std::stringstream

6
src/inferno/io/gltffile.cpp

@ -1,3 +1,9 @@
/*
* Copyright (C) 2022 Riyyi
*
* SPDX-License-Identifier: MIT
*/
#include <cstring> // strcmp ??
#include <fstream> // std::ifstream
#include <ios> // std::ios

6
src/inferno/io/gltffile.h

@ -1,3 +1,9 @@
/*
* Copyright (C) 2022 Riyyi
*
* SPDX-License-Identifier: MIT
*/
#pragma once
#include <cstdint> // uint32_t

6
src/inferno/io/input.cpp

@ -1,3 +1,9 @@
/*
* Copyright (C) 2022 Riyyi
*
* SPDX-License-Identifier: MIT
*/
#include "GLFW/glfw3.h"
#include "ruc/format/log.h"

6
src/inferno/io/input.h

@ -1,3 +1,9 @@
/*
* Copyright (C) 2022 Riyyi
*
* SPDX-License-Identifier: MIT
*/
#pragma once
#include <utility> // std::pair

6
src/inferno/keycodes.cpp

@ -1,3 +1,9 @@
/*
* Copyright (C) 2022 Riyyi
*
* SPDX-License-Identifier: MIT
*/
#include <algorithm> // std::find_if
#include <string_view>
#include <unordered_map> // std::unordered_map

6
src/inferno/keycodes.h

@ -1,3 +1,9 @@
/*
* Copyright (C) 2022 Riyyi
*
* SPDX-License-Identifier: MIT
*/
#pragma once
#include <string_view>

6
src/inferno/render/buffer.cpp

@ -1,3 +1,9 @@
/*
* Copyright (C) 2022 Riyyi
*
* SPDX-License-Identifier: MIT
*/
#include "glad/glad.h"
#include "inferno/core.h"

6
src/inferno/render/buffer.h

@ -1,3 +1,9 @@
/*
* Copyright (C) 2022 Riyyi
*
* SPDX-License-Identifier: MIT
*/
#pragma once
#include <cstddef> // size_t

6
src/inferno/render/context.cpp

@ -1,3 +1,9 @@
/*
* Copyright (C) 2022 Riyyi
*
* SPDX-License-Identifier: MIT
*/
// clang-format off
#include "glad/glad.h" // glad needs to come before GLFW
#include "GLFW/glfw3.h"

6
src/inferno/render/context.h

@ -1,3 +1,9 @@
/*
* Copyright (C) 2022 Riyyi
*
* SPDX-License-Identifier: MIT
*/
#pragma once
struct GLFWwindow;

6
src/inferno/render/font.cpp

@ -1,3 +1,9 @@
/*
* Copyright (C) 2022 Riyyi
*
* SPDX-License-Identifier: MIT
*/
#include <limits> // std::numeric_limits
#include <string> // std::getline, std::stoi
#include <utility> // std::move

6
src/inferno/render/font.h

@ -1,3 +1,9 @@
/*
* Copyright (C) 2022 Riyyi
*
* SPDX-License-Identifier: MIT
*/
#pragma once
#include <cstdint> // int32_t, uint32_t

6
src/inferno/render/framebuffer.cpp

@ -1,3 +1,9 @@
/*
* Copyright (C) 2022 Riyyi
*
* SPDX-License-Identifier: MIT
*/
#include "inferno/render/framebuffer.h"
namespace Inferno {

6
src/inferno/render/framebuffer.h

@ -1,3 +1,9 @@
/*
* Copyright (C) 2022 Riyyi
*
* SPDX-License-Identifier: MIT
*/
#pragma once
namespace Inferno {

6
src/inferno/render/gltf.cpp

@ -1,3 +1,9 @@
/*
* Copyright (C) 2022 Riyyi
*
* SPDX-License-Identifier: MIT
*/
#if 0
#include <algorithm> // std::copy
#include <utility> // std::move

6
src/inferno/render/gltf.h

@ -1,3 +1,9 @@
/*
* Copyright (C) 2022 Riyyi
*
* SPDX-License-Identifier: MIT
*/
#pragma once
#if 0

6
src/inferno/render/renderer.cpp

@ -1,3 +1,9 @@
/*
* Copyright (C) 2022 Riyyi
*
* SPDX-License-Identifier: MIT
*/
#include <algorithm> // std::min
#include <utility> // std::move

6
src/inferno/render/renderer.h

@ -1,3 +1,9 @@
/*
* Copyright (C) 2022 Riyyi
*
* SPDX-License-Identifier: MIT
*/
#pragma once
#include <cstdint> // int32_t, uint32_t

6
src/inferno/render/renderer3d.cpp

@ -1,3 +1,9 @@
/*
* Copyright (C) 2022 Riyyi
*
* SPDX-License-Identifier: MIT
*/
#include "inferno/render/renderer3d.h"
namespace Inferno {

19
src/inferno/render/renderer3d.h

@ -1,22 +1,7 @@
/*
* Copyright (C) 2021 Riyyi
* Copyright (C) 2022 Riyyi
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
* the Software, and to permit persons to whom the Software is furnished to do so,
* subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* SPDX-License-Identifier: MIT
*/
#pragma once

6
src/inferno/render/shader.cpp

@ -1,3 +1,9 @@
/*
* Copyright (C) 2022 Riyyi
*
* SPDX-License-Identifier: MIT
*/
#include <utility> // std::move
#include <vector> // std::vector

6
src/inferno/render/shader.h

@ -1,3 +1,9 @@
/*
* Copyright (C) 2022 Riyyi
*
* SPDX-License-Identifier: MIT
*/
#pragma once
#include <cstdint> // int32_t, uint32_t

6
src/inferno/render/texture.cpp

@ -1,3 +1,9 @@
/*
* Copyright (C) 2022 Riyyi
*
* SPDX-License-Identifier: MIT
*/
#include <climits> // UINT_MAX
#include <memory> // std::shared_ptr
#include <utility> // std::move

6
src/inferno/render/texture.h

@ -1,3 +1,9 @@
/*
* Copyright (C) 2022 Riyyi
*
* SPDX-License-Identifier: MIT
*/
#pragma once
#include <cstdint> // uint32_t

6
src/inferno/scene/scene.cpp

@ -1,3 +1,9 @@
/*
* Copyright (C) 2022 Riyyi
*
* SPDX-License-Identifier: MIT
*/
#include "ruc/format/log.h"
#include "ruc/meta/assert.h"

6
src/inferno/scene/scene.h

@ -1,3 +1,9 @@
/*
* Copyright (C) 2022 Riyyi
*
* SPDX-License-Identifier: MIT
*/
#pragma once
#include <cstdint> // uint32_t

6
src/inferno/script/cameracontroller.cpp

@ -1,3 +1,9 @@
/*
* Copyright (C) 2022 Riyyi
*
* SPDX-License-Identifier: MIT
*/
#include "glm/ext/matrix_transform.hpp" // glm::radians
#include "inferno/component/cameracomponent.h"

6
src/inferno/script/cameracontroller.h

@ -1,3 +1,9 @@
/*
* Copyright (C) 2022 Riyyi
*
* SPDX-License-Identifier: MIT
*/
#pragma once
#include "inferno/component/cameracomponent.h"

6
src/inferno/script/luascript.cpp

@ -1,3 +1,9 @@
/*
* Copyright (C) 2022 Riyyi
*
* SPDX-License-Identifier: MIT
*/
#include "ruc/file.h"
#include "sol/unsafe_function_result.hpp"

6
src/inferno/script/luascript.h

@ -1,3 +1,9 @@
/*
* Copyright (C) 2022 Riyyi
*
* SPDX-License-Identifier: MIT
*/
#pragma once
#include <cstdint> // uint32_t

6
src/inferno/script/nativescript.h

@ -1,3 +1,9 @@
/*
* Copyright (C) 2022 Riyyi
*
* SPDX-License-Identifier: MIT
*/
#pragma once
#include "inferno/scene/scene.h"

6
src/inferno/script/registration.cpp

@ -1,3 +1,9 @@
/*
* Copyright (C) 2022 Riyyi
*
* SPDX-License-Identifier: MIT
*/
#include "glm/ext/matrix_transform.hpp" // glm::radians
#include "glm/ext/vector_float2.hpp" // glm::vec2
#include "glm/ext/vector_float3.hpp" // glm::vec3

6
src/inferno/script/registration.h

@ -1,3 +1,9 @@
/*
* Copyright (C) 2022 Riyyi
*
* SPDX-License-Identifier: MIT
*/
#pragma once
#include "ruc/format/format.h"

6
src/inferno/settings.cpp

@ -1,3 +1,9 @@
/*
* Copyright (C) 2022 Riyyi
*
* SPDX-License-Identifier: MIT
*/
#include <cstdint> // uint32_t
#include <string> // std::string

6
src/inferno/settings.h

@ -1,3 +1,9 @@
/*
* Copyright (C) 2022 Riyyi
*
* SPDX-License-Identifier: MIT
*/
#pragma once
#include "ruc/json/json.h"

6
src/inferno/system/camerasystem.cpp

@ -1,3 +1,9 @@
/*
* Copyright (C) 2022 Riyyi
*
* SPDX-License-Identifier: MIT
*/
#include "glm/ext/matrix_clip_space.hpp" // glm::perspective, glm::ortho
#include "glm/ext/matrix_transform.hpp" // glm::radians, glm::lookAt
#include "ruc/format/log.h"

6
src/inferno/system/camerasystem.h

@ -1,3 +1,9 @@
/*
* Copyright (C) 2022 Riyyi
*
* SPDX-License-Identifier: MIT
*/
#pragma once
#include <memory> //std::shared_ptr

6
src/inferno/system/rendersystem.cpp

@ -1,3 +1,9 @@
/*
* Copyright (C) 2022 Riyyi
*
* SPDX-License-Identifier: MIT
*/
#include "glm/ext/matrix_transform.hpp" // glm::translate, glm::rotate, glm::scale, glm::radians
#include "ruc/format/log.h"

6
src/inferno/system/rendersystem.h

@ -1,3 +1,9 @@
/*
* Copyright (C) 2022 Riyyi
*
* SPDX-License-Identifier: MIT
*/
#pragma once
#include <memory> //std::shared_ptr

6
src/inferno/system/scriptsystem.cpp

@ -1,3 +1,9 @@
/*
* Copyright (C) 2022 Riyyi
*
* SPDX-License-Identifier: MIT
*/
#include "entt/entity/registry.hpp" // entt::entity, entt::registry
#include "ruc/format/log.h"

6
src/inferno/system/scriptsystem.h

@ -1,3 +1,9 @@
/*
* Copyright (C) 2022 Riyyi
*
* SPDX-License-Identifier: MIT
*/
#pragma once
#include <cstdint> // uint32_t

6
src/inferno/system/textareasystem.cpp

@ -1,3 +1,9 @@
/*
* Copyright (C) 2022 Riyyi
*
* SPDX-License-Identifier: MIT
*/
#include "ruc/format/log.h"
#include "ruc/meta/assert.h"

6
src/inferno/system/textareasystem.h

@ -1,3 +1,9 @@
/*
* Copyright (C) 2022 Riyyi
*
* SPDX-License-Identifier: MIT
*/
#pragma once
#include <cstdint> // std::uint32_t

6
src/inferno/system/transformsystem.cpp

@ -1,3 +1,9 @@
/*
* Copyright (C) 2022 Riyyi
*
* SPDX-License-Identifier: MIT
*/
#include "glm/ext/matrix_transform.hpp" // glm::translate, glm::rotate, glm::scale, glm::radians
#include "ruc/format/log.h"

6
src/inferno/system/transformsystem.h

@ -1,3 +1,9 @@
/*
* Copyright (C) 2022 Riyyi
*
* SPDX-License-Identifier: MIT
*/
#pragma once
#include <memory> // std::shared_ptr

6
src/inferno/time.cpp

@ -1,3 +1,9 @@
/*
* Copyright (C) 2022 Riyyi
*
* SPDX-License-Identifier: MIT
*/
#include "GLFW/glfw3.h"
#include "inferno/time.h"

6
src/inferno/time.h

@ -1,3 +1,9 @@
/*
* Copyright (C) 2022 Riyyi
*
* SPDX-License-Identifier: MIT
*/
#pragma once
namespace Inferno {

6
src/inferno/util/integer.h

@ -1,3 +1,9 @@
/*
* Copyright (C) 2022 Riyyi
*
* SPDX-License-Identifier: MIT
*/
#pragma once
#include <cstdint> // uint32_t

6
src/inferno/util/json.h

@ -1,3 +1,9 @@
/*
* Copyright (C) 2022 Riyyi
*
* SPDX-License-Identifier: MIT
*/
#pragma once
#if 0

6
src/inferno/window.cpp

@ -1,3 +1,9 @@
/*
* Copyright (C) 2022 Riyyi
*
* SPDX-License-Identifier: MIT
*/
#include <csignal> // signal
#include "GLFW/glfw3.h"

6
src/inferno/window.h

@ -1,3 +1,9 @@
/*
* Copyright (C) 2022 Riyyi
*
* SPDX-License-Identifier: MIT
*/
#pragma once
#include <cstdint> // uint32_t

Loading…
Cancel
Save