Syntax
Driver = GetGFXDriver()Description
Retrieves the currently active graphics rendering subsystem initialized by ProGUI.
Parameters
This command takes no parameters.
Return Value
Returns the constant representing the active graphics driver, such as
#PG_RenderDirect2D or #PG_RenderCairo. Returns
#PG_InvalidDriver if no driver is initialized.
Remarks
The active driver is generally determined automatically or specified when calling StartProGUI().
Example
IncludeFile "ProGUI_PB.pbi"
StartProGUI()
Select GetGFXDriver()
Case #PG_RenderDirect2D
Debug "Running on Direct2D!"
Case #PG_RenderCairo
Debug "Running on Cairo!"
Case #PG_InvalidDriver
Debug "No valid graphics driver found!"
EndSelect
StopProGUI()See Also
Supported OS
Windows, Linux