Skip to content

Commit

Permalink
Merge base and render targets
Browse files Browse the repository at this point in the history
  • Loading branch information
albin-johansson committed Jul 5, 2024
1 parent f990fce commit faaea58
Show file tree
Hide file tree
Showing 17 changed files with 14 additions and 29 deletions.
3 changes: 3 additions & 0 deletions source/base/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ target_sources(tactile-base
"${PROJECT_SOURCE_DIR}/inc/tactile/base/container/vector.hpp"
"${PROJECT_SOURCE_DIR}/inc/tactile/base/numeric/saturate_cast.hpp"
"${PROJECT_SOURCE_DIR}/inc/tactile/base/numeric/sign_cast.hpp"
"${PROJECT_SOURCE_DIR}/inc/tactile/base/render/renderer.hpp"
"${PROJECT_SOURCE_DIR}/inc/tactile/base/render/texture.hpp"
"${PROJECT_SOURCE_DIR}/inc/tactile/base/render/window.hpp"
"${PROJECT_SOURCE_DIR}/inc/tactile/base/util/chrono.hpp"
"${PROJECT_SOURCE_DIR}/inc/tactile/base/util/concepts.hpp"
"${PROJECT_SOURCE_DIR}/inc/tactile/base/util/hash.hpp"
Expand Down
File renamed without changes.
1 change: 0 additions & 1 deletion source/core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,6 @@ target_compile_definitions(tactile-core
target_link_libraries(tactile-core
PUBLIC
tactile::base
tactile::render
EnTT::EnTT
imgui::imgui

Expand Down
2 changes: 1 addition & 1 deletion source/core/inc/tactile/core/platform/window.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include "tactile/base/container/smart_ptr.hpp"
#include "tactile/base/int.hpp"
#include "tactile/base/prelude.hpp"
#include "tactile/render/window.hpp"
#include "tactile/base/render/window.hpp"

struct SDL_Window;

Expand Down
2 changes: 1 addition & 1 deletion source/core/src/tactile/core/engine/engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
#include <imgui.h>
#include <imgui_impl_sdl2.h>

#include "tactile/base/render/renderer.hpp"
#include "tactile/core/debug/validation.hpp"
#include "tactile/core/engine/engine_app.hpp"
#include "tactile/core/log/logger.hpp"
#include "tactile/render/renderer.hpp"

namespace tactile {

Expand Down
4 changes: 2 additions & 2 deletions source/core/src/tactile/core/tactile_editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@

#include <utility> // move

#include "tactile/base/render/renderer.hpp"
#include "tactile/base/render/window.hpp"
#include "tactile/core/debug/validation.hpp"
#include "tactile/core/event/view_events.hpp"
#include "tactile/core/log/logger.hpp"
#include "tactile/core/ui/i18n/language_parser.hpp"
#include "tactile/render/renderer.hpp"
#include "tactile/render/window.hpp"

namespace tactile {

Expand Down
2 changes: 1 addition & 1 deletion source/core/src/tactile/core/ui/fonts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
#include <imgui.h>

#include "tactile/base/container/array.hpp"
#include "tactile/base/render/renderer.hpp"
#include "tactile/core/log/logger.hpp"
#include "tactile/core/model/settings.hpp"
#include "tactile/render/renderer.hpp"

namespace tactile::ui {
inline namespace fonts {
Expand Down
1 change: 0 additions & 1 deletion source/lib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ target_link_libraries(libtactile
PUBLIC
tactile::proto
tactile::base
tactile::render
tactile::core
tactile::opengl

Expand Down
1 change: 0 additions & 1 deletion source/main/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ target_include_directories(tactile PUBLIC "${PROJECT_SOURCE_DIR}/inc")
target_link_libraries(tactile
PRIVATE
tactile::base
tactile::render
tactile::core
SDL2::SDL2
SDL2::SDL2main
Expand Down
2 changes: 1 addition & 1 deletion source/main/src/tactile/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

#include "tactile/base/int.hpp"
#include "tactile/base/prelude.hpp"
#include "tactile/base/render/renderer.hpp"
#include "tactile/base/util/chrono.hpp"
#include "tactile/core/debug/exception.hpp"
#include "tactile/core/debug/terminate.hpp"
Expand All @@ -27,7 +28,6 @@
#include "tactile/core/ui/common/style.hpp"
#include "tactile/core/ui/imgui_context.hpp"
#include "tactile/core/util/scope_guard.hpp"
#include "tactile/render/renderer.hpp"

namespace tactile {

Expand Down
1 change: 0 additions & 1 deletion source/opengl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ target_include_directories(tactile-opengl
target_link_libraries(tactile-opengl
PUBLIC
tactile::base
tactile::render

PRIVATE
OpenGL::GL
Expand Down
2 changes: 1 addition & 1 deletion source/opengl/inc/tactile/opengl/opengl_renderer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
#include "tactile/base/container/expected.hpp"
#include "tactile/base/container/smart_ptr.hpp"
#include "tactile/base/prelude.hpp"
#include "tactile/base/render/renderer.hpp"
#include "tactile/opengl/api.hpp"
#include "tactile/render/renderer.hpp"

namespace tactile {

Expand Down
5 changes: 3 additions & 2 deletions source/opengl/inc/tactile/opengl/opengl_texture.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,16 @@
#include "tactile/base/container/expected.hpp"
#include "tactile/base/int.hpp"
#include "tactile/base/prelude.hpp"
#include "tactile/base/render/texture.hpp"
#include "tactile/opengl/api.hpp"
#include "tactile/render/texture.hpp"

namespace tactile {

/**
* Represents an OpenGL texture.
*/
class TACTILE_OPENGL_API OpenGLTexture final : public ITexture {
class TACTILE_OPENGL_API OpenGLTexture final : public ITexture
{
public:
using id_type = uint;

Expand Down
2 changes: 1 addition & 1 deletion source/opengl/src/tactile/opengl/opengl_renderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
#include "tactile/base/container/hash_map.hpp"
#include "tactile/base/container/maybe.hpp"
#include "tactile/base/container/smart_ptr.hpp"
#include "tactile/base/render/window.hpp"
#include "tactile/opengl/opengl_error.hpp"
#include "tactile/opengl/opengl_imgui.hpp"
#include "tactile/opengl/opengl_texture.hpp"
#include "tactile/render/window.hpp"

namespace tactile {

Expand Down
15 changes: 0 additions & 15 deletions source/render/CMakeLists.txt

This file was deleted.

0 comments on commit faaea58

Please sign in to comment.