write shit
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#include <basalt_export.hpp>
|
||||
#include <engine.hpp>
|
||||
#include <basalt/export_macro.hpp>
|
||||
#include <basalt/kernel.hpp>
|
||||
#include <windows.h>
|
||||
#include <d3d11.h>
|
||||
#include <d3dcompiler.h>
|
||||
@@ -161,8 +161,8 @@ const char* g_PS = R"(
|
||||
}
|
||||
)";
|
||||
|
||||
using ::Basalt::Shared::Engine::EngineConfig;
|
||||
using ::Basalt::Shared::Engine::IEngine;
|
||||
using ::Basalt::Shared::Kernel::EngineConfig;
|
||||
using ::Basalt::Shared::Kernel::IEngine;
|
||||
|
||||
class DirectX11Engine : public IEngine {
|
||||
public:
|
||||
@@ -383,9 +383,9 @@ public:
|
||||
};
|
||||
|
||||
BS_EXPORT void* BSCreateInstance() {
|
||||
return new DirectX11Engine();
|
||||
return static_cast<IEngine*>(new DirectX11Engine());
|
||||
}
|
||||
|
||||
BS_EXPORT void BSDestroyInstance(void* instance) {
|
||||
delete reinterpret_cast<DirectX11Engine*>(instance);
|
||||
delete dynamic_cast<DirectX11Engine*>(static_cast<IEngine*>(instance));
|
||||
}
|
||||
Reference in New Issue
Block a user