
Computer Graphics
文章平均质量分 80
Rachel-Zhang
yiyan程序员 https://weibo.com/u/2607574543
展开
-
OpenGL 基础图形绘制与投影变换
本文参考《Computer Graphics Using OpenGL》,第一个例子绘制了1. 参数定义的House2. a flurry of filled rectangles3. Sierpinski曲线含有鼠标和键盘响应函数onmouse和onkeyboard。/****************************************************************原创 2013-02-18 13:05:24 · 7985 阅读 · 4 评论 -
真实感球绘制
真实感球的绘制关键函数: glMaterialfv(GL_FRONT, GL_DIFFUSE, mat_shininess);//设置材料反射指数 glLightfv(GL_LIGHT0, GL_POSITION, light_position);//光源位置 glShadeModel ( GL_SMOOTH ); //设置阴影模型 glViewport (0, 0, (GLsizei) w,原创 2013-02-19 14:37:59 · 17159 阅读 · 6 评论