Is Opengl Development GPU Dependant?

后端 未结 5 2075
执念已碎
执念已碎 2020-12-09 23:12

I am developing an android application in opengl ES2.0.In this Application I used to draw multiple lines and circles by touch event in GL surfaceView.

As opengl depen

5条回答
  •  忘掉有多难
    2020-12-09 23:44

    OpenGL is just a standard. The actual implementation of the API is up to the graphics card manufacturer. So yes, OpenGL development can be GPU dependant sometimes. However, all implementations should provide the same result (what happens behind the scenes can be really different). If your code gives a different result with different GPUs, there is probably a version difference in the OpenGL implementation.

    You can use these functions to get the supported OpenGL version:

    glGetIntegerv​(GL_MAJOR_VERSION​, *); //version 3.0+
    glGetIntegerv​(GL_MINOR_VERSION​, *); //version 3.0+
    glGetString​(GL_VERSION​); //all versions
    

提交回复
热议问题