#include#includeGLintploypoint=0;GLintployline=-1;GLintheight;GLintchoose=0;GLintmove_ployline,move_ploypoint;structPoint{ intx; inty;};structGLintPointArray{ Pointpoint[60];};GLintPointArrayploy[60];voiddrawPointLine(){ for(inti=0;i<=ployline;i++) {  glBegin(GL_LINE_STRIP);  for(intk=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-IMDN开发者社群-imdn.cn"> #include#includeGLintploypoint=0;GLintployline=-1;GLintheight;GLintchoose=0;GLintmove_ployline,move_ploypoint;structPoint{ intx; inty;};structGLintPointArray{ Pointpoint[60];};GLintPointArrayploy[60];voiddrawPointLine(){ for(inti=0;i<=ployline;i++) {  glBegin(GL_LINE_STRIP);  for(intk=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 - IMDN开发者社群-imdn.cn">
登录
首页 » OpenGL图像 » OpenGL MUST Project 1[Polyline Editor] use Array of C++

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

于 2022-05-15 发布 文件大小:1.42 kB
0 138
下载积分: 2 下载次数: 1

代码说明:

// 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

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • with OpenGL painting an apple trees ~ ~ can be used when operating
    用OpenGL画的一个苹果树林~~可当作业用-with OpenGL painting an apple trees ~ ~ can be used when operating
    2022-12-09 16:40:03下载
    积分:1
  • OpenGL教学,三维形绘制
    OpenGL教学,三维图形绘制-OpenGL teaching, 3D graphics rendering
    2022-04-16 00:05:28下载
    积分:1
  • Animation of swimming pool
    Animation of swimming pool
    2022-01-21 04:41:21下载
    积分:1
  • opengl3d小游戏
    这个游戏包含了opengl3d游戏的所有基本元素,包括天空的绘制,地形的绘制(地形所用的是已有的高度图,没有用其他算法),md2模型的导入,模型动画的设置,场景内漫游,敌人是极其简单的AI,游戏的内容不多,但是涉及面很广,欢迎大家下载。
    2022-07-21 12:43:01下载
    积分:1
  • An OpenGL example of Star!!It can help you understand opengl framework in more d...
    星星闪动--OpenGL, 一个opengl的例子!!可以帮助你更详细的了解opengl的框架建立!!!! -An OpenGL example of Star!!It can help you understand opengl framework in more detail
    2023-01-24 01:05:04下载
    积分:1
  • opengl+vc++开发的水的模型,很不错的程序
    opengl+vc++开发的水的模型,很不错的程序-opengl+ vc++ developed water model, very good procedures
    2023-04-17 21:00:03下载
    积分:1
  • 基于Qt的OPENGL程序,可以帮助理解OPENGL在Qt中的使用方法
    基于Qt的OPENGL程序,可以帮助理解OPENGL在Qt中的使用方法 -Qt based on the OPENGL procedures, can help to understand OPENGL in Qt in use
    2022-03-10 11:23:18下载
    积分:1
  • “虚拟地景生成系统”是基于Windows2000系统和Visual C++ 6.0平台,利用基本OpenGL函数编程技术开发的三维可视化成果。它通过简单的DEM...
    “虚拟地景生成系统”是基于Windows2000系统和Visual C++ 6.0平台,利用基本OpenGL函数编程技术开发的三维可视化成果。它通过简单的DEM(数字高程模型)数据,建立格网模型、再根据光照强度、高程值及有关数据建立数学模型,生成晕渲,再将它投影到平面上,达到模拟现实地貌起伏的效果。 本系统采用XP风格界面,清新自然。它具有透射/正射投影切换、漫游、缩放功能。支持分层晕渲、比高设定、平移、旋转、翻滚、视野调节、雾化、纹理贴图(显示/隐藏)等诸多功能,单幅、1MB大小的DEM数据生成速度为秒级,浏览时无停顿。-"to the virtual scene generation system" is based on Windows 2000 and Visual C 6.0 platform, using the basic function of OpenGL programming technology developed by 3D visualization results. Through simple DEM (Digital Elevation Model) data, establish grid model, in accordance with light intensity, elevation data and the value of a mathematical model, generate Hillshading, then it projection plane to achieve realistic simulation of the effect of undulating topography. The system uses XP style interface as well. It has transmission/switching are overhead projectors, roaming, zoom function. Support for layered Hillshading, compete against the creation, translation, rotation, rolling and vision adjustment, atomization,
    2023-05-08 14:35:03下载
    积分:1
  • ar多标记lizi
    artoolkit中的自带例子程序,添加了自己用opengl写的一个小例子,可以正常运行,在键盘也可以操作,有一个小互动。不过目前写的比较简单,没有贴图,只是个简陋的小例子,还请您给予修改,让他变的完善一些。
    2022-09-21 18:50:03下载
    积分:1
  • visual c++ 6.0 和OpenGL 生成地形
    visual c++ 6.0 和OpenGL 生成地形-visual c 6.0 and OpenGL generated terrain
    2022-12-24 10:25:04下载
    积分:1
  • 696518资源总数
  • 105877会员总数
  • 14今日下载