This topic is now archived and is closed to further replies.


Calling functions from modules...

Recommended Posts

Hey guys. I''m working on a game engine, and i''m going through different design ideas. I''m trying to create a modular structure for my engine so that different components of it, such as the renderer, sound handler and input handler etc. can be loaded on the fly without having to be included within the engine it''s self. I know how to load the modules, or in windows, the DLL files, but i''m having troubles with coming up with ways to interface the modules with the core engine, which loads them. What i would like to do is have a class which would act as the interface for the engine for all the different modules, but how could i use one class for different modules which have totally different functions? Is this possible? Is there a way to do this? Is this a bad idea..? I''m working in C++. If anyone could give me any tips of how i might be able to implement this modular design, i would be very greatful. Thanks! -Shane

Share this post

Link to post
Share on other sites