Description: This the third tutorial in the Foundation section. This tutorial covers the basics of drawing some simple 2D polygons such as triangle, pentagon, rectangle etc. We will make use of the code that we had generated in the previous section. We ll cover some important topics such as Clipping Area, Viewports, Vertex and the Primitives in OpenGL such as the point, line, triangle, polygon, quads etc. We ll write a program that is menu driven and draws points, triangles, lines, quads etc. Platform: |
Size: 26706 |
Author:zhf |
Hits:
Description: 程序运行Cohen-Sutherland线段裁剪算法 ,所用坐标系为笛卡尔直角坐标系.
起始状:用户输入所画线段的起点和终点坐标
结束状态:程序打印出裁剪以后的线段-Program runs Cohen-Sutherland Line Clipping algorithm, used for the Cartesian coordinates Cartesian coordinate system. Start-shaped: the user to enter the draw line segments start and end coordinates of the end of state: The procedure to print out after cutting the line segment Platform: |
Size: 4096 |
Author: |
Hits: