简体   繁体   中英

How check if the current OpenGL context runs on a Geforce card?

How can I check whether an OpenGL context runs on a Geforce card? I need to run differnt code depending on whether it is running on a Geforce card, Quadro or AMD card and need a way to detect this.

I think this solution may be suitable

http://www.opengl.org/sdk/docs/man/xhtml/glGetString.xml

You can use this to return the vender and version. Im not sure if each card is explicitly different with OpenGL or if a certain version by each vender is all you will need

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM