#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 137
// 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
下载说明:请别用迅雷下载,失败请重下,重下不扣分!
3个齿轮相互咬合运动的程序
3个齿轮相互咬合运动的程序-3 gear mutual occlusal movement procedures
2022-01-26 02:46:33下载
积分:1
用OpenGL实现地形,包括3ds文件的读取、纹理贴图 等等。
用OpenGL实现地形,包括3ds文件的读取、纹理贴图等等。-use OpenGL terrain, including 3ds document read, texture mapping, and so on.
2023-03-16 07:30:03下载
积分:1
用OPENGL做的3维的几何零件图 形。大家
用OPENGL做的3维的几何零件图形。大家-do with the OpenGL 3-dimensional geometric graphics parts. We look at
2022-03-01 04:11:02下载
积分:1
例子简单,但很实用的一个OPENGL编程,在VC的MFC环境中编写,初学者可以参考....
例子简单,但很实用的一个OPENGL编程,在VC的MFC环境中编写,初学者可以参考.-example simple, but a very practical programming OpenGL, MFC in the VC environment preparation, beginners reference.
2022-03-06 00:03:20下载
积分:1
Delphi系统采用OpenGL演示旋转的地球。
System that demostrates Bitmap image rotation.
2022-02-02 01:21:03下载
积分:1
In this tutorial we use Multiple Transforations to simulate the shoulder and elb...
In this tutorial we use Multiple Transforations to simulate the shoulder and elbow of a robotic arm.
2022-02-10 10:00:50下载
积分:1
使用准备3天到几个文件的读取和处理简单福是OpenGL…
用opengl编写的可以对几种3d文件进行读取以及简单的处理功能,已经调试!-use opengl be prepared 3 days to several documents read and simple processing functions, Debugging already!
2022-05-21 15:13:53下载
积分:1
图 相交界使用3点
使用画圆3点方程形式。这段代码让用户点击三次选择三分。应用程序使用的载体的组合和圆方程画圆。
2022-04-22 20:39:52下载
积分:1
这个例子演示了使用OpenGL创建一支蜡烛火焰的影响…
该例子演示了使用OPENGL创建蜡烛火焰的效果,包含完整源代码,使学习游戏中火焰粒子运动及爆炸粒子运动的好-The example demonstrates the use of OpenGL to create the effect of a candle flame, including complete source code, make learning games flame particle and particle explosion good Dongdong
2022-07-12 11:22:16下载
积分:1
基于VC和OpenGL的三维场景漫游
基于VC和OpenGL的三维场景漫游, 可以前后左右移动,用方向键和鼠标控制
2023-03-06 21:25:03下载
积分:1