DirectX7(B3D) and OpenGL(MiniB3D)

BlitzMax Forums/BlitzMax Beginners Area/DirectX7(B3D) and OpenGL(MiniB3D)

BLaBZ(Posted 2010) [#1]
How would you go about implementing the proper API depending on the OS being used?


plash(Posted 2010) [#2]
Who says OpenGL isn't a proper API for Windows?


Czar Flavius(Posted 2010) [#3]
The Windows computers that fail at OpenGL? Not saying it's OpenGL's fault..


Brucey(Posted 2010) [#4]
And then of course there are the Windows computers which fail with B3D+DX7...

Ack!


ziggy(Posted 2010) [#5]
And I'm pretty sure that there are some computers with integrated cards like some VIA cards) that fail in both... (well those cards fail in everything that requieres hardware acceleration as far as I know).


BLaBZ(Posted 2010) [#6]
haha okay okay let me rephrase the question,

Should I use DirectX7(B3D) on Windows machines and OpenGL(MiniB3D) on Mac and Linux or just use OpenGL for all?

I've noticed some people prefer to use Dx7 for Windows over OpenGL, just wondering why? Especially considering that Windows has support for both


_Skully(Posted 2010) [#7]
I'd go OpenGL initially unless your specific computer sucks at it... the vast majority of computers run it fine and if you want cross platform... thats the one!

However, its not that hard to support both DX9 and OpenGL with a simple switch in Max


BLaBZ(Posted 2010) [#8]
DX9? What "engine" would that use?


SLotman(Posted 2010) [#9]
Forget DX7.

Have a look at those to see how bad it is:

http://www.blitzbasic.com/Community/posts.php?topic=88702
http://www.blitzbasic.com/Community/posts.php?topic=88984
http://www.blitzbasic.com/Community/posts.php?topic=88837

With latest nVidia drivers (most reports I got are from geforce 8800), B3D became very unstable, specially on Windows 7 (on 64 bits at least, don't know 32bits). It looks like it's a problem with sprites parented or with entityorder.

You'll get a much better stability with miniB3D + bMax... haven't seen it crash on any computer so far.