Page 1 of 1

@Fred: v4 Sprite2D und 3D question...

Posted: Sat Nov 19, 2005 7:54 pm
by va!n
hello fred!
just a small question about v4... afaik you may think about an option to select between using DX7,DX8,DX9,OGL...!? If so, you dont must comment it... i am still patienced to see the final and its results :wink:

But if you want add something like this, it would be nice when the user dont must compile a DX7 only, a DX9 only, an OGL only version for example... What about adding a command instead slecting by the compiler options what engine the user want to use? For example it could looks something like:

Code: Select all

InitDrawingEngine(#PB_DX7|#PB_DX9|#PB_OGL)  ; Including Engine routines to exe...
UseDrawingEngine(#PB_DX9)   ; Init the defined engine at progstart... 

If the coder add this three flags for example, the engine for DX7 based, DX9 based and OGL based drawing options will be added/included to the exe... So you can code a game or demo and the user can select between DX7,DX9,OGL for example instead having for each version an standalone executeable!? Hope you guys got the point of this idea!? ;)

Anyway keep on your nice work and stay cool...
regards...

Posted: Sat Nov 19, 2005 8:49 pm
by Polo
What you're suggested is good, but Fred told us, I think, that it will be an option we would choose with the compiler, and so only one rendering engine by exe.

Posted: Sat Nov 19, 2005 9:01 pm
by Fred
Exactly. You can still write a front end to selected which exe to launch, i don't think it's really problematic. Another problem of virtual stuff like that is each call will be from a function pointer instead of direct call, so for every game related function you will have a small hit, which is not really good when performance is a must have.

Posted: Sat Nov 19, 2005 9:16 pm
by va!n
@fred:
i agree with you... your solution is the best way... you are doing a great job! keep it on ...

Posted: Sun Nov 20, 2005 2:04 am
by Brice Manuel
I agree with Fred. :D