feat: dynamic library support

This commit is contained in:
2025-10-16 20:20:12 +02:00
parent faf9b67222
commit 472cc6b147
13 changed files with 42 additions and 14 deletions

View File

@ -8,8 +8,9 @@
#include "engine/window/events/window.h"
#include "engine/app/app.h"
#include "engine/export.h"
class Engine {
class ENGINE_API Engine {
public:
static void Run(std::unique_ptr<IApplication> app);
private:

View File

@ -5,9 +5,10 @@
#include <entt/entity/registry.hpp>
#include "engine/renderer/shader.h"
#include "engine/export.h"
// TODO: make static or singleton
class Renderer {
class ENGINE_API Renderer {
public:
Renderer(entt::registry& registry);

View File

@ -5,7 +5,9 @@
#include <glm/glm.hpp>
class Shader
#include "engine/export.h"
class ENGINE_API Shader
{
public:
Shader();

View File

@ -12,10 +12,12 @@
#include "engine/renderer/material.h"
#include "engine/renderer/mesh.h"
#include "engine/export.h"
enum ObjElement { OHASH, MTLLIB, USEMTL, O, V, VN, VT, F, OUNKNOWN };
enum MtlElement { MHASH, NEWMTL, NS, KA, KS, KD, NI, D, ILLUM, MAP_KD, MAP_KA, MUNKNOWN };
class Object {
class ENGINE_API Object {
friend class Renderer;
private:
static inline int NormalizeIndex(int idx, int baseCount);