feat: dynamic library support
This commit is contained in:
@ -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:
|
||||
|
||||
@ -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);
|
||||
|
||||
|
||||
@ -5,7 +5,9 @@
|
||||
|
||||
#include <glm/glm.hpp>
|
||||
|
||||
class Shader
|
||||
#include "engine/export.h"
|
||||
|
||||
class ENGINE_API Shader
|
||||
{
|
||||
public:
|
||||
Shader();
|
||||
|
||||
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user