#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 191
// 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
下载说明:请别用迅雷下载,失败请重下,重下不扣分!
TyphoonLabs的OpenGLES教程的原代码,所有程序均为必要的。
TyphoonLabs的OpenGLES教程的原代码,所有程序都是基于EVC++平台的-TyphoonLabs OpenGLES Directory of the original code, All procedures were based on the platform of EVC
2022-05-07 08:32:53下载
积分:1
计算机图 形学(第四版)书中代码
该文件中包含计算机图形学(第四版)书中示例源代码,方便大家学习计算机图形学(第四版)。
2022-03-11 22:26:58下载
积分:1
OpenGL, Visual C++
灯光的旋转运动,在这个例子中,灯光会在球体上渐隐...
OpenGL, Visual C++
灯光的旋转运动,在这个例子中,灯光会在球体上渐隐-OpenGL, Visual C light of the rotation, in this case, the lights will be on the ball gradually hidden
2022-12-31 22:55:03下载
积分:1
OpenGL摇摆机器手臂简单示范代码
OpenGL摇摆机器手臂简单示范代码 格式为 .c C++语言 要在OpenGL设置下运行
2022-07-28 14:57:36下载
积分:1
从深度图 进行三维建模
代码比较好,可直接运行,从kinect获得的深度信息进行三维建模,是在linux下编译并压缩的
2022-04-30 13:26:33下载
积分:1
介绍了视区变换函数,分别在两个绘图 区中用不同的图 案绘制图 形,并设置是否清空背景...
介绍了视区变换函数,分别在两个绘图区中用不同的图案绘制图形,并设置是否清空背景-introduced as the District transform function, respectively, in two areas Mapping using different shapes, drawing, and whether or not it cleared background
2023-03-29 01:55:03下载
积分:1
opengl
opengl 红宝书代码-opengl
2023-01-27 16:15:43下载
积分:1
在OPENGL环境下对MS3D文件进行加载
在OPENGL环境下对MS3D文件进行加载-OPENGL environment in documents loaded on MS3D
2022-01-28 00:34:29下载
积分:1
OpenGL的绘制烟花程序,非常漂亮,可以绘制不同形状的烟花
OpenGL的绘制烟花程序,非常漂亮,可以绘制不同形状的烟花-fireworks OpenGL rendering procedures, very pretty, drawing different shapes of fireworks
2022-03-06 04:16:10下载
积分:1
clouds of the three
三维动态云彩的绘制,采用动态纹理贴图的技术来实现,效果不错-clouds of the three-dimensional dynamic mapping, dynamic texture mapping technology to achieve good results
2022-04-16 17:02:42下载
积分:1