?OpenGL?
BlitzMax Forums/BlitzMax Programming/?OpenGL?
| ||
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 |
| ||
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. |
| ||
What Grable said. You can switch between OpenGL and DirectX at runtime, so using a compiler directive isn't really a workable option. |
| ||
Hm... these things are like #ifndef _name #define _name #endif on c++? |
| ||
Yeah, except they are all compiler defined so you cant make your own :/ |
| ||
Ah damn... |