Skip to content

Commit

Permalink
Move OpenGL renderer
Browse files Browse the repository at this point in the history
  • Loading branch information
albin-johansson committed Oct 8, 2024
1 parent db09205 commit eb67585
Show file tree
Hide file tree
Showing 18 changed files with 30 additions and 30 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ endif ()
add_subdirectory("source/renderers/null")

if (TACTILE_BUILD_OPENGL_RENDERER)
add_subdirectory("source/opengl_renderer")
add_subdirectory("source/renderers/opengl")
endif ()

if (TACTILE_BUILD_VULKAN_RENDERER)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
project(tactile-opengl-renderer CXX)
project(tactile-renderers-opengl CXX)

find_package(imgui CONFIG REQUIRED)
find_package(glad CONFIG REQUIRED)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
project(tactile-opengl-renderer-lib CXX)
project(tactile-renderers-opengl-lib CXX)

add_library(tactile-opengl-renderer SHARED)
add_library(tactile::opengl_renderer ALIAS tactile-opengl-renderer)

target_sources(tactile-opengl-renderer
PRIVATE
"src/tactile/opengl_renderer/opengl_error.cpp"
"src/tactile/opengl_renderer/opengl_renderer.cpp"
"src/tactile/opengl_renderer/opengl_renderer_plugin.cpp"
"src/tactile/opengl_renderer/opengl_texture.cpp"
"src/opengl_error.cpp"
"src/opengl_renderer.cpp"
"src/opengl_renderer_plugin.cpp"
"src/opengl_texture.cpp"

PUBLIC FILE_SET "HEADERS" BASE_DIRS "inc" FILES
"inc/tactile/opengl_renderer/api.hpp"
"inc/tactile/opengl_renderer/opengl_error.hpp"
"inc/tactile/opengl_renderer/opengl_renderer.hpp"
"inc/tactile/opengl_renderer/opengl_renderer_plugin.hpp"
"inc/tactile/opengl_renderer/opengl_texture.hpp"
"inc/tactile/opengl/api.hpp"
"inc/tactile/opengl/opengl_error.hpp"
"inc/tactile/opengl/opengl_renderer.hpp"
"inc/tactile/opengl/opengl_renderer_plugin.hpp"
"inc/tactile/opengl/opengl_texture.hpp"
)

tactile_prepare_target(tactile-opengl-renderer)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include <utility> // to_underlying

#include "tactile/base/prelude.hpp"
#include "tactile/opengl_renderer/api.hpp"
#include "tactile/opengl/api.hpp"

namespace tactile {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

#include "tactile/base/prelude.hpp"
#include "tactile/base/render/renderer.hpp"
#include "tactile/opengl_renderer/api.hpp"
#include "tactile/opengl/api.hpp"

namespace tactile {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
#include <optional> // optional

#include "tactile/base/prelude.hpp"
#include "tactile/opengl_renderer/api.hpp"
#include "tactile/opengl_renderer/opengl_renderer.hpp"
#include "tactile/opengl/api.hpp"
#include "tactile/opengl/opengl_renderer.hpp"
#include "tactile/runtime/plugin.hpp"

namespace tactile {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

#include "tactile/base/prelude.hpp"
#include "tactile/base/render/texture.hpp"
#include "tactile/opengl_renderer/api.hpp"
#include "tactile/opengl/api.hpp"

namespace tactile {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (C) 2024 Albin Johansson (GNU General Public License v3.0)

#include "tactile/opengl_renderer/opengl_error.hpp"
#include "tactile/opengl/opengl_error.hpp"

#include <glad/glad.h>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (C) 2024 Albin Johansson (GNU General Public License v3.0)

#include "tactile/opengl_renderer/opengl_renderer.hpp"
#include "tactile/opengl/opengl_renderer.hpp"

#include <cstdlib> // malloc, free
#include <list> // list
Expand All @@ -17,8 +17,8 @@

#include "tactile/base/render/window.hpp"
#include "tactile/base/util/scope_exit.hpp"
#include "tactile/opengl_renderer/opengl_error.hpp"
#include "tactile/opengl_renderer/opengl_texture.hpp"
#include "tactile/opengl/opengl_error.hpp"
#include "tactile/opengl/opengl_texture.hpp"
#include "tactile/runtime/logging.hpp"

namespace tactile {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (C) 2024 Albin Johansson (GNU General Public License v3.0)

#include "tactile/opengl_renderer/opengl_renderer_plugin.hpp"
#include "tactile/opengl/opengl_renderer_plugin.hpp"

#include <new> // nothrow

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (C) 2024 Albin Johansson (GNU General Public License v3.0)

#include "tactile/opengl_renderer/opengl_texture.hpp"
#include "tactile/opengl/opengl_texture.hpp"

#define STB_IMAGE_IMPLEMENTATION

Expand All @@ -12,7 +12,7 @@
#include <stb_image.h>

#include "tactile/base/render/renderer_options.hpp"
#include "tactile/opengl_renderer/opengl_error.hpp"
#include "tactile/opengl/opengl_error.hpp"

namespace tactile {

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
project(tactile-opengl-renderer-test CXX)
project(tactile-renderers-opengl-test CXX)

add_executable(tactile-opengl-renderer-test)

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (C) 2024 Albin Johansson (GNU General Public License v3.0)

#include "tactile/opengl_renderer/opengl_error.hpp"
#include "tactile/opengl/opengl_error.hpp"

#include <utility> // to_underlying

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// Copyright (C) 2024 Albin Johansson (GNU General Public License v3.0)

#include "tactile/opengl_renderer/opengl_renderer.hpp"
#include "tactile/opengl/opengl_renderer.hpp"

#include <gtest/gtest.h>

#include "tactile/opengl_renderer/opengl_renderer_plugin.hpp"
#include "tactile/opengl/opengl_renderer_plugin.hpp"
#include "tactile/runtime/command_line_options.hpp"
#include "tactile/runtime/runtime.hpp"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// Copyright (C) 2024 Albin Johansson (GNU General Public License v3.0)

#include "tactile/opengl_renderer/opengl_texture.hpp"
#include "tactile/opengl/opengl_texture.hpp"

#include <gtest/gtest.h>

#include "tactile/opengl_renderer/opengl_renderer_plugin.hpp"
#include "tactile/opengl/opengl_renderer_plugin.hpp"
#include "tactile/runtime/command_line_options.hpp"
#include "tactile/runtime/runtime.hpp"

Expand Down

0 comments on commit eb67585

Please sign in to comment.