#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 155
下载积分: 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 个回复

  • A 3
    三维功能区(OpenGL演示)
    2022-03-02 21:25:07下载
    积分:1
  • opengl 开发的3D游戏,绝对经典
    opengl 开发的3D游戏,绝对经典-opengl development of 3D games, absolute classic
    2022-03-07 20:47:06下载
    积分:1
  • opengl的入门级例子
    opengl demo本工程是一个完美的opengl 演示程序,它简单易懂,即使是没有学过opengl 的同学也能看懂但同时它又功能完善,基本概括了opengl 3的整个固定渲染管线,包括场景搭建,摄像机控制,模型建立,场景渲染,甚至还有交互过程设计总之,这个是我当初学习opengl的一个最好的demo
    2022-10-08 18:10:02下载
    积分:1
  • 使用OpenGLES的库实现各种纹理特效,包括水纹,模糊等。The application demonstrates several effects using...
    使用OpenGLES的库实现各种纹理特效,包括水纹,模糊等。The application demonstrates several effects using GLES functions.Such as Matt effect Focus blur, Uniform blur and so on.-The use of the library OpenGLES realize a variety of texture effects, including水纹, fuzzy, etc.. The application demonstrates several effects using GLES functions.Such as Matt effect Focus blur, Uniform blur and so on.
    2022-03-18 12:19:15下载
    积分:1
  • E. fighters is I spent a few months to do a simple game engine aircraft, which c...
    E战机是我花了几个月做的一个简单飞机游戏引擎,目前它支持,自定义资源,自定义单位,编辑关卡等功能! 因为我不是很懂OpenGL所以目前本游戏~还是使用GUI绘图~ 对CPU的~要求比较高~ 而且~OpenGL的纹理不是支持任何尺寸的图片~ 文件说明 Reslist.gam 游戏资源文件 游戏所需要的图片资源都在这里定义~ 目前它还是以文本形式保存的 WAV.txt 游戏声音资源文件~ 游戏里面用到的声音都在这里~ 也是文本保存 UnitX.txt 单位定义文件 所有游戏单位的定义都在这里~ 包括自己的飞机~ 子弹 敌人~等等~ 敌人如何行动也是在这里定义的 Level.lev 游戏关卡文件 保存了游戏关卡数据文件 使用以上4个文件 你就能做出你自己的飞机游戏了~~ 你也可以试着把这个未完成的关卡完成~ 目前地图编辑器正在开发中~~ ========================= 控制说明 发射子弹 空格 Ctrl 炸弹 方向键 控制行动 ========================= -- 其他功能继续完善中 -- -E. fighters is I spent a few months to do a simple game engine aircraft, which currently support from the definition of resources, Since the definition of units, editing functions such as hurdles! I do not really understand them because currently the OpenGL games or use GUI ~ ~ drawing on the CPU requests than ~ ~ ~ and higher OpenGL texture is not in support of any size photo-documented Reslist.g am documents game game resources needed resources are pict
    2022-01-30 20:49:10下载
    积分:1
  • ngplant 用于植物模型造型,三维,可更改各种参数来达到效果
    ngplant 用于植物模型造型,三维,可更改各种参数来达到效果-ngplant model for plant modeling, three-dimensional, can change various parameters to achieve the desired effect
    2022-03-17 02:30:19下载
    积分:1
  • 第一个是关于形学中纹理运用的例子 第二个是战斗机测试的OpenGL源码 第三个是导弹发射测试 第四个是模拟雨点飘落 第五个是模拟烟雾从产生到消失的过程...
    第一个是关于图形学中纹理运用的例子 第二个是战斗机测试的OpenGL源码 第三个是导弹发射测试 第四个是模拟雨点飘落 第五个是模拟烟雾从产生到消失的过程-No. 1 on the use of graphics texture example is the second fighter test OpenGL source is the third missile test launch is the fourth simulated rain floated down Fifth is the simulation of smoke have disappeared from the proce
    2022-04-17 20:24:54下载
    积分:1
  • A simple game with dice.
    A simple game with dice.
    2022-02-01 13:45:19下载
    积分:1
  • opengl简单程序
    背景,运动,阴影,纹理,背景,运动,阴影,纹理,背景,运动,阴影,纹理,背景,运动,阴影, 纹理,背景,运动,阴影,纹理,背景,运动,阴影,纹理,背景,运动,阴影,纹理, 背景,运动,阴影,纹理,背景,运动,阴影,纹理,背景,运动,阴影,纹理,
    2022-01-25 22:39:39下载
    积分:1
  • High
    高性能碰撞检测论文,非常不错,我做项目的时候就用这个-High-performance collision detection papers, very good project to do when I use this
    2023-05-05 09:30:05下载
    积分:1
  • 696518资源总数
  • 106227会员总数
  • 11今日下载