#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 196
// 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
下载说明:请别用迅雷下载,失败请重下,重下不扣分!
实现了水中的荷花开放的效果,实现水纹效果
实现了水中的荷花开放的效果,实现水纹效果-realized the open water lotus effect, to achieve results veins
2022-07-03 21:25:11下载
积分:1
Lidar点云数据处理软件,深度影像 分类以及边缘检测
Lidar点云数据处理软件,深度影像分类以及边缘检测-Lidar
2023-07-11 04:20:04下载
积分:1
OpengGL实现Bezier曲面,使用glut框架,工程已建立
OpengGL实现Bezier曲面,使用glut框架,工程已建立-OpengGL achieve Bezier surfaces, use the glut the framework of the project has been established
2022-01-27 19:04:00下载
积分:1
OpenGL 作图 例子
OpenGL 作图例子 - 全屏幕-OpenGL graphic example- full-screen
2022-11-05 19:30:04下载
积分:1
简单的三维场景,可鼠标控制旋转观看。供初学者参考。
简单的三维场景,可鼠标控制旋转观看。供初学者参考。-Simple three-dimensional scene can watch the mouse to control rotation. Reference for beginners.
2022-10-16 16:45:03下载
积分:1
OpenGL四的基本开发方法,如何实现彩色旋转多边形,…
OPENGL基本开发方法之四,如何实现旋转的彩色多边形,如何实现场景的基本平衡移和旋转-OPENGL four basic development methodology, how to achieve color rotary polygon, how to achieve a basic balance between scenes shift and rotation
2023-06-23 23:25:04下载
积分:1
visual c++ 6.0 和OpenGL 生成地形
visual c++ 6.0 和OpenGL 生成地形-visual c 6.0 and OpenGL generated terrain
2022-12-24 10:25:04下载
积分:1
在vc环境下显示二维飞机,可以实现旋转等操作,是学习opengl 的一个基本程序构架。按键上、下、左、右可以实现功能。...
在vc环境下显示二维飞机,可以实现旋转等操作,是学习opengl的一个基本程序构架。按键上、下、左、右可以实现功能。-Vc environment shown in the two-dimensional plane rotation operation can be achieved, is a basic program to learn opengl framework. Button up, down, left and right function can be achieved.
2023-05-01 10:35:03下载
积分:1
OpenGL Programming and Advanced Visualization System (Advanced Programming Part...
OpenGL高级编程与可视化系统开发(高级编程篇)--OpenGL Programming and Advanced Visualization System (Advanced Programming Part 1)-
2022-03-25 20:57:59下载
积分:1
很好的车辆程序,使用图 形系列,真的很不错哦
很不错的汽车程序,用图形学编的,真的很不错哦-very good vehicle procedures, the use of graphics series, is really quite oh
2022-02-02 06:51:20下载
积分:1