write shit
This commit is contained in:
@@ -54,8 +54,9 @@ namespace Basalt::Presenter {
|
||||
dll_path /= filename;
|
||||
#if defined(BASALT_OS_WINDOWS)
|
||||
dll_path.replace_extension(BSTEXT(".dll"));
|
||||
#else
|
||||
dll_path.replace_extension(BSTEXT(".so"));
|
||||
#endif
|
||||
|
||||
// Load DLL
|
||||
#if defined(BASALT_OS_WINDOWS)
|
||||
m_Handle = LoadLibraryW(dll_path.wstring().c_str());
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#include <basalt_char.hpp>
|
||||
#include <basalt/char_types.hpp>
|
||||
#include <string_view>
|
||||
|
||||
#if defined(BASALT_OS_WINDOWS)
|
||||
|
||||
@@ -1,15 +1,17 @@
|
||||
#include "dll_loader.hpp"
|
||||
#include <basalt_char.hpp>
|
||||
#include <engine.hpp>
|
||||
#include <basalt/char_types.hpp>
|
||||
#include <basalt/kernel.hpp>
|
||||
|
||||
namespace Presenter = ::Basalt::Presenter;
|
||||
namespace Shared = ::Basalt::Shared;
|
||||
namespace Kernel = ::Basalt::Shared::Kernel;
|
||||
|
||||
int main(int argc, char* argv[]) {
|
||||
auto engine_dll = Presenter::DllLoader(Presenter::DllKind::Engine, BSTEXT("BasaltDirectX11Engine"));
|
||||
auto* engine = engine_dll.CreateInstance<Shared::Engine::IEngine>();
|
||||
auto deliver_dll = Presenter::DllLoader(Presenter::DllKind::Deliver, BSTEXT("BasaltPipeDeliver"));
|
||||
auto* engine = engine_dll.CreateInstance<Kernel::IEngine>();
|
||||
auto* deliver = deliver_dll.CreateInstance<Kernel::IDeliver>();
|
||||
|
||||
Shared::Engine::EngineConfig engine_config{.headless = false, .title = BSTEXT("Fuck You"), .width = 800, .height = 600};
|
||||
Kernel::EngineConfig engine_config{.headless = false, .title = BSTEXT("Fuck You"), .width = 800, .height = 600};
|
||||
engine->Startup(std::move(engine_config));
|
||||
|
||||
while (true) {
|
||||
|
||||
Reference in New Issue
Block a user