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!
engine within the project
-
- Posts: 616
- Joined: Wed Nov 01, 2006 6:26 pm
- Location: Cairo,Egypt
- Contact:
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.
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)...
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:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
-
- Posts: 616
- Joined: Wed Nov 01, 2006 6:26 pm
- Location: Cairo,Egypt
- Contact: