C 言語関数:glGetString サンプルコード

サンプルコードを検索した結果です。


TITLE : Technical Note TN2080: Understanding and Detecting OpenGL Functionality
const GLubyte * strVersion = glGetString(GL_VERSION); // get version string.......
http://developer.apple.com/library/content/technotes/tn2080/_index.html


TITLE : opengl - Why does glGetString returns a NULL string - Game Development Stack Exchange
I googled this error and found out that we have to initialize the OpenGL context before calling glGetString(). Although I have initialized OpenGL context using glfwInit() but still the function returns a NULL string. Any ideas?.......
http://gamedev.stackexchange.com/questions/49478/why-does-glgetstring-returns-a-null-string
TITLE : glfw opengl sample program 揃 GitHub
// cout << "default shader lang: " << glGetString(GL_SHADING_LANGUAGE_VERSION) << endl;.......
http://gist.github.com/victusfate/9214902
TITLE : glfw opengl sample program 揃 GitHub
cout << "OpenGL shader language version: " << glGetString(GL_SHADING_LANGUAGE_VERSION) << endl;.......
http://gist.github.com/victusfate/9214902
TITLE : glGetString function (Windows)
const GLubyte* WINAPI glGetString(.......
http://msdn.microsoft.com/ja-jp/library/windows/desktop/dd373553(v=vs.85).aspx
Googleで検索

https://www.google.co.jp/#q=glGetString