#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 195
// 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小程序。为初学者提供参考。主要包括最小环境的配置、场景的初始化等。
2022-03-19 02:56:56下载
积分:1
Movie player for LINUX,是一个非常全能的播放器,支持包括most MPEG, VOB, AVI, VIVO, ASF/WMV, QT/MO...
Movie player for LINUX,是一个非常全能的播放器,支持包括most MPEG, VOB, AVI, VIVO, ASF/WMV, QT/MOV,DVD,DivX5,wma,ogg,wav,Realplayer8.0在内的许多种媒体格式,对输出的格式支持也非常好(X11, Xv, DGA, OpenGL, SVGAlib, fbdev, AAlib),是LINUX种看电影动画的首选。12月7号放出的版本。这个版本开始支持wmv/wma9了。-Movie player for LINUX is a very all-round player, including support most MPEG, VOB, AVI, VIVO, ASF/WMV, QT/MOV, DVD, DivX5, wma, ogg, wav, Realplayer8.0 of many kinds of media formats, the output format support is also very good (X11, Xv, DGA, OpenGL, SVGAlib, fbdev, AAlib), LINUX species animated movie of choice. December 7 release version. This version of wmv/wma9 support.
2023-08-30 04:45:04下载
积分:1
An OpenGL sample to realize rolling earth.Relate to lighting,texture,time and so...
用OpenGL写的一个实现地球旋转的例程。涉及到光照,纹理,定时器等。-An OpenGL sample to realize rolling earth.Relate to lighting,texture,time and so on.
2022-03-13 08:26:40下载
积分:1
construct 3D characters and achieve a simple control operations
此程构造了3D文字并实现了简单的控制操作-construct 3D characters and achieve a simple control operations
2022-05-21 12:44:48下载
积分:1
OpenGL中实现了物体在墙壁和其他物体上产生影子的效果
OpenGL中实现了物体在墙壁和其他物体上产生影子的效果-OpenGL to achieve the objects in the walls and other objects to produce a shadow effect
2022-02-10 11:40:09下载
积分:1
OpenGL 作图 例子
OpenGL 作图例子 - 全屏幕-OpenGL graphic example- full-screen
2022-11-05 19:30:04下载
积分:1
SDK framework based on the achievement of OpenGL
基于SDK框架下OpenGL的实现-SDK framework based on the achievement of OpenGL
2022-08-03 23:18:42下载
积分:1
Opengl实现的旗帜飘动效果,c语言源代码。
Opengl实现的旗帜飘动效果,c语言源代码。-Opengl realize the effect of the flag fluttering, c language source code.
2022-08-13 07:09:45下载
积分:1
OpenGLOpenGLESdifference
OPENGL与OPENGL ES的异同 很简单 很使用-OpenGLOpenGLESdifference
2022-05-23 10:36:26下载
积分:1
OPENGL源程序,比较不错的。让大家共享一下
OPENGL源程序,比较不错的。让大家共享一下-OPENGL source to compare well. Let everyone share what
2022-02-05 12:01:01下载
积分:1