Oops, forgot to update the link, e.g. the htm-files.
Will try to do it when I am back home.
Some thoughts:
I try to make this "main" class, <dgSDKApp>.
This object changes/sets the resolution, the windowtitle, the syncrate etc.
-example for setup the app with the "main"-class
CDaB_dgSDKApp IMyApp;
IMyApp.SetTitle ( 'TestApp' );
IMyApp.SetSize ( 1280, 1024 );
IMyApp.SetFullScreen ( true );
IMyApp.Create ( );
When you need, say, an image, you will get it from the singleton <dgSDKApp>-object. (needs some kind of manager)
-example:
dgImage* p_imgTempImage = IMyApp.ImageManager.GetNew ( );
p_imgTempImage ->"DoSomething"();
IMyApp.ImageManager.Release ( p_imgTempImage );
Also, the maincamera is an embedded object of the <dgSDKApp>-class ( aswell as the fog, mouse... )
ex.: IMyApp.IMainCamera.RotateX ( 1.0f );
Also, I've implemented an attribute <b_ExitCondition>.
Now, at the end of the mainloop,
I'll check this attribute and when
its == true then I do run the cleanup function and exit.
@Hobbs: Done.
Related:
(Mr.)Beavis is creating an OO wrapper too, here is the forum post:
http://forum.thegamecreators.com/?m=forum_view&t=50917&b=22
Greetings to all DarkGame and DarkBasic coders
![](/images/smilies/happy.gif)
Smithy / DaByte
//edit
content updated
[href]www.swissquake.ch/dmspry/other/framework/dgSDK Framework CppDoc.htm[/href]
//Pentium IV 3200E/Prescott; 800Mhz FSB; Hyperthreading; WinXP Pro (!XP2); ATI R9700PRO; 1024MB RAM (2x 512MB "DualChanneled"
![](/images/smilies/wink.gif)
; VC++ 6.0; Delphi; ADSL;