#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 199
// 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
下载说明:请别用迅雷下载,失败请重下,重下不扣分!
-
详细介绍OpenGL3编程技术,这是例程2。
详细介绍OpenGL3编程技术,这是例程2。-Detailed introduction OpenGL3 programming technology, which is routine 2.
- 2022-02-03 09:26:59下载
- 积分:1
-
opengl 小程序
opengl 学习必程序、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、
- 2022-01-25 18:59:01下载
- 积分:1
-
nehe_opengl(6
nehe_opengl(6-10)
- 2022-02-06 03:27:41下载
- 积分:1
-
粒子系统。粒子的生命,颜色,衰减等的模拟。以及向外发散的效果。
粒子系统。粒子的生命,颜色,衰减等的模拟。以及向外发散的效果。-Particle system. Particles of life, color, attenuation of the simulation. As well as the outward divergent results.
- 2023-03-14 12:15:04下载
- 积分:1
-
OpenGL 参考手册
OpenGL 参考手册-OpenGL Reference Manual
- 2022-03-23 18:13:10下载
- 积分:1
-
三角化算法 c#
三角化算法 c#
- 2022-04-21 15:11:06下载
- 积分:1
-
实现OpenGL的选择拾取功能。是有助于理解OpenGL中选择拾取的经典例子。...
实现OpenGL的选择拾取功能。是有助于理解OpenGL中选择拾取的经典例子。-achieve OpenGL Pick function. It is helpful in understanding OpenGL Pick a classic example.
- 2022-05-30 09:02:01下载
- 积分:1
-
在OpenGL的烟花
控制台应用程序:屏保项目概述
- 2022-06-01 09:21:30下载
- 积分:1
-
Python三维场景
我用Python Panda3D引擎制作的三维场景,其中有可键盘操纵的角色。Panda3D是第三方3D引擎,可于其官方网站获得。运行Main.py文件即可打卡此本程序。
- 2022-10-09 23:25:03下载
- 积分:1
-
我喜欢用OpenGL写的东西,希望大家喜欢,轴承的一个例子是什么…
我喜欢用OpenGL编写一点东西,希望大家喜欢,一下是一个轴承座的例子.-I like to use OpenGL write something, hope you like, what is an example of bearing.
- 2023-08-14 07:00:03下载
- 积分:1