- 博客(2)
- 收藏
- 关注
原创 三维房间设计
通过OpenGL来实现三维房间设计 代码如下 #include <stdlib.h> #include<stdio.h> #include<windows.h> #include <GL/glut.h> const GLdouble FRUSTDIM = 100.0f; GLfloat door = 0.0; GLfloat sticker = 45.0; GLfloat screen = 0.0; GLfloat arm = 20.0; GLfloat
2022-05-22 13:56:06
1947
4
原创 使用openGL实现抛物线
推导过程 结果 代码 #include <gl/glut.h> #include <math.h> // 初始化OpenGL场景 void Initial() { glClearColor(1.0f, 1.0f, 1.0f, 1.0f); //设置窗口背景颜色为白色 glMatrixMode(GL_PROJECTION); //设置投影参数 gluOrtho2D(-400.0, 400.0, -300.0, 300.0); // 投影面上的模型坐标范围 } /
2022-04-24 12:31:19
1329
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅