To know if you use hardware or generic renderer in OpenGL
2006-01-31 15:35
701 查看
If you put this code in your init routine, you'll be able to know what you're really using in OpenGL
char *r = (char *)glGetString(GL_RENDERER);
char *v = (char *)glGetString(GL_VENDOR);
char *ver = (char *)glGetString(GL_VERSION);
char *ext = (char*)glGetString(GL_EXTENSIONS);
Then you run in debug mode and put a break point in front of the first line. A few step latter, you'll be able to know if you use hardware or generic renderer.
http://www.opengl.org/discussion_boards/cgi_directory/ultimatebb.cgi?ubb=get_topic;f=2;t=000451
char *r = (char *)glGetString(GL_RENDERER);
char *v = (char *)glGetString(GL_VENDOR);
char *ver = (char *)glGetString(GL_VERSION);
char *ext = (char*)glGetString(GL_EXTENSIONS);
Then you run in debug mode and put a break point in front of the first line. A few step latter, you'll be able to know if you use hardware or generic renderer.
http://www.opengl.org/discussion_boards/cgi_directory/ultimatebb.cgi?ubb=get_topic;f=2;t=000451
相关文章推荐
- This function has none of Deterministic,no sql,or reads sql data in its declaration and binary logging is enabled(you *might* want to use the less safe log_bin_trust_function_creators variable
- 使用cocapods报错 [!] Your Podfile has had smart quotes sanitised. To avoid issues in the future, you should not use TextEdit for editing it. If you are not using TextEdit, you should turn off smart quotes
- requests模块报错:Use body.encode('utf-8') if you want to send it encoded in UTF-8.
- eclipse创建Adnroid虚拟机提示:XXXX目录.avd is in the way. Use --force if you want to overwrite.
- socket 关闭但端口占用问题 Bind: Address Already in Use Or How to Avoid this Error when Closing TCP Connections
- When to use Delegation, Notification, or Observation in iOS
- In C how do you redirect stdin/stdout/stderr to files when making an execvp() or similar call?
- Use View.isInEditMode() in your custom views to skip code or show sample data when shown in the IDE
- java.lang.IllegalArgumentException: You need to use a Theme.AppCompat theme (or descendant) with the
- you need to use a Theme.AppCompat theme(or descenbant) with this activity
- PRB: ThreadAbortException Occurs If You Use Response.End, Response.Redirect, or Server.Transfer
- 关于“you need to use a theme.appcompat theme (or descendant) with this activity”错误
- java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this a
- Do you want to know me?----Come in.
- You need to use a Theme.AppCompat theme (or descendant) with this activity
- Did you know... You can use '*' to Expand All and '/' to Collapse All in the Toolbox
- If you whant to download SIS, JAR and JAD file from WAP you have to upload file (in the same catalog) with this: [小糊涂的灵感]
- If you are behind an HTTP proxy, please configure the proxy settings either in IDE or Gradle.(AS报错)
- Something you need to know about Content Deployment in SharePoint
- You need to use a Theme.AppCompat theme (or descendant) with this activity.