CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - draw leg table opengl
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Search - draw leg table opengl - List
[
OpenGL program
]
glutEx1-vs6
DL : 0
首先,画一张有四条腿的桌子,其中四条腿的形状一样位置各异,所以先写一个画桌脚的函数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.
Date
: 2025-07-09
Size
: 309kb
User
:
WangDi
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.