OpenGL_ES- 状态查询

一: 查询关于OpenGL2.0实现信息:

1: 原型: const GLubyte* glGetString(GLenum name)

参数: GL_VENDOR, GL_RENDERER, GL_VERSION;

二: 查询关于OpenGL2.0实现依赖限制:

1:原型: void glGetBooleanv(GLenum pname, GLboolean* params)

2: 原型:void glGetFloatv(GLenum pname, GLfloat* params)

3: 原型: void glGetIntegerv(GLenum pname, GLint* params)

参数:  GL_VIEWPORT,GL_DEPTH_RANGE,GL_LINE_WIDTH,GL_CULL_FACE_MODE,GL_FRONT_FACE,GL_POLYGON_OFFSET_FACTOR,GL_POLYGON_OFFSET_UNITS,GL_SAMPLE_COVERAGE_VALUE,GL_SAMPLE_COVERAGE_INVERT,GL_COLOR_WRITEMASK,GL_DEPTH_WRITEMASK,GL_STENCIL_WRITEMASK,GL_STENCIL_BACK_WRITEMASK,GL_COLOR_CLEAR_VALUE,GL_DEPTH_CLEAR_VALUE,GL_STENCIL_CLEAR_VALUE,GL_SUBPIXEL_BITS,GL_MAX_TEXTURE_SIZE,GL_MAX_CUB_MAP_TEXTURE_SIZE,GL_MAX_VIEWPORT_DIMS,GL_ALIASED_POINT_SIZE_RANGE,GL_ALIASED_LINE_WIDTH_RANGE,GL_NUM_COMPRESSED_TEXTURE_FORMATS,GL_COMPRESSED_TEXTURE_FORMATS,GL_RED_BITS,GL_GREEN_BITS,GL_BLUE_BITS,GL_ALPHA_BITS,GL_DEPTH_BITS,GL_STENCIL_BITS,GL_IMPLEMENTATION_READ_TYPE,GL_IMPLEMENTATION_READ_FORMAT。

三: 查询关于OpenGL2.0内部状态信息:

1:原型: void glGetBooleanv(GLenum pname, GLboolean* params)

2: 原型:void glGetFloatv(GLenum pname, GLfloat* params)

3: 原型: void glGetIntegerv(GLenum pname, GLint* params)

参数:

GL_ARRAY_BUFFER_BINDING,GL_ELEMENT_ARRAY_BUFFER_BINDING,GL_CULL_FACE_MODE,GL_FRONT_FACE,GL_SAMPLE_COVERAGE_VALUE,GL_SAMPLE_COVERAGE_INVERT,GL_TEXTURE_BINDING_2D,GL_TEXTURE_BINDING_CUBE_MAP,GL_ACTIVE_TEXTURE,GL_COLOR_WRITEMASK,GL_DEPTH_WRITEMASK,GL_STENCIL_WRITEMASK,GL_STENCIL_BACK_WRITEMASK,GL_COLOR_CLEAR_VALUE,GL_DEPTH_CLEAR_VALUE,GL_STENCIL_CLEAR_VALUE,GL_SCISSOR_BOX,GL_STENCIL_FUNC,GL_STENCIL_VALUE_MASK,GL_STENCIL_REF,GL_STENCIL_FAIL,GL_STENCIL_PASS_DEPTH_FAIL,GL_STENCIL_PASS_DEPTH_PASS,GL_STENCIL_BACK_FUNC,GL_STENCIL_BACK_VALUE_MASK,GL_STENCIL_BACK_REF,GL_STENCIL_BACK_FAIL,GL_STENCIL_BACK_PASS_DEPTH_FAIL,GL_STENCIL_BACK_PASS_DEPTH_PASS,GL_DEPTH_FUNC,GL_BLEND_SRC_RGB,GL_BLEND_SRC_ALPHA,GL_BLEND_DST_RGB,GL_BLEND_DST_ALPHA,GL_BLEND_EQUATION,GL_BLEND_EQUATION_RGB,GL_BLEND_EQUATION_ALPHA,GL_BLEND_COLOR,GL_UNPACK_ALIGNMENT,GL_PACK_ALIGNMENT,GL_CURRENT_PROGRAM,GL_RENDERBUFFER_BINDING,GL_FRAMEBUFFER_BINDING。

四: 设置OpenGL2.0的建议(HINT)

原型:void glHint(GLenum target, GLenum mode)

参数target :GL_GENERATE_MIPMAP_HINT, GL_FRAGMENT_SHADER_DERIVATIVE_HINT_OES

参数mode: GL_FASTEST, GL_DONT_CARE

五: 查询和判断OpenGL2.0中的实体对象名称:

1: GLboolean  glIsTexture(GLuint texture)

2: GLboolean  glIsShader(GLuint shader)

3: GLboolean  glIsProgram(GLuint program)

4: GLboolean  glIsBuffer(GLuint buffer)

5: GLboolean  glIsRenderbuffer(GLuint renderbuffer)

6: GLboolean  glIsFramebuffer(GLunit framebuffer)

六: OpenGL2.0中的控制操作

1: void glEnable(GLenum capability)

2: void glDisable(GLenum capability)

3: GLboolean glIsEnabled(GLenum capability)

参数: GL_CULL_FACE, GL_POLYGON_OFFSET_FILL, GL_SCISSOR_TEST, GL_SAMPLE_COVERAGE, GL_SAMPLE_COVERAGE_TO_ALPHA, GL_STENCIL_TEST, GL_DEPTH_TEST, GL_BLEND, GL_DITHER。

七: 着色七状态查询:

1: void glGetAttachedShaders(GLuint program, GLsizei maxcount, GLsizei *count, GLuint *shaders)

2: void glGetShaderSource(GLuint shader, GLsizei bufsize, GLsizei *length, GLchar *source)

3:  void glGetUniformfv(GLuint program, GLint location, GLfloat *params)

4 : GLuint program, GLint location,GLint *params)

5: void glGetShaderPrecisionFormat(GLenum shaderType, GLenum precisionType, GLint *range, GLint *precision)

八: 顶点属性查询:

1: void glGetVertexAttribPointerv(GLuint index, GLenum pname, GLvoid** pointer)

2: void glGetVertexAttribfv(GLuint index, GLenum pname, GLfloat* params)

3: void glGetVertexAttribiv(GLuint index, GLenum pname, GLint* params)

参数pname: GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING ,   GL_VERTEX_ATTRIB_ARRAY_ENABLED ,  GL_VERTEX_ATTRIB_ARRAY_SIZE , GL_VERTEX_ATTRIB_ARRAY_STRIDE , GL_VERTEX_ATTRIB_ARRAY_TYPE , GL_VERTEX_ATTRIB_ARRAY_NORMALIZED , or GL_CURRENT_VERTEX_ATTRIB

GL_CURRENT_VERTEX_ATTRIB

九: 纹理状态查询:

1:void glGetTexParameterfv(GLenum target, GLenum pname, GLfloat* params )

2: void glGetTexParameteriv(GLenum target, GLenum pname, GLint* params)

参数target: GL_TEXTURE_2D or GL_TEXTURE_CUBE_MAP

参数pname: GL_TEXTURE_MINIFICATION_FILTER ,GL_TEXTURE_MAGNIFICATION_FILTER , GL_TEXTURE_WRAP_S , or GL_TEXTURE_WRAP_T

十: 缓冲区状态查询:

1: void glGetBufferParameteriv(GLenum target, GLenum pname, GLint* params)

2: void glGetBufferPointervOES(GLenum target, GLenum pname, void** params)

3: void glGetRenderbufferParameteriv(GLenum target, GLenum pname, GLint* params)

4: void glGetFramebufferAttachmentParameteriv(GLenum target, GLenum attachment, GLenum pname, GLint* params)

时间: 2024-10-15 01:06:46

OpenGL_ES- 状态查询的相关文章

xp_cmdshell 命令的开启与关闭,和状态查询

/* EXEC sp_configure ‘allow updates’, 0 RECONFIGURE */ -- 启用: exec sp_configure 'show advanced options',1 reconfigure exec sp_configure 'xp_cmdshell',1 reconfigure --关闭: exec sp_configure 'xp_cmdshell',0 reconfigure exec sp_configure 'show advanced o

memcached分布式缓存服务器学习总结(二)memcached状态查询

linux memcached状态查询如何查看memcached服务器端版本: ./memcached -h memcached的运行状态可以方便的用 stats 命令显示. 首先用telnet 127.0.0.1 11211这样的命令连接上memcache,然后直接输入stats就可以得到当前memcache的状态. 这些状态的说明如下: pid memcache服务器的进程IDuptime 服务器已经运行的秒数time 服务器当前的unix时间戳version memcache版本point

java基础:学员状态查询

1 package kaoshi; 2 /* 3 * 学员状态查询 4 * @作者:向往的生活 5 * @时间:2017.3.7 6 */ 7 import java.util.Scanner; 8 9 public class StudentState { 10 public static void main(String[] args) { 11 boolean flag=false; 12 while(true){ 13 Scanner scan=new Scanner(System.in

Oracle数据库的状态查询

1 状态查询 启动状态 SQL语句 结果 nomount select status from v$instance; STARTED select open_mode from v$database; ERROR at line 1: ORA-01507: database not mounted mount select status from v$instance; MOUNTED select open_mode from v$database; MOUNTED open select

C#实现盛大盛付通充值卡状态查询

今天有这样一需求,要求能够查询盛付通卡的状态,官网如下 http://www.801335.com/status/index.htm 刚一打开网址,发现两个输入框加一个验证码,心中一喜不是小  case 验证码没有粘贴也没怎么变形手到擒来,三五两下识别做完了  正确率还不错,90+%.. 验证码做发了,开始抓包,一下就懵了,发现他的数据好像被加密了,先上一张图 回过头来后,仔细看了下他的界面,发现了猫腻,他卡号和密码输入的地方是 flash  UesTextInput-1.4.swf 文件名是这

oracle 用户状态查询

#切换到Oracle用户su - oracle #登录sqlplussqlplus / as sysdba #设置显示格式set pagesize 300;set linesize 300; #查询用户列表及用户状态select USERNAME,password,ACCOUNT_STATUS from dba_users; #查看用户分配的权限 select * from dba_role_privs order by GRANTEE; select * from dba_role_privs

MongoDB状态查询:db.serverStatus()

参见:http://www.2cto.com/database/201501/370191.html 基本信息 spock:PRIMARY>db.serverStatus() { "host" :"h6.corp.yongche.org", //主机名 "version" :"2.6.2", //mongodb版本 "process" :"mongod", //mongodb进程,

谁锁了我的帐号?(AD账号的锁定状态查询)

随着微软基础架构的深入普及和各个企业对信息化建设的重视,在微软产品日益成熟的今天,域环境的应用也越来越广泛.都会接触到很多应用产品.无论是微软系列的产品本身,或者是现在的很多第三方应用,我们都希望能基于员工的域账号做一个统一的身份验证,从而严格控制微软平台上各个应用的访问权限的安全.因此,域账号的验证机制就体现得格外重要. 无论是在甲方公司日常的运维中,还是在乙方公司大大小小的项目中,会有企业的员工反映,自己唯一的域账号时常被锁,或者时常弹出对话框,请求用户输入密码确认.这样就会导致用户无法打开

MongoDB状态查询详解:db.serverStatus()

基本信息 spock:PRIMARY>db.serverStatus() { "host" :"h6.corp.yongche.org",   //主机名 "version" :"2.6.2",            //mongodb版本 "process" :"mongod",        //mongodb进程,主要有mongod和mongos(分片集群中)两种 "

linux连接状态查询

1.Apache并发数 netstat -an | grep ESTABLISHED | wc -l 2.Apache并发数及tcp链接状态 netstat -n | awk '/^tcp/ {++S[$NF]} END {for(a in S) print a, S[a]}' 3.apache的工作模式 apachectl -l 4.