Hi
I''m writing my first "proper" 3D game engine now ( although I say that on every one usually, until it gets too hard
) but I have a question about engine archiecture, because I doubt that mine is set out anywhere as near as it could potentially be.
Here is a quick view of my engine:
*WinMain* creates
*CApplication* creates
*CEngine* calls (every frame)
*CIntro,CMenu,CGame,COutro*
Or here''s a diagram I made up for myself, might be easier to understand?
WinMain (winmain.cpp)
|
\|/ calls
CApplication::EntryPoint (application.cpp)
| | |
\|/ calls \|/ calls \|/ calls
CEngine::Create CEngine::Frame CEngine::Destroy (engine.cpp)
| | -(same, calls ::Destroy funcs)
| |
+--|----------+-+--------+--------------+ }
| calls | calls | calls | calls } called by
\|/ | \|/ \|/ \|/ } CEngine::
CIntro::Frame CMenu::Frame CGame::Frame COutro::Frame } Frame
|
|
+-------+------+------------+----------------+ }
| calls | calls | calls | calls } called by
\|/ \|/ \|/ \|/ } CEngine::
CIntro::Create CMenu::Create CGame::Create COutro::Create } Create
(intro.cpp) (menu.cpp) (game.cpp) (outro.cpp)
Maybe not.
Please tell me what you think?
Thanks