图形学 用OpenL实现平移、旋转、缩放.docVIP

  • 27
  • 0
  • 约1.74千字
  • 约 7页
  • 2017-05-11 发布于贵州
  • 举报

图形学 用OpenL实现平移、旋转、缩放.doc

图形学 用OpenL实现平移、旋转、缩放

石正坤 一、实验目的:二、实验原理:glRotatef(theta, vx, vy, vz); glTranslatef(dx, dy, dz); glScalef(sx,sy,sz); 三、实验内容:// 1.cpp : Defines the entry point for the console application. // #include stdafx.h #include glut.h #include math.h void display() { glClear( GL_COLOR_BUFFER_BIT); // Clear the frame buffer glColor3f( 0.0, 1.0, 1.0); // Set current color to green glBegin( GL_POLYGON); // Draw the triangle glVertex2f( 0.0, -0.2); glVertex2f( 0.2, 0.0); glVertex2f( 0.0, 0.0); glEnd();

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档