本文整理汇总了C++中printGLError函数的典型用法代码示例。如果您正苦于以下问题:C++ printGLError函数的具体用法?C++ printGLError怎么用?C++ printGLError使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了printGLError函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: draw
void draw(int dummy) {
if (tail > head) {
// We're straddling the end of the array, so have to do this in two steps
draw_arrays(vertexes + tail * 6 * 2,
fg + tail * 6 * 4,
bg + tail * 6 * 4,
tex + tail * 6 * 2,
buffersz - tail);
draw_arrays(vertexes, fg, bg, tex, head-1);
} else {
draw_arrays(vertexes + tail * 6 * 2,
fg + tail * 6 * 4,
bg + tail * 6 * 4,
tex + tail * 6 * 2,
sum_erasz);
}
printGLError();
erasz.push_back(current_erasz); current_erasz = 0;
if (erasz.size() == redraw_count) {
// Right, time to retire the oldest era.
tail = (tail + erasz.front()) % buffersz;
sum_erasz -= erasz.front();
erasz.pop_front();
}
}
示例2: glPushMatrix
void glPushMatrix()
{
next_glPushMatrix();
printGLError();
gr_pushMatrix();
debugPrint("glPushMatrix()\n");
}
示例3: glUseProgram
void glUseProgram(GLuint program)
{
next_glUseProgram(program);
printGLError();
gr_useProgram(program);
debugPrint("glUseProgram(program= %u)\n", program);
}
示例4: glUniform4fv
void glUniform4fv(GLint location, GLsizei count, const GLfloat* value)
{
next_glUniform4fv(location, count, value);
printGLError();
gr_uniform4fv(location, count, value);
debugPrint("glUniform4fv(location= %i, count= %u, value= %x)\n", location, count, value);
}
示例5: glColor3ubv
void glColor3ubv(const GLubyte* v)
{
next_glColor3ubv(v);
printGLError();
gr_setColorub(v[0], v[1], v[2], 255);
debugPrint("glColor3ubv(v= %x)\n", v);
}
示例6: glEnableVertexAttribArray
void glEnableVertexAttribArray(GLuint index)
{
next_glEnableVertexAttribArray(index);
printGLError();
gr_enableVertexAttributeArray(index);
debugPrint("glEnableVertexAttribArray(index= %u)\n", index);
}
示例7: glCompileShader
void glCompileShader(GLuint shader)
{
next_glCompileShader(shader);
printGLError();
gr_compileShader(shader);
debugPrint("glCompileShader(shader= %u)\n", shader);
}
示例8: glAttachShader
void glAttachShader(GLuint program, GLuint shader)
{
next_glAttachShader(program, shader);
printGLError();
gr_attachShader(program, shader);
debugPrint("glAttachShader(program= %u, shader= %u)\n", program, shader);
}
示例9: glTranslated
void glTranslated(GLdouble x, GLdouble y, GLdouble z)
{
next_glTranslated(x, y, z);
printGLError();
gr_translate(x,y,z);
debugPrint("glTranslated(x= %f, y= %f, z= %f)\n", x, y, z);
}
示例10: glTexImage2D
void glTexImage2D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void * pixels)
{
next_glTexImage2D(target, level, internalformat, width, height, border, format, type, pixels);
printGLError();
gr_texImage2D(target, level, internalformat, width, height, border, format, type, pixels);
debugPrint("glTexImage2D(target= %s, level= %i, internalformat= %i, width= %u, height= %u, border= %i, format= %s, type= %s, pixels= %x)\n", getEnumString(target), level, internalformat, width, height, border, getEnumString(format), getEnumString(type), pixels);
}
示例11: glTexCoord2fv
void glTexCoord2fv(const GLfloat* v)
{
next_glTexCoord2fv(v);
printGLError();
gr_texCoord(v[0], v[1], 0.0);
debugPrint("glTexCoord2fv(v= %x)\n", v);
}
示例12: glScalef
void glScalef(GLfloat x, GLfloat y, GLfloat z)
{
next_glScalef(x, y, z);
printGLError();
gr_scale(x,y,z);
debugPrint("glScalef(x= %f, y= %f, z= %f)\n", x, y, z);
}
示例13: glScaled
void glScaled(GLdouble x, GLdouble y, GLdouble z)
{
next_glScaled(x, y, z);
printGLError();
gr_scale(x,y,z);
debugPrint("glScaled(x= %f, y= %f, z= %f)\n", x, y, z);
}
示例14: glRotatef
void glRotatef(GLfloat angle, GLfloat x, GLfloat y, GLfloat z)
{
next_glRotatef(angle, x, y, z);
printGLError();
gr_rotate(angle,x,y,z);
debugPrint("glRotatef(angle= %f, x= %f, y= %f, z= %f)\n", angle, x, y, z);
}
示例15: glRotated
void glRotated(GLdouble angle, GLdouble x, GLdouble y, GLdouble z)
{
next_glRotated(angle, x, y, z);
printGLError();
gr_rotate(angle,x,y,z);
debugPrint("glRotated(angle= %f, x= %f, y= %f, z= %f)\n", angle, x, y, z);
}