当前位置: 首页>>代码示例>>C++>>正文


C++ printGLError函数代码示例

本文整理汇总了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();
   }
 }
开发者ID:Zhentar,项目名称:Dwarf-Fortress--libgraphics-,代码行数:26,代码来源:renderer_opengl.cpp

示例2: glPushMatrix

void glPushMatrix()
{
  next_glPushMatrix();
  printGLError();

  gr_pushMatrix();

  debugPrint("glPushMatrix()\n");
}
开发者ID:kevinwall1992,项目名称:GLuRay,代码行数:9,代码来源:intercepts.c

示例3: glUseProgram

void glUseProgram(GLuint program)
{
  next_glUseProgram(program);
  printGLError();

  gr_useProgram(program);

  debugPrint("glUseProgram(program= %u)\n", program);
}
开发者ID:kevinwall1992,项目名称:GLuRay,代码行数:9,代码来源:intercepts.c

示例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);
}
开发者ID:kevinwall1992,项目名称:GLuRay,代码行数:9,代码来源:intercepts.c

示例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);
}
开发者ID:kevinwall1992,项目名称:GLuRay,代码行数:9,代码来源:intercepts.c

示例6: glEnableVertexAttribArray

void glEnableVertexAttribArray(GLuint index)
{
  next_glEnableVertexAttribArray(index);
  printGLError();

  gr_enableVertexAttributeArray(index);

  debugPrint("glEnableVertexAttribArray(index= %u)\n", index);
}
开发者ID:kevinwall1992,项目名称:GLuRay,代码行数:9,代码来源:intercepts.c

示例7: glCompileShader

void glCompileShader(GLuint shader)
{
  next_glCompileShader(shader);
  printGLError();

  gr_compileShader(shader);

  debugPrint("glCompileShader(shader= %u)\n", shader);
}
开发者ID:kevinwall1992,项目名称:GLuRay,代码行数:9,代码来源:intercepts.c

示例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);
}
开发者ID:kevinwall1992,项目名称:GLuRay,代码行数:9,代码来源:intercepts.c

示例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);
}
开发者ID:kevinwall1992,项目名称:GLuRay,代码行数:9,代码来源:intercepts.c

示例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);
}
开发者ID:kevinwall1992,项目名称:GLuRay,代码行数:9,代码来源:intercepts.c

示例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);
}
开发者ID:kevinwall1992,项目名称:GLuRay,代码行数:9,代码来源:intercepts.c

示例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);
}
开发者ID:kevinwall1992,项目名称:GLuRay,代码行数:9,代码来源:intercepts.c

示例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);
}
开发者ID:kevinwall1992,项目名称:GLuRay,代码行数:9,代码来源:intercepts.c

示例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);
}
开发者ID:kevinwall1992,项目名称:GLuRay,代码行数:9,代码来源:intercepts.c

示例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);
}
开发者ID:kevinwall1992,项目名称:GLuRay,代码行数:9,代码来源:intercepts.c


注:本文中的printGLError函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。