#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 198
// 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
下载说明:请别用迅雷下载,失败请重下,重下不扣分!
Setting Up Direct3D In A D
在D中设置Direct3D
2022-01-25 16:01:09下载
积分:1
利用 Open GL 制作的 3D 物体控件及相关之类别库,并提供管理光源、材质等对象特性的 TTreeView 控件 ( 0.8.0 版,附原始程序代码,使用...
利用 Open GL 制作的 3D 物体控件及相关之类别库,并提供管理光源、材质等对象特性的 TTreeView 控件 ( 0.8.0 版,附原始程序代码,使用前请先下在安装 GRAPHICEX33.ZIP 及 OPENGL12.ZIP )-produced using Open GL 3D objects and control related categories arsenals, and provide management source, Material properties of objects such as TTreeView component (version 0.8.0, with the source code, under the post before use in the installation and OPENGL12.ZIP GRAPHICEX33.ZIP)
2022-05-31 17:54:57下载
积分:1
VC6.0 used to create a Bezier curve drawing, the initial application
使用VC6.0创建一个绘制Bezier曲线的工程,初级应用-VC6.0 used to create a Bezier curve drawing, the initial application
2022-01-24 09:58:21下载
积分:1
水木清华的精华区OpenGL系列例程及教程,非常好,适合OpenGL初学者...
水木清华的精华区OpenGL系列例程及教程,非常好,适合OpenGL初学者-SMTH, the focus of OpenGL series of routines and classes, is very good and is suitable for beginners OpenGL
2022-06-28 07:38:31下载
积分:1
查看OpenGL 3D渲染
在OpenGL视图中绘制三维物体-view of the OpenGL 3D Rendering
2022-01-26 06:45:14下载
积分:1
wrote GLUT programs not involve programming window, so teaching programs broadca...
编写的GLUT程序不涉及编程窗口,所以教学程序广播GLUT大多数语言,但没有内置的GLUT窗口,必须先安装GLUT
2022-12-27 06:50:03下载
积分:1
C++ 编写的太阳系模拟系统,采用rugge/kutta4阶算法,opengl
C++ 编写的太阳系模拟系统,采用rugge/kutta4阶算法,opengl-C preparation of the solar system simulation system used rugge/kutta4 band algorithm, opengl
2022-02-07 01:25:43下载
积分:1
SPH OpenGL仿真
项目是基于马蒂亚斯穆勒的(等)申请光滑粒子动力学(SPH)流体模拟研究 - 本质上模拟流体,成千上万的小颗粒,而不是传统的欧拉网格为基础的方法。用C++与OpenGL的。
2022-02-01 23:50:37下载
积分:1
不使用DirectX或OpenGL作成的3D立方体效果
不使用DirectX或OpenGL作成的3D立方体效果-not use DirectX or OpenGL 3D cube make the results
2022-06-19 02:45:16下载
积分:1
opengl 编程实现旋转、平移、缩放等功能
opengl 编程 实现旋转、平移、缩放等功能 可以漫游整个场景
2022-05-21 15:46:46下载
积分:1