VS2017配置GLUT开发环境

最近需要做一个红外图像处理软件,在VS2017上使用OpenGL GLUT开发,采用Rapidcsv读取传递的CSV数据。具体代码如下:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
int main(int argc, char *argv[])
{
readCsvData();
glutInit(&argc, argv);
glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB | GLUT_DEPTH);
glutInitWindowSize(ImageWidth, ImageHeight);
glutInitWindowPosition(200, 200);
glutCreateWindow("InfraRedImage");
initCamera();
// 注册回调函数
glutDisplayFunc(sceneRender);
glutReshapeFunc(reshape);
glutKeyboardFunc(keyboard);
glutTimerFunc(1, update, 0);
glutMouseFunc(mouseClick);
glutMainLoop();
return 0;
}

参考链接

  1. 在Visual Studio 2017上配置Glut,by 凯鲁嘎吉.
  2. C++中创建二维数组的四种方法,by BQW_.
  3. Rapidcsv,by d99kris.
  4. bitmap,by ArashPartow.
  5. C++中4种方式把字符串和数字连接起来,by 帅东.
  6. string赋值操作,by zxy131072.
  7. Bitmap Fonts and Orthogonal Projections,by Lighthouse3d.
  8. C++11 std::to_string(double) - No trailing zeros,by stackoverflow.
  9. How to write openGl offscreen data in to JPG image,by codeproject.