![]() The rest is easy (using gl_init,gl_exit from second link): gl_init(Your_App_Window_Handle) Ĭhar *vendor =(char*)glGetString(GL_VENDOR) Ĭhar *device =(char*)glGetString(GL_RENDERER) Ĭhar *version=(char*)glGetString(GL_VERSION) Ĭhar *ext =(char*)glGetString(GL_EXTENSIONS) GL_EXTENSIONS Returns a space-separated list of supported extensions to OpenGL (all capabilities of your card) GL_VERSION Returns a version or release number (of supported OpenGL and gfx driver version) ![]() It does not change from release to release. This name is typically specific to a particular configuration of a hardware platform. GL_RENDERER Returns the name of the renderer. This name does not change from release to release. You can use OpenGL function glGetString to obtain this info: GL_VENDOR Returns the company responsible for this OpenGL implementation. or: complete GL+VAO/VBO+GLSL+shaders example in C++.see: C++ example of OpenGL context initialization.It will work for any OpenGL capable graphic card/driver supporting OpenGL 1.0 which are all of the nowadays cards. obtain the appropriate vendor and device strings.Yes you can search registry keys for this info but that is not safe in the future due to possible location/name change. I would use OpenGL instead WinAPI for this because I do not know if WinAPI even has some feature like this and too lazy to research. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |