OpenGL错误码

简介: OpenGL错误码
错误码 说明 常见错误代码
0x0500-GL_INVALID_ENUM Given when an enumeration parameter is not a legal enumeration for that function. This is given only for local problems; if the spec allows the enumeration in certain circumstances, where other parameters or state dictate those circumstances, then GL_INVALID_OPERATION is the result instead. gl接口设置的的枚举类型异常
glPolygonMode(GL_FRONT, GL_LINEAR);
是GL_LINE,不是GL_LINEAR
0x0501
GL_INVALID_VALUE
Given when a value parameter is not a legal value for that function. This is only given for local problems; if the spec allows the value in certain circumstances, where other parameters or state dictate those circumstances, then GL_INVALID_OPERATION is the result instead. 数据不合法导致
glPointSize(0);
0x0502 GL_INVALID_OPERATION Given when the set of state for a command is not legal for the parameters given to that command. It is also given for commands where combinations of parameters define what the legal parameters are.



目录
相关文章
|
存储 缓存 API
十、OpenGL 纹理相关API
纹理是一种图形数据,主要用于在屏幕上包装不同的物体,就像新房装修,需要贴不同的墙纸,此时的墙纸就是我们所说的纹理。
144 0
十、OpenGL 纹理相关API
|
缓存 API
OpenGL纹理API简介
1. 读取文件;2. 载入纹理;3. 更新纹理;4. 插入替换纹理;5. 使用颜色缓存区加载数据, 形成新的纹理;
140 0
OpenGL纹理API简介
|
API 开发者
OpenGL ES Shader相关API 总结【0】——获取绘制信息
OpenGL ES Shader相关API 总结【0】——获取绘制信息
120 0
|
API C++ 异构计算
OpenGL ES Shader相关API 总结【1】——传入绘制信息
OpenGL ES Shader相关API 总结【1】——传入绘制信息
107 0
|
编译器 API 异构计算
OpenGL ES Shader相关API 总结【3】——绑定shader
OpenGL ES Shader相关API 总结【3】——绑定shader
129 0
|
C语言 Windows
|
编译器 图形学 Windows
VS2008配置opengl
感谢下面的博客 http://hi.baidu.com/amilipan/item/2add3df6a284b9d042c36ace   一、opengl简介       OpenGL(全写Open Graphics Library)是个定义了一个跨编程语言、跨平台的编程接口的规格,它用于三维图象(二维的亦可)。
993 0