opengl新手,按照网上的方法,写的glut测试,会报下面的错误,高手帮忙看下是什么问题?

tvrcaiyy2008 2016-06-16 04:04:04
配置什么的都没问题,有成功运行过另一个例子

#include <GL/glut.h>

void renderScene(void) {
glClear(GL_COLOR_BUFFER_BIT);
glBegin(GL_TRIANGLES);
glVertex3f(-0.5,-0.5,0.0);
glVertex3f(0.5,0.0,0.0);
glVertex3f(0.0,0.5,0.0);
glEnd();
glFlush();
}

void main(int argc, char **argv) {
glutInit(&argc, argv);
glutInitDisplayMode(GLUT_DEPTH | GLUT_SINGLE | GLUT_RGBA);
glutInitWindowPosition(100,100);
glutInitWindowSize(320,320);
glutCreateWindow("3D Tech- GLUT Tutorial");
glutDisplayFunc(renderScene);
glutMainLoop();
}

...全文
102 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
tvrcaiyy2008 2016-06-16
  • 打赏
  • 举报
回复
谢谢大家,可以了
schlafenhamster 2016-06-16
  • 打赏
  • 举报
回复
不必使用 ““libegl.dll” What is libegl.dll? libegl.dll is part of SwiftShader libEGL Dynamic Link Library according to the libegl.dll version information. libegl.dll's description is "SwiftShader libEGL Dynamic Link Library" libegl.dll is usually located in the 'C:\Users\James\AppData\Local\Google\Chrome\User Data\SwiftShader\1.0.0.2\' folder. Some of the anti-virus scanners at VirusTotal detected libegl.dll. If you have additional information about the file, please share it with the FreeFixer users by posting a comment at the bottom of this page.
tvrcaiyy2008 2016-06-16
  • 打赏
  • 举报
回复

单步调试不了
用的是vs2012
schlafenhamster 2016-06-16
  • 打赏
  • 举报
回复
vc6 win7 上 没问题
Eleven 2016-06-16
  • 打赏
  • 举报
回复
自己Debug模式下单步执行一下看看,哪个函数调用失败返回了?

19,468

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 图形处理/算法
社区管理员
  • 图形处理/算法社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧