摘要: #include// 太阳、地球和月亮// 假设每个月都是30天// 一年12个月,共是360天static int day = 150;//day的变化:从0到359void myDisplay(void){ glDepthFunc(GL_LEQUAL);//设置深度// 太阳、地球和月亮/... 阅读全文
posted @ 2015-06-12 23:41 sunnycs 阅读(1510) 评论(0) 推荐(0) 编辑
摘要: 参考: http://www.cnblogs.com/FredCong/archive/2012/10/13/2722893.html使用RGB#include #include void myDisplay1(void){ glClear(GL_COLOR_BUFFER_BIT); g... 阅读全文
posted @ 2015-06-12 21:10 sunnycs 阅读(207) 评论(0) 推荐(0) 编辑
摘要: 参考网址:http://www.cnblogs.com/FredCong/archive/2012/10/13/2722893.html#include #include #include #include void myDisplay1(void){ glClear(GL_COLOR_BUF... 阅读全文
posted @ 2015-06-12 10:01 sunnycs 阅读(1110) 评论(0) 推荐(0) 编辑