I have just written a small plugin.
Nothing special but it works. So you can get additional version information of the GL context.
Here the command list:
string GetVersion()
int GetMajorVersion()
int GetMinorVersion()
string GetExtension(index)
int GetExtensionCount()
string GetRenderer()
string GetSLVersion(index)
string GetSLVersion()
int GetSLVersionCount()
string GetVendor()
May be extended
and a smal example.
// Project: GLInfo
// Created: 2017-04-02
#import_plugin GLInfo As gl
// show all errors
SetErrorMode(2)
// set window properties
SetWindowTitle( "GLExtension" )
SetWindowSize( 1024, 768, 0 )
SetWindowAllowResize( 1 ) // allow the user to resize the window
// set display properties
SetVirtualResolution( 1024, 768 ) // doesn't have to match the window
SetOrientationAllowed( 1, 1, 1, 1 ) // allow both portrait and landscape on mobile devices
SetSyncRate( 30, 0 ) // 30fps instead of 60 to save battery
SetScissor( 0,0,0,0 ) // use the maximum available screen space, no black borders
UseNewDefaultFonts( 1 ) // since version 2.0.22 we can use nicer default fonts
gl.Init()
Print(gl.GetVersion())
Print("Major: " +Str(gl.GetMajorVersion()))
Print("Minor: " +Str(gl.GetMinorVersion()))
Print("Vendor: " +gl.GetVendor())
Print("Renderer: " +gl.GetRenderer())
Print("SL-Version: " +gl.GetSLVersion())
print("campatible sl-versions ---------------")
count As Integer
count = gl.GetSLVersionCount()
print("Num compatible SL-Vesions: " +str(count))
for i=0 To count-1
Print(gl.GetSLVersion(i))
next
print("--------------------------------------")
sync()
sleep(10000)
do
Print( ScreenFPS() )
Sync()
loop
[2017-05-19]
FIX - Corrected string handling.
FIX - Unused agk commands removed. (smaller library)
ADD - Linux64.so now it should work under linux.
Maybe someone can use it.
Extract the file in the plugin folder of the compiler.