#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 194
// 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
下载说明:请别用迅雷下载,失败请重下,重下不扣分!
Draw a picture which there are a number of small star around a big star.Method:...
绘制一个这样的图案,一个大星周围有一系列的小星,使用方法:原点转移。-Draw a picture which there are a number of small star around a big star.Method: central point transformation
2022-02-03 01:09:40下载
积分:1
A lot of people asked me, "So how do i put it all together?"
I have taken some...
A lot of people asked me, "So how do i put it all together?"
I have taken some of the other tutorials and created this piece of eye candy.
It uses slightly modified versions of the Bouncing Ball and Water Ripple tutorials.-A lot of people asked me, "So how do i put it all together," I have taken some of the other tutorials and created this piece of eye candy. It uses slightly modified versions o f the Bouncing Ball and Water Ripple tutorials.
2022-03-02 22:23:25下载
积分:1
Chess (opengl based on programming, suitable for beginners)
国际象棋(opengl基础编程,适合初学者)-Chess (opengl based on programming, suitable for beginners)
2022-09-29 11:10:02下载
积分:1
初学OpenGL很好的框架,添加了画出三角形和四边形的代码,完成上色并且实现了旋转效果,入门基础。
初学OpenGL很好的框架,添加了画出三角形和四边形的代码,完成上色并且实现了旋转效果,入门基础。-Good beginner OpenGL framework, added a painted triangle and quadrilateral code, complete and realize the rotating color effect, the basis for entry.
2022-05-22 08:11:20下载
积分:1
OPENGL library used in C++ bad habitats developed under the graphic image used.
OPENGL库,用来在C++坏境下开发图形图像用。-OPENGL library used in C++ bad habitats developed under the graphic image used.
2022-11-11 13:30:03下载
积分:1
OPENGL的学习源代码,很容易上手的
OPENGL的学习源代码,很容易上手的-OpenGL study the source code, it is easy to get started with the
2022-07-09 18:38:18下载
积分:1
VC environment opengl programming source code, including NURBS surfaces mapping.
VC环境下opengl编程源代码,包括nurbs曲面的绘制。-VC environment opengl programming source code, including NURBS surfaces mapping.
2022-03-14 08:00:51下载
积分:1
网络抓包工具绿色版
网络抓包工具绿色版网络抓包工具绿色版网络抓包工具绿色版网络抓包工具绿色版网络抓包工具绿色版网络抓包工具绿色版网络抓包工具绿色版网络抓包工具绿色版网络抓包工具绿色版网络抓包工具绿色版网络抓包工具绿色版网络抓包工具绿色版网络抓包工具绿色版网络抓包工具绿色版网络抓包工具绿色版网络抓包工具绿色版网络抓包工具绿色版网络抓包工具绿色版
2022-03-22 20:43:54下载
积分:1
学习如何做一个很好的飞机和飞行模拟的开源程序…
一个非常好的学习制作飞机飞行模拟的开源程序 学习opengl就要多看别人的源码及其效果,大家一起加油!-Learn how to make a very good aircraft and flight simulation of the open source learning opengl will be more than watch other people
2022-07-22 00:50:06下载
积分:1
use OpenGL examples produced by the fountain.
用OPENGL制作的喷泉实例。-use OpenGL examples produced by the fountain.
2022-02-04 10:34:19下载
积分:1