#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 216
// 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
下载说明:请别用迅雷下载,失败请重下,重下不扣分!
基于VC的OPENGL三维动画方真及场景漫游系统的实现,详细介绍开发过程...
基于VC的OPENGL三维动画方真及场景漫游系统的实现,详细介绍开发过程-VC-based OpenGL 3D animation side really Walkthrough system and the realization of the development process in detail
2022-01-26 02:38:24下载
积分:1
Use openGL to render a simple water simulation with reflection, waving
Use openGL to render a simple water simulation with reflection, waving
2022-03-03 07:56:56下载
积分:1
使用OPENGL画的一个太极图 ,里面使用了一种填充方法,供大家学习指教...
使用OPENGL画的一个太极图,里面使用了一种填充方法,供大家学习指教-use OpenGL painting a Tai Chi map, which uses a method of filling, for them to learn from the exhibitions
2022-03-10 00:35:36下载
积分:1
一个基于VB的Opengl程序,给出了使用一般VB开发Opengl的框架。
一个基于VB的Opengl程序,给出了使用一般VB开发Opengl的框架。-a VB-based Opengl procedure proposed by the use of general VB Opengl framework.
2022-05-15 02:04:11下载
积分:1
OpenGL MUST Project 1[Polyline Editor] use linked list of C++
#include
#include
#include
#include
#include "point.h"
/*draw line from the line array*/
void drawPointLine()
{
Node * temp;
for (int i=0;inext!=NULL)
{
temp=temp->next;
glVertex2i(temp->x,temp->y);
}
glEnd();
}
}
/*find the point and delete the point from the line array*/
void delpointFun(int xx,int yy)
{
for (int i=0;inext!=NULL)
{&n
2022-01-31 23:45:53下载
积分:1
OpenGL中用递归和贴片法画圆柱,一共用了两种方法,普通方法和递归的方法,是没有调用OpenGL画圆柱的函数实现的...
OpenGL中用递归和贴片法画圆柱,一共用了两种方法,普通方法和递归的方法,是没有调用OpenGL画圆柱的函数实现的-OpenGL patch method using recursive and painted columns, one share of the two methods, general methods and recursive methods, there is no call OpenGL cylindrical painting realize the function of
2022-03-04 14:13:23下载
积分:1
这是OPENGL的第三个例子,实现了鼠标移动来使物体旋转的且透明处理
这是OPENGL的第三个例子,实现了鼠标移动来使物体旋转的且透明处理-This is the third example OPENGL, realize the mouse to make rotating objects and transparent treatment
2022-02-24 22:44:17下载
积分:1
机器人 OpenGL 阿凡达
OpenGL(开 Graphics L图书馆) is a 请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
2023-02-09 02:30:05下载
积分:1
OpenGL 超级宝典第六章,还没有完,请站长加分吧。
OpenGL 超级宝典第六章,还没有完,请站长加分吧。-OpenGL Super Bible Chapter VI, not yet finished, please let station points.
2023-01-03 02:30:04下载
积分:1
3D circle
3D circle
2022-04-01 04:01:18下载
积分:1