#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 219
// 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
下载说明:请别用迅雷下载,失败请重下,重下不扣分!
opengl 源代码,实现了conjugate gradient method共轭斜量法
opengl源代码,实现了conjugate gradient method共轭斜量法-opengl source code, to achieve a conjugate gradient method Conjugate Gradient Method
2022-04-27 22:29:15下载
积分:1
OpenGL high
OpenGL高级编程与可视化系统开发(高级编程篇)的随书源码-4,学习OpenGL的好东西-OpenGL Programming and Advanced Visualization System (Advanced Programming Part 1) the source-4 with books, learning the good stuff OpenGL -OpenGL high-level programming and visualization systems development (high-level programming chapter)-4 of the source with the book, learning OpenGL good things-OpenGL Programming and Advanced Visualization System (Advanced Programming Part 1) the source-4 with books, learning the good stuff OpenGL
2023-02-06 17:55:04下载
积分:1
矩阵的使用,glPushMatrix,glPopMatrix
矩阵的使用,glPushMatrix,glPopMatrix-The use of matrix, glPushMatrix, glPopMatrix
2022-03-01 13:00:57下载
积分:1
盒子中飞出气球
#include "stdafx.h"
#include "welcome.h"
#include "MainFrm.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CMainFrame
IMPLEMEN
2022-03-18 11:49:16下载
积分:1
在VC6.0下使用OpenGL的网格化GLUtesselator的一个演示程序!
在VC6.0下使用OpenGL的网格化GLUtesselator的一个演示程序!-The use of OpenGL in VC6.0 Grid GLUtesselator a demo!
2022-03-07 18:40:22下载
积分:1
基于OpenGL的3D赛车游戏
资源描述OpenGL 是一个 3D 图形 API (Application Programming
Interface,应用程序编程接口),英文全称“Open Graphics Library”,即开放的图形程序接口技术,它广泛的应用与数字化应用技术以及娱乐领域,它具有开放性的图形库,良好的可移植性,是跨平台的计算机工业标准应用程序接口,它主要应用于专业3D 图形设计领域。若能利用OpenGL营造出逼真的视听效果和具有模拟驾驶感觉的赛车系统,将能给玩家和车迷带来身临其境的感觉。
2022-08-15 03:14:03下载
积分:1
该代码详细给出了opegGL中二维纹理生成的实例,对于openGL初学者了解纹理生成有很大帮助...
该代码详细给出了opegGL中二维纹理生成的实例,对于openGL初学者了解纹理生成有很大帮助
-texture generating
2022-06-14 05:11:12下载
积分:1
用OpenGL显示三维图 像 ,可以自己先生成空间高度数据,设置视点和目标点....
用OpenGL显示三维图像,可以自己先生成空间高度数据,设置视点和目标点.-show with OpenGL 3D images into their own space, Mr. height data, viewpoint and set up the goal.
2023-06-26 09:50:05下载
积分:1
使用openGL绘制简单2d,3d图 像 。绘制正弦曲线等数学图 形。
使用openGL绘制简单2d,3d图像。绘制正弦曲线等数学图形。-The use of openGL drawing simple 2d, 3d image. Sinusoid, such as rendering graphics mathematics.
2023-03-30 07:00:04下载
积分:1
用OpenGL实现对环境光、物体质材、颜色等多种结合起来的模拟程序界面等各方面的都源于自己的设计,,Visual C++...
用OpenGL实现对环境光、物体质材、颜色等多种结合起来的模拟程序界面等各方面的都源于自己的设计,,Visual C++
-use OpenGL light on the environment, on physical build, color combination of a variety of simulation program interface, and other aspects of their originates in the design, Visual C
2023-06-26 05:20:04下载
积分:1