DLL Engine?
Ok, I asked a little while ago if anyone knew how to write a engine where all the major drawing functions where in the EXE and all the game code are in the DLL.
Someone suggested ''warping'' classes anyone know what he or she ment?
------------------------------------------------------------
I wrote the best video game ever, then I woke up...
------------------------------------------------------------I wrote the best video game ever, then I woke up...
If you take a look at one of the articles in the Resources section under Direct X (I think it is called Interfacing with DLL's), this explains how you can store classes in DLL's. This way, if you make your game routines encapsulated in a class, you can then store all your game code in a dll interfacing with it as the article describes. But this may not be what you really want to do.
IMO, it is better to build wrapper classes around your drawing functions and put those in a DLL and your game code in the EXE instead. This way, you can create re-usable code that can be included into any other project you make that uses the same features. This is currently what I am in the process of doing. I am making a game that will allow for the option of using Hardware acceleration (DX3D) or just plain software (DDRAW). By writing different DLL's each containing just the code for that renderer (ie softren.dll 3dren.dll) I can use these DLL's in any other project. By putting your game code in a DLL, you can't do that.
Kevin =)
-------------------------------------------------------
kevin@mayday-anime.com
http://www.dainteractiveonline.com
Edited by - grasshopa55 on December 15, 2000 9:16:29 AM
IMO, it is better to build wrapper classes around your drawing functions and put those in a DLL and your game code in the EXE instead. This way, you can create re-usable code that can be included into any other project you make that uses the same features. This is currently what I am in the process of doing. I am making a game that will allow for the option of using Hardware acceleration (DX3D) or just plain software (DDRAW). By writing different DLL's each containing just the code for that renderer (ie softren.dll 3dren.dll) I can use these DLL's in any other project. By putting your game code in a DLL, you can't do that.
Kevin =)
-------------------------------------------------------
kevin@mayday-anime.com
http://www.dainteractiveonline.com
Edited by - grasshopa55 on December 15, 2000 9:16:29 AM
-----------------------------kevin@mayday-anime.comhttp://www.mayday-anime.com
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement