?OpenGL?

BlitzMax Forums/BlitzMax Programming/?OpenGL?

Odds On(Posted 2007) [#1]
I know you can use ?Win32 etc to determine which platform your code is running on, but are there similar directives for checking if OpenGL or DirectX is being used?

Thanks,
Chris


grable(Posted 2007) [#2]
No, as ?Defines are worked out at compile time.

Im guessing you want this for some library your making?
If so, just require the programmer to set a flag or something.


GfK(Posted 2007) [#3]
What Grable said.

You can switch between OpenGL and DirectX at runtime, so using a compiler directive isn't really a workable option.


Sanctus(Posted 2007) [#4]
Hm... these things are like
#ifndef _name
#define _name

#endif

on c++?


grable(Posted 2007) [#5]
Yeah, except they are all compiler defined so you cant make your own :/


Sanctus(Posted 2007) [#6]
Ah damn...