#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 183
// 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
下载说明:请别用迅雷下载,失败请重下,重下不扣分!
opengl 作业,可以按键控制偏移,改变视角,缩放。实现交互。...
opengl作业,可以按键控制偏移,改变视角,缩放。实现交互。-opengl operations, offset control buttons, changing perspectives, zoom. Interactive.
2023-02-11 19:50:04下载
积分:1
Visual+C+++CAD+应用程序开发技术 vc++ CAD 编程,
Visual+C+++CAD+应用程序开发技术 vc++ CAD 编程,-Visual+ C+++ CAD+ Application development technology vc++ CAD programming,
2023-02-04 06:15:04下载
积分:1
物理玩具,游戏开发入门。
玩具有很多的关节,可以用鼠标调整和移动。...
物理玩具,游戏开发入门。
玩具有很多的关节,可以用鼠标调整和移动。
-Physical toys, games development portal. Toys have a lot of joints, can be used to adjust and move the mouse.
2023-04-02 08:50:03下载
积分:1
use the OpenGL development kits 2, and I hope to be helpful
利用MFC开发的OpenGL开发包2,希望对大家有帮助-use the OpenGL development kits 2, and I hope to be helpful
2022-03-03 06:26:30下载
积分:1
用mfc opengl 编写的,转动的球,可能会有数组越界的错误
用mfc opengl编写的,转动的球,可能会有数组越界的错误-mfc opengl prepared with the rotation of the ball, there may be cross-border array of mistakes
2022-08-18 23:30:30下载
积分:1
对于在vc++环境下,对于三维模型骨架提取的各种算法的论文,对于3d骨架提取变成很有帮助,其中还有关于内窥镜技术的研究。
对于在vc++环境下,对于三维模型骨架提取的各种算法的论文,对于3d骨架提取变成很有帮助,其中还有关于内窥镜技术的研究。-For vc++ Environment, for the three-dimensional model skeleton extraction algorithm of the various papers, for the 3d skeleton extraction become useful, including studies on the endoscopic technique.
2022-08-08 23:12:25下载
积分:1
关于OPENGL光照的程序
关于OPENGL光照的程序-OpenGL light on the process
2022-03-30 17:23:27下载
积分:1
应用cb学习OPENgl编程,这是例子5
应用cb学习OPENgl编程,这是例子5-Cb learning OPENGL application programming, this is the example of 5
2022-11-19 09:20:03下载
积分:1
再MFC下实现opengl 的框架,再此框架中可以进行程序的进一步绘制...
再MFC下实现opengl的框架,再此框架中可以进行程序的进一步绘制-MFC again under opengl framework, then this framework can be further drawn to the procedure
2022-03-15 11:43:26下载
积分:1
OpenGL 3D Graphics Programming Intermediate opengl study books
OpenGL三维图形程序设计 中级opengl学习用书-OpenGL 3D Graphics Programming Intermediate opengl study books
2022-12-03 18:45:03下载
积分:1