ronag
ronag

Reputation: 51255

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.

Upvotes: 2

Views: 221

Answers (1)

const_ref
const_ref

Reputation: 4096

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

Upvotes: 1

Related Questions