DLL engine – How to seperate game.exe from engine library’s .h files?

I’m in the process of learning how to move engine code to a DLL and have 2 or 3 simple games that can call into the DLL.

But I can’t figure out how to correctly separate a game.exe from having to know about the engine lib’s .hpp files.

Here is an example. The game engine will contain a Lua state. I named the main Lua class LuaEL for Lua Embedded Language. Here are the first few lines of the DLL’s LuaEL class. Notice it requires lua.hpp from the Lua library headers.

<code c

Published by CelleSports

CelleSports is a Game development, News outlet, and Social Cell community. Build your cells or teams for any game and start communicating efficiently. Join us in building the number one eSport and gaming community in the World. Join Cell eSports

Leave a comment