随笔分类 -  OpenGL

摘要:这次做的真是搓,whatever~ 1 /***** 2 Computer Graphics: HW4 3 Shading, Lighting, Hidden Surface Removal 4 ****/ 5 6 /**** 7 Shading: ... 阅读全文
posted @ 2015-06-26 16:35 dominjune 阅读(289) 评论(0) 推荐(0)
摘要:1 // Computer Graphics: HW3 2 // 3D Transformation: 3 4 5 #include 6 #include 7 #include 8 #include 9 #include 10 #include 11 #incl... 阅读全文
posted @ 2015-06-03 20:21 dominjune 阅读(332) 评论(0) 推荐(0)
摘要:1 // Computer Graphics: HW2 2 // 3D Rendering pipeline: 3 // Space Transformation and Polygon clipping use Sutherland-Hodgman Algorithm 4 5 ... 阅读全文
posted @ 2015-05-22 23:15 dominjune 阅读(771) 评论(0) 推荐(0)
摘要:算法是midpoint drawing algorithm,谁想的我也不知道...画线:按l,用鼠标点两个点;画圆:按o,用鼠标点一个圆心拉成一个圆;画多边形:按p,就跟画线差不多,最后右键闭合;清屏:按c;重画:按c后按r,redraw,需要用链表保存每个图形;ps:在vs下运行. 1 又修改了... 阅读全文
posted @ 2015-03-28 21:33 dominjune 阅读(1432) 评论(1) 推荐(0)