首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > C/C++/VC++ > OpenGL MUST Project 1[Polyline Editor] use Array of C++

OpenGL MUST Project 1[Polyline Editor] use Array of C++

资 源 简 介

// student name: // student ID: // date: /*#include "D:HomeworkOpenGLFinalCGLabGLUT_Toolkitglut.h"*/ #include #include #include GLint ploypoint = 0; GLint ployline=-1; GLint height; GLint choose=0; GLint move_ployline,move_ploypoint; struct Point {  int x;  int y; }; struct GLintPointArray {  Point point[60]; }; GLintPointArray ploy[60]; void drawPointLine() {  for (int i=0;i<=ployline;i++)  {   glBegin(GL_LINE_STRIP);   for(int k=0;k<60;k++)   {    if (ploy[i].point[k].x!=0&&ploy[i].point[k].y!=0)    glVertex2i(ploy[i].point[k].x,ploy[i].point[k].y);   }   g

文 件 列 表

ExamLab.cpp
VIP VIP
0.177781s