Welcome![Sign In][Sign Up]
Location:
Search - draw leg table opengl

Search list

[OpenGL programglutEx1-vs6

Description: 首先,画一张有四条腿的桌子,其中四条腿的形状一样位置各异,所以先写一个画桌脚的函数Draw_Leg113(a,b,c),并通过参数把绘制的位置告诉函数。函数的实现较为简单,只需先push,后pop保护当前的矩阵,再经过移位,缩放z轴,绘制cube即可完成。 -First, draw a table has four legs, one of the four legs of different shapes, like the location, so the first leg draw Writing a function Draw_Leg113 (a, b, c), and put through the parameters of the location mapping function tell. Function of relatively simple implementation, just the first push, after the pop the protection of the current matrix, and then after a shift, scaling z-axis and draw to complete the cube.
Platform: | Size: 316416 | Author: WangDi | Hits:

CodeBus www.codebus.net