umbra/projs/test-game/src/entry.cpp
dpeter99 71b95e1ccf
Base of the Module system (#8)
Co-authored-by: Curle <curle@gemwire.uk>
2022-11-26 13:22:36 +00:00

26 lines
700 B
C++

//
// Created by dpete on 02/09/2022.
//
#include <iostream>
#include "core/ShadowApplication.h"
#include "GameModule.h"
#include "core/ShadowApplication.h"
#include "vlkx/vulkan/VulkanManager.h"
extern "C" __declspec(dllexport) void shadow_main(ShadowEngine::ShadowApplication* app) {
std::cout << "HIIII from a loaded dll weeeeeee!!!" << std::endl;
app->GetModuleManager().PushModule(std::make_shared<GameModule>(), "game");
if(app == &ShadowEngine::ShadowApplication::Get()){
std::cout << "They are the same!!!" << std::endl;
}
printf("dll side: %p \n", VulkanManager::getInstance());
printf("dll next ID: %llu \n", ShadowEngine::SHObject::GenerateId());
}