查询OpenGL状态变量
来源:互联网 发布:织梦 主页 编辑:程序博客网 时间:2024/06/16 09:59
OpenGL是一个状态机,有很多状态变量,在任何时候都可以系统查询每个状态变量的当前值。
比如我们可以通过
glGetString(GL_VERSION);
来查询版本字符串信息。
下面举几个小例子,分别获取版本号,厂商名,渲染器和得到支持的扩展
当然还有很多了,可以参考红宝书~~
输出如下:
2.1.1
NVIDIA Corporation
GeForce 8400 SE/PCI/SSE2/3DNOW!
GL_ARB_color_buffer_float GL_ARB_depth_texture GL_ARB_draw_buffers GL_ARB_fragment_program GL_ARB_fragment_program_shadow GL_ARB_fragment_shader GL_ARB_half_float_pixel GL_ARB_imaging GL_ARB_multisample GL_ARB_multitexture GL_ARB_occlusion_query GL_ARB_pixel_buffer_object GL_ARB_point_parameters GL_ARB_point_sprite GL_ARB_shadow GL_ARB_shader_objects GL_ARB_shading_language_100 GL_ARB_texture_border_clamp GL_ARB_texture_compression GL_ARB_texture_cube_map GL_ARB_texture_env_add GL_ARB_texture_env_combine GL_ARB_texture_env_dot3 GL_ARB_texture_float GL_ARB_texture_mirrored_repeat GL_ARB_texture_non_power_of_two GL_ARB_texture_rectangle GL_ARB_transpose_matrix GL_ARB_vertex_buffer_object GL_ARB_vertex_program GL_ARB_vertex_shader GL_ARB_window_pos GL_ATI_draw_buffers GL_ATI_texture_float GL_ATI_texture_mirror_once GL_S3_s3tc GL_EXT_texture_env_add GL_EXT_abgr GL_EXT_bgra GL_EXT_blend_color GL_EXT_blend_equation_separate GL_EXT_blend_func_separate GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_compiled_vertex
- 查询OpenGL状态变量
- 《高效学习OpenGL》之 openGL状态变量
- osg::stateattribute派生类速查,对应于OpenGL的状态变量
- MySQL状态变量
- 因为锁等待导致的慢查询不会改变状态变量slow_queries值
- OpenGL的状态查询
- OpenGL状态查询
- innodb相关的状态变量
- Select和Sort状态变量
- wincc 消息变量/状态变量
- innodb相关的状态变量
- Joomla如何使用状态变量
- OpenGL常见函数功能查询
- 查询本机OpenGL版本号
- MYSQL 状态变量性能调优
- MySQL 状态变量(Server Status Variables)
- simulink状态变量初值如何设定
- mysql应该关注的状态变量
- glReadPixels的使用问题
- android中的左右滑屏实现By ViewPager
- 去百度还是去创新工厂? 信开复还是信彦宏?
- MyBatis批量入库
- 【iOS-Cocos2d游戏开发】使用cocosBuiler制作cocos2d场景
- 查询OpenGL状态变量
- 常见设计模式的解析和实现(C++)之九-Decorator模式
- FL2440 开发板 更改1G Byte NAND FLASH
- 如何彻底删除sqlserver2005
- glReadPixels的使用问题之二
- MFC简介
- 对n个不同字母的全排列
- hdu 2243 考研路茫茫——单词情结
- 常见设计模式的解析和实现(C++)之十-Proxy模式