#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 175
// 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
下载说明:请别用迅雷下载,失败请重下,重下不扣分!
gpu精粹中光的干涉模拟源码opengl 版
gpu精粹中光的干涉模拟源码opengl版-gpu gems in the simulation of interference of light source opengl version
2023-07-18 18:40:05下载
积分:1
墙上的时钟
应用背景任何软件的设计取决于在该软件运行的计算机体系结构,其中的设计师需要知道系统的体系结构。设计过程中涉及的设计合适的算法,模块,子系统,接口等项目由本设计的实施过程中,墙上的时钟关键技术可怕的实施开放gl.very好项目挂钟
2022-01-26 08:31:40下载
积分:1
多边形和圆的动画
1。图的边在视口的radius5宽度= 200高度= 200。最初的左侧和底部是50和50 theviewport。屏幕的宽度和高度分别为640和480。的两侧,将3边形initialnumber。在画边设置colorsaccording t值:A.布莱克:T>[ 0,0.25)B.红色:T>[ 0.25,0.5)C.绿色:T>[ 0.5,0.75)D.蓝色:T>[ 0.75,1 ]允许用户移动视口上,下,左、右使用键W,S,A和D。每个键将viewportby 10像素。如果用户按下鼠标右键然后得出n-gonusing gl_points和动画面数从3到32和从3回到32to。
2022-06-28 21:19:37下载
积分:1
cg project
2022-02-25 20:19:54下载
积分:1
vs2008下基于mfc框架的OpenGL多视区演示程序。
vs2008下基于mfc框架的OpenGL多视区演示程序。-vs2008 framework OpenGL Based mfc multi-viewport demo program.
2022-03-30 03:42:40下载
积分:1
Du Sabin和butterfly等曲面细分算法。使用openGL绘制
Du Sabin和butterfly等曲面细分算法。使用openGL绘制-Du Sabin and butterfly, and other sub-surface algorithm. Drawing use openGL
2022-04-22 01:32:45下载
积分:1
Simple Draw using Opengl primitives in c++, this time the most easy draw: a poin...
Simple Draw using Opengl primitives in c++, this time the most easy draw: a point
2022-02-07 12:41:03下载
积分:1
OpenGL中的平移缩放、旋转
Panning zooming and rotation in OpenGL
2022-07-17 15:14:58下载
积分:1
opengal的一个小例子,大家可以交流一下,其实opengal的功能很强大的,学习ing...
opengal的一个小例子,大家可以交流一下,其实opengal的功能很强大的,学习ing-opengal a small example, we can exchange, in fact, the function of opengal very powerful, learning ing
2022-03-15 17:17:03下载
积分:1
csc108 Assignment
Raytracing example
implement a basic ray-tracer and render a simple scene using ray casting and local shading. The starter code sets up a scene comprising of an ellipsoid and a plane, being illuminated by a point light source. Your job is to render the scene by implementing code fragments required for object intersections and Phong shading.
2022-07-17 14:08:05下载
积分:1