Determining Graphics Driver
BlitzMax Forums/BlitzMax Programming/Determining Graphics Driver
| ||
So, is this now the correct way to determine the graphcis driver in use?SuperStrict SetGraphicsDriver GLMax2DDriver() 'SetGraphicsDriver D3D7Max2DDriver() 'SetGraphicsDriver D3D9Max2DDriver() Local gd:TGraphicsDriver = GetGraphicsDriver() If TD3D9Max2DDriver(gd) DebugLog "9" ElseIf TD3D7Max2DDriver(gd) DebugLog "7" ElseIf TGLMax2DDriver(gd) DebugLog "GL" End If Is there a better way? |
| ||
|
| ||
LOL So, using GetGraphicsDriver() is the preferred way? And if so, how costly is that call? Would it be better to call it once and save in a variable? |