glRotate
NAME
glRotated, glRotatef -- multiply the current matrix by a rotation matrix 
将当前矩阵和一个旋转矩阵相乘。
C SPECIFICATION
c语言说明
void glRotated(GLdouble angle,
               GLdouble x,
               GLdouble y,
               GLdouble z)
void glRotatef(GLfloat angle,
               GLfloat x,
               GLfloat y,
               GLfloat z)

PARAMETERS
参数
angle
Specifies the angle of rotation, in degrees.
指定旋转角度,以度数为单位。
x, y, z
Specify the x, y, and z coordinates of a vector, respectively. 
分别指定矢量x,y,z坐标,
DESCRIPTION
描述
glRotate computes a matrix that performs a counterclockwise rotation of angle degrees about the vector from the origin through the point (x, y, z).
glRotate计算出一个绕从原点出发,通过点(x,y,z)的矢量逆时针旋转angle度的矩阵。 
The current matrix (see glMatrixMode) is multiplied by this rotation matrix, with the product replacing the current matrix. That is, if M is the current matrix and R is the rotation matrix, then M is replaced with M * R.
当前矩阵乘旋转矩阵,结果替代当前矩阵。也就是说,如果m是当前矩阵,r是旋转矩阵,m将被m*r代替。
If the matrix mode is either GL_MODELVIEW or GL_PROJECTION, all objects drawn after glRotate is called are rotated. Use glPushMatrix and glPopMatrix to save and restore the unrotated coordinate system. 
如果矩阵既不是GL_MODELVIEW模式,也不是GL_PROJECTION模式,所有调用glRotate之后画出的图形都是旋转了的。使用glPushMatrix和glPopMatrix来保存和恢复未旋转的坐标系。
ERRORS
错误
GL_INVALID_OPERATION is generated if glRotate is called between a call to glBegin and the corresponding call to glEnd. 
如果在glBegin和相应的glEnd之间调用glRotate,将会产生GL_INVALID_OPERATION错误
ASSOCIATED GETS
相关
glGet with argument GL_MATRIX_MODE
glGet with argument GL_MODELVIEW_MATRIX
glGet with argument GL_PROJECTION_MATRIX
glGet with argument GL_TEXTURE_MATRIX

SEE ALSO
glMatrixMode, glMultMatrix, glPushMatrix, glScale, glTranslate

--------------------------------------------------------------------------------

back to the OpenGL index page

--------------------------------------------------------------------------------

? 1995 Uwe Behrens. All rights reserved.

OpenGl学习之glRotate函数相关推荐

  1. OpenGL ES之glRotate函数

    名称: glRotate-- 使用一个旋转矩阵乘以当前矩阵 函数原型: void glRotatef(GLfloat angle,  GLfloat x,  GLfloat y,  GLfloat z ...

  2. OpenGL学习笔记(一):环境搭建、三维空间坐标系理解以及OpenGL的基本使用

    原博主博客地址:http://blog.csdn.net/qq21497936 本文章博客地址:http://blog.csdn.net/qq21497936/article/details/7866 ...

  3. IOS OpenGL 学习 (一)

    IOS OpenGL 学习 (一) OpenGL 学习网址 OpenGL 简介 OpenGL 基础理论知识 1. 坐标系与变换 2. OpenGL 显示图形流程 3. OpenGL 基本概念 Open ...

  4. OpenGL学习笔记:颜色(RGBA颜色,颜色索引模式)

    OpenGL支持两种颜色模式:一种是RGBA,一种是颜色索引模式. 无论哪种颜色模式,计算机都必须为每一个像素保存一些数据. 不同的是,RGBA模式中,数据直接就代表了颜色:而颜色索引模式中,数据代表 ...

  5. OpenGL学习(一)OpenGL基本介绍

    1. OpenGL基本介绍 1.1 OpenGL是什么?   当你第一次听到OpenGL时,你可能并不知道它到底是什么,但你应该知道它是与图形联系起来,这确实是OpenGL能够做的事情.OpenGL不 ...

  6. OpenGL学习笔记:矩阵变换

    文章目录 缩放 glm矩阵表示 glm缩放矩阵实现 位移 齐次坐标 glm位移矩阵实现 旋转 沿x轴旋转 沿y轴旋转 沿z轴旋转 沿任意轴旋转 glm旋转矩阵实现 矩阵的组合 glm矩阵组合使用 接上 ...

  7. OpenGL学习之路17---- 镜面反射光

    代码放在github上 根据教程:ogldev一步步开始,记录学习历程 之前完成环境光和漫射光的学习.环境光的计算只由光强来决定,场景中所有位置是同一亮度:漫射光的计算由光强和光的方向一同决定,相关博 ...

  8. OpenGL学习笔记(一)绘制点线面及多面体

    OpenGL学习笔记(一)绘制点线面及多面体 绘制点线面 #include <iostream> #include <GL/GLUT.h> #define PI 3.14159 ...

  9. OpenGL学习-球体和phong光照模型

    OpenGL学习-球体和phong光照模型 开发环境搭建参考:https://lexiaoyuan.blog.csdn.net/article/details/120059213 通用配置步骤 Vis ...

最新文章

  1. 互联网还留给我们这些出路
  2. HTML中Css详细介绍
  3. leetcode算法题--视频拼接
  4. Microsoft Azure Tutorial: Build your first movie inventory web app with just a few lines of code
  5. 【十大经典数据挖掘算法】C4.5
  6. java笔试面试经典问题
  7. uni-calendar更改打点颜色实现签到和缺勤不同打点颜色效果
  8. 这可能是国内首款5G手机了!中兴AXON 10 Pro 5G上市定档
  9. c语言2维动态数组,如何创建一个动态2维数组?
  10. 编程实现strcpy函数_C编程中的strcpy()
  11. commit(), commitNow()和commitAllowingStateLoss()
  12. Linux 性能分析工具
  13. android PackageInstaller那点事情
  14. 长沙优科软件开发有限公司招聘软件开发工程师
  15. 002 姜子牙留计不成,玄子清相府献计
  16. 逆思维:GAN不能生成什么?Seeing What a GAN Cannot Generate
  17. 英语语音篇 - 元音自然拼读
  18. 蔬菜小程序服务器,生鲜蔬菜同城配送小程序案例分析
  19. Ansible mysql_db模块
  20. 【ZJOI2017】仙人掌

热门文章

  1. printf与fprintf函数的区别
  2. html实现弹窗输入
  3. C语言中itoa和atoi函数的用法
  4. SQlServer数据库基础
  5. 二叉树遍历的超简单方法(详细、简单)
  6. Matlab Plot添加图名、图例、坐标轴名、坐标网格;画虚线、点划线、两条线;更改字体、字号、轴正方
  7. 如何将JPG转换为PNG?两种图片格式转换的方法交给你
  8. vue3 简单封装GoogleMap组件
  9. 数据库关系代数思维导图
  10. CrashLoopBackOff