[nostalgia] Collapse NostalgiaCore down to a single library and cleanup impl data access

This commit is contained in:
2022-02-03 19:57:43 -06:00
parent d4e903b593
commit 8174d04b06
20 changed files with 152 additions and 182 deletions
@@ -1,29 +0,0 @@
add_library(
NostalgiaCore-Userspace OBJECT
gfx.cpp
gfx_opengl.cpp
media.cpp
)
if(NOT MSVC)
target_compile_options(NostalgiaCore-Userspace PRIVATE -Wsign-conversion)
endif()
find_package(imgui REQUIRED)
target_link_libraries(
NostalgiaCore-Userspace PUBLIC
imgui::imgui
OxClaw
OxFS
OxStd
NostalgiaCore
NostalgiaGlUtils
)
install(
TARGETS
NostalgiaCore-Userspace
DESTINATION
include/nostalgia/core
)
+3 -3
View File
@@ -10,10 +10,10 @@
namespace nostalgia::core::renderer {
ox::Error init(Context *ctx);
ox::Error init(Context *ctx) noexcept;
ox::Error shutdown(Context *ctx);
ox::Error shutdown(Context *ctx) noexcept;
ox::Error loadBgTexture(Context *ctx, int section, void *bytes, int w, int h);
ox::Error loadBgTexture(Context *ctx, int section, void *bytes, int w, int h) noexcept;
}
@@ -12,6 +12,8 @@
#include <nostalgia/core/config.hpp>
#include <nostalgia/core/gfx.hpp>
#include "nostalgia/core/context.hpp"
namespace nostalgia::core {