How to call glGetString()?

BlitzMax Forums/OpenGL Module/How to call glGetString()?

JoshK(Posted 2006) [#1]
I know the function is returning a pointer to a string. How do I turn that into a string?

Local pointer : Byte Ptr

pointer=glGetString(GL_EXTENSIONS)
If pointer SUPPORT_GLEXTENSIONS$=What goes here?



N(Posted 2006) [#2]
SUPPORT_GLEXTENSONS$=String.FromCString( glGetString( GL_EXTENSIONS ) )

Also take a look at this