engine within the project

Post your questions, suggestions and experiences regarding game design, integration of external libraries here. For irrEdit, irrXML and irrKlang, see the
ambiera forums
Post Reply
omar shaaban
Posts: 616
Joined: Wed Nov 01, 2006 6:26 pm
Location: Cairo,Egypt
Contact:

engine within the project

Post by omar shaaban »

i looked up on some opengl tutorials and it seems good and easy,
but do i have first to make my engine in opengl then use it to do my project or just have the project(game for example) and the opengl engine (classes and functions) in the same application
because honestly i know how to make an engine (classes) but dont know how to export it into a .dll and a .lib like irrlicht!
DeM0nFiRe
Posts: 117
Joined: Thu Oct 16, 2008 11:59 pm

Post by DeM0nFiRe »

You could do either. Irrlicht is designed to be especially plug n' play so it can be used as a dynamic library, however if you ware making an engine for your own use, having the engine sources with the project sources isn't necessarily a bad thing. Just make sure you code cleanly so that if you need to reuse the engine, it won't be like surgery to separate the engine from the rest of it.
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

you can do it either way... ;)
either you put the engine code into the game project or make a separate project (dll) for the engine...

to build a dll you'll have to create a dll project with your IDE (e.g. in Code::Blocks you'll select the "Dynamic Link Library" project)...
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
omar shaaban
Posts: 616
Joined: Wed Nov 01, 2006 6:26 pm
Location: Cairo,Egypt
Contact:

Post by omar shaaban »

thats good ,ofcourse coding clean is a should
thanks
Post Reply