#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++
于 2022-05-15 发布
文件大小:1.42 kB
0 119
// 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
下载说明:请别用迅雷下载,失败请重下,重下不扣分!
use OpenGL development of the VC GeoShpere source.
用OPENGL+VC开发的GeoShpere源程序.-use OpenGL development of the VC GeoShpere source.
2022-08-03 04:53:33下载
积分:1
OpenGl some of the relevant information, including two straight generation algor...
一些OpenGl的相关资料,包括两个直线生成算法的ppt文件,一份openGL参考书籍的资料,和一个小程序-OpenGl some of the relevant information, including two straight generation algorithm ppt documents, a openGL reference books, and a small program
2022-08-10 10:04:22下载
积分:1
OpenGL的DLL文件glu.dll glu32.dll glaux.dll glut.dll opengl 32.dll glut32.dll运行……
OpenGL dll文件 glu.dll glu32.dll glaux.dll glut.dll glut32.dll opengl32.dll opengl.d-OpenGL dll file glu.dll glu32.dll glaux.dll glut.dll glut32.dll opengl32.dll opengl.d
2022-02-20 18:58:05下载
积分:1
使用Opengl创建基本的图 形
使用Opengl创建基本的图形-use Opengl create basic graphics
2023-07-30 22:30:02下载
积分:1
纹理映射,包括纹理贴图 ,纹理滤波,纹理的凹凸映射等等。纹理采用各种贴图 ,各种滤波方式
纹理映射,包括纹理贴图,纹理滤波,纹理的凹凸映射等等。纹理采用各种贴图,各种滤波方式-Texture mapping, including texture mapping, texture filtering, texture bump mapping and so on. Texture using a variety of textures, a variety of filtering methods
2022-02-06 13:31:21下载
积分:1
这是一个基于opengl 的桌球游戏,包括power设置,房间灯光,纹理, 得分的设置...
这是一个基于opengl的桌球游戏,包括power设置,房间灯光,纹理, 得分的设置-
this program is game of billards
2022-05-30 05:35:08下载
积分:1
openGL实例-暴风雪,用openGL制作暴风雪动画的实例,有完整的代码示例!...
openGL实例-暴风雪,用openGL制作暴风雪动画的实例,有完整的代码示例!-- snowstorms, with openGL produced blizzard animation examples, a complete code examples!
2023-02-18 22:20:04下载
积分:1
stl文件读取
用MFC结合OpenGL编写的一个stl文件读取程序,亲测可用,不过只有读取功能,比较简单的一个程序,亲们看需要下载吧
2022-11-05 23:10:04下载
积分:1
C++ 编写的太阳系模拟系统,采用rugge/kutta4阶算法,opengl
C++ 编写的太阳系模拟系统,采用rugge/kutta4阶算法,opengl-C preparation of the solar system simulation system used rugge/kutta4 band algorithm, opengl
2022-02-07 01:25:43下载
积分:1
C++和OpenGL编写的楼梯程序可以通过添加稍微修改…
C++和opengl编写的楼梯程序,可以稍微将其修改加入你的三维程序。-C++ And opengl prepared staircase procedure could be modified slightly by adding your three-dimensional procedures.
2022-03-14 04:52:35下载
积分:1