Default driver for Max2d
BlitzMax Forums/BlitzMax Beginners Area/Default driver for Max2d
| ||
What is the default driver for Max2D? Is it Direct3D or OpenGl? If it is openGL, how do I make it use the direct3D driver? |
| ||
I am not sure which one is the default one (I'd guess ogl), but you can explicitly set graphics driver by callingSetGraphicsDriver GLMax2DDriver()for openGL, or SetGraphicsDriver D3D7Max2DDriver()for directX. |
| ||
It's currently DirectX. |
| ||
And mac/linux use opengl. |
| ||
i thought it "defaulted" for each platform. on win32, directx. on mac/linux ... opengl. right ? |
| ||
i thought it "defaulted" for each platform. That's correct. on win32, directx. on mac/linux ... opengl. right ? |
| ||
Perfect. That's what I need. I'd rather use DirectX on Windows and of course OpenGL is the best (perhaps only?) option on Mac/Linux. |
| ||
Well I recommend allowing both on Windows, as there are quite a few machines that won't do DirectX (or will do it poorly) but will do OpenGL just fine. I know of at least two out of seven laptops that won't do DirectX. At all. Neither will almost all high-end workstations. Or servers. |
| ||
There is improved DX compatability testing in next release so that Windows machines that don't have hardware accelerated DX7 present will return a Null D3D7GraphicsDevice. Flameduck, there still may be some issues with machines using systemmemory for textures that could have affected your testing sofar also. |
| ||
Hi flameduck, yeah I can name at least a thousand laptops that won't do it - any old crippleware one that can't run anything really. Of course any laptop you buy these days will run everything max can do. Great stuff skid! can you confirm that there will be a check for openGL or shall I use the code we already went through on the other thread? Good work though, appreciate it. |
| ||
fish: Nope they won't as long as Intel Extreme and strange S3 are still built into anything that is named PC :) |