OpenGL函数解析-gluCylinder
来源:互联网 发布:瘦身乳 知乎 编辑:程序博客网 时间:2024/05/16 11:43
gluCylinder
NAME
gluCylinder -- draw a cylinderC SPECIFICATION
void gluCylinder(GLUquadricObj *qobj, GLdouble baseRadius, GLdouble topRadius, GLdouble height, GLint slices, GLint stacks)
PARAMETERS
- qobj
- Specifies the quadrics object (created with gluNewQuadric).
- baseRadius
- Specifies the radius of the cylinder at z = 0.
- topRadius
- Specifies the radius of the cylinder at z = height.
- height
- Specifies the height of the cylinder.
- slices
- Specifies the number of subdivisions around the z axis.
- stacks
- Specifies the number of subdivisions along the z axis.
DESCRIPTION
gluCylinder draws a cylinder oriented along the z axis. The base of the cylinder is placed at z = 0, and the top at z = height. Like a sphere, a cylinder is subdivided around the z axis into slices, and along the z axis into stacks.Note that if topRadius is set to zero, then this routine will generate a cone.
If the orientation is set to GLU_OUTSIDE (with gluQuadricOrientation), then any generated normals point away from the z axis. Otherwise, they point toward the z axis.
If texturing is turned on (with gluQuadricTexture), then texture coordinates are generated so that t ranges linearly from 0.0 at z = 0 to 1.0 at z = height, and s ranges from 0.0 at the +y axis, to 0.25 at the +x axis, to 0.5 at the -y axis, to 0.75 at the -x axis, and back to 1.0 at the +y axis.
SEE ALSO
gluDisk, gluNewQuadric, gluPartialDisk, gluQuadricTexture, gluSphereback to the OpenGL index page
© 1995 Uwe Behrens All rights reserved
- OpenGL函数解析-gluCylinder
- 关于gluCylinder函数的用法…
- OpenGL函数解析-glReadBuffer
- OpenGL函数解析-glGetString
- 《高效学习OpenGL》 之 二次方程图元 gluSphere(),gluCylinder(),gluDisk(),gluPartialDisk()
- OpenGL 函数解析 VBO VAO
- OpenGL的SetupRC()函数解析
- OpenGL 解析
- OpenGL(六) gluLookAt和gluPerspective函数解析
- OpenGL ES的函数解析和记录理解
- OpenGL函数
- OpenGL函数
- openGL函数
- OpenGL函数
- OpenGL函数
- opengl函数
- [OpenGL] obj文件解析
- OpenGL 解析glBegin()
- Android学习第4课—Activity初步
- 推荐一些网站给大家
- OpenCV源代码阅读(一) cvLoadImage()
- Android学习笔记(七)-XML解析与生成:SAX、DOM、PULL(推荐)
- 让你的python输出彩色字体 支持 py3
- OpenGL函数解析-gluCylinder
- onCreateDialog方法及示例
- 数据挖掘领域的十大经典算法。
- 长连接与短连接
- SAP 呆滞库存的计算
- java类运行以及static块的执行顺序
- 作为程序员,我看未来的IT发展!!
- JMF用户界面组件
- TCP/IP重传超时--RTO