#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 193
// 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
下载说明:请别用迅雷下载,失败请重下,重下不扣分!
mfc OpenGL 模板
老外写的很有用
减少大量重复劳动
mfc OpenGL 模板
老外写的很有用
减少大量重复劳动
-mfc OpenGL template foreigner was very useful to reduce the substantial duplication of work
2023-02-22 05:50:03下载
积分:1
使用opengl 来加载3ds的模型的源码,图 形可以旋转,基于MFC.
使用opengl来加载3ds的模型的源码,图形可以旋转,基于MFC.-Use opengl to load the source model 3ds, graphics can be rotated based on the MFC.
2022-10-11 23:50:03下载
积分:1
Realize the use of dynamic light map shader effect, very cool!
使用shader实现动态光照图的效果,非常酷!-Realize the use of dynamic light map shader effect, very cool!
2022-03-05 23:50:12下载
积分:1
基于OpenGL的三维图 形显示中的显示列表设置,实现基于显示列表的三维动态显示,供研究开发人员使用。...
基于OpenGL的三维图形显示中的显示列表设置,实现基于显示列表的三维动态显示,供研究开发人员使用。-OpenGL-based three-dimensional graphical display of the display list settings, the display list based on the three-dimensional dynamic display, for research and development personnel.
2022-03-10 19:52:34下载
积分:1
Opengl
有关opengl资料,对于初学者很有帮助-Opengl-related information useful for beginners
2022-06-17 14:52:15下载
积分:1
vc++ 读取显示3ds文件
c++读取显示3ds三维模型文件的基础程序,可以显示文件的纹理贴图,研究虚拟现实很值得参考
2023-03-09 02:30:04下载
积分:1
利用Visual C++和OpenGL联合写的一段演示程序,说明OpenGL的透视效果是如何实现...
利用Visual C++和OpenGL联合写的一段演示程序,说明OpenGL的透视效果是如何实现-The use of Visual C++ And OpenGL to write a section of a joint demonstration program to illustrate the effect of OpenGL perspective is how to achieve
2022-03-17 20:53:01下载
积分:1
查看OpenGL 3D渲染
在OpenGL视图中绘制三维物体-view of the OpenGL 3D Rendering
2022-01-26 06:45:14下载
积分:1
一个3维的房子,可以运动的,带你走向3d世界。
一个3维的房子,可以运动的,带你走向3d世界。-A three dimension house, can moves and leads you to the 3D world.
2022-12-22 17:00:03下载
积分:1
一个可以观看quake系列游戏3D模型的软件
一个可以观看quake系列游戏3D模型的软件-a quake can watch the game 3D model of software
2022-02-06 08:35:56下载
积分:1