摘要: #include "stdafx.h"#include void myInit(void){ glClearColor(0.2, 0.2, 0.2, 0.0);//设置背景颜色为白; glColor3f(0.0f, 0.0f, 0.0f);//设置绘图颜色为黑; glPointSize(1.0);/... 阅读全文
posted @ 2015-12-29 13:55 Alip 阅读(829) 评论(0) 推荐(0) 编辑
摘要: #include "stdafx.h"#include void myInit(void){ glClearColor(1.0, 1.0, 1.0, 0.0);//设置背景颜色为亮白; glColor3f(0.0f, 0.0f, 0.0f);//设置绘图颜色为黑白; glPointSize(1.0)... 阅读全文
posted @ 2015-12-29 13:52 Alip 阅读(1020) 评论(0) 推荐(0) 编辑
摘要: #include "stdafx.h"#include #include #include using namespace std;void myInit(void){ glClearColor(1.0, 1.0, 1.0, 0.0);//背景颜色为白; glColor3f(0.0f, 0.0f, ... 阅读全文
posted @ 2015-12-29 13:47 Alip 阅读(358) 评论(0) 推荐(0) 编辑
摘要: #include "stdafx.h"#include #include const int screenWidth = 640;//屏幕窗口的宽度为640像素;const int screenHeight = 480;//屏幕窗口的高度为480像素;GLdouble A, B, C, D;//比例... 阅读全文
posted @ 2015-12-29 13:40 Alip 阅读(1086) 评论(0) 推荐(0) 编辑
摘要: #include "stdafx.h"#include #include //包含random函数void myInit(void){ glClearColor(1.0, 1.0, 1.0, 0.0);//设置背景颜色为白 glColor3f(0.0f, 0.0f, 0.0f);//设置绘图颜色为黑... 阅读全文
posted @ 2015-12-29 13:38 Alip 阅读(411) 评论(0) 推荐(0) 编辑