[GD-General] Modern engine design
Brought to you by:
vexxed72
From: CAVEY G. <GER...@sg...> - 2003-12-22 14:24:57
|
Hi there In your opinion what is the best scheme to use for a modern engine that supports shader ? In my first attempt i designed my engine as a static library in which i made a root object Application that contains different sub = systems.the user of the engine only had to override virtual sub systems methods to customize engine. Input , Graphics, Gui,etc... each one had basics functions = OnInit,Shutdown etc... during dev i realized that this was not the optimal architecture and = that i was about to have some communication problems between sub systems. Furthermore i realized i almost only used the Graphics sub system so i wondered "why several sub systems if almost everything is in one?". Another thing ; i denied to use linked list for example my model class = could have inheritance from linked list (since we know that new/delete during runtime is not good) but no i decided to use a simple array of models stored in Graphics system.This way when i manage my models no one knows nothing about the others .... = really bad. So my organization was a bit naive :D .If someone wants to share = his/her experience about this that would be nice. Regards GC ************************************************************************= * Ce message et toutes les pieces jointes (ci-apres le "message") sont confidentiels et etablis a l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisee est interdite.=20 Tout message electronique est susceptible d'alteration.=20 SG Asset Management et ses filiales declinent toute responsabilite au = titre de ce message s'il a ete altere, deforme ou falsifie. D=E9couvrez l'offre et les services de SG Asset Management sur le site www.sgam.fr=20 ******** This message and any attachments (the "message") are confidential and intended solely for the addressees. Any unauthorised use or dissemination is prohibited.=20 E-mails are susceptible to alteration. =20 Neither SG Asset Management nor any of its subsidiaries or affiliates = shall be liable for the message if altered, changed or falsified.=20 ************************************************************************= * |