![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
计算机图形学
巨阙_
没有
展开
-
第一次OpenGL
#include<GL/glut.h>#include<stdlib.h>void init(void){ glEnable(GL_DEPTH_TEST); GLfloat position[]={1.0,1.0,1.0,0.0}; glLightfv(GL_LIGHT0,GL_POSITION,position); glEnable(GL_LIGHTIN...原创 2018-03-13 11:46:30 · 230 阅读 · 0 评论 -
CodeBlocks配置OpenGL
首先下载Windows环境下的GLUT,链接:https://pan.baidu.com/s/1U43rth8-9W6AcP2zG3GFRw 密码:i2zu压缩包解压得到4个文件(glut.h, glut32.dll, libglut32.a,msvcr70.dll)以下的目录是我的,具体操作注意自己的安装目录1.把glut.h放到到 F:\Program Files\CodeBlocks\Min...原创 2018-03-23 09:22:54 · 2645 阅读 · 1 评论 -
实验2
#include<windows.h>#include<GL/glut.h>#include<algorithm>#include<wingdi.h>void Display(void){ glClearColor(0.0,0.0,0.0,0.0); glClear(GL_COLOR_BUFFER_BIT); glC...原创 2018-03-20 11:43:15 · 152 阅读 · 1 评论