[nostalgia] Collapse NostalgiaCore down to a single library and cleanup impl data access
This commit is contained in:
@@ -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
|
||||
)
|
||||
@@ -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 {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user