#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 190
// 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 设计
太阳系非常华丽的用opengl设计 -taiyangxi
2022-03-26 03:40:04下载
积分:1
一个opengl 模拟天空山地的源程序
一个opengl模拟天空山地的源程序-A simulation of the sky mountains opengl source
2022-04-10 11:38:06下载
积分:1
OpenGL samples
openGl 例 源自OpenGL 应用程序开发。-OpenGL samples-3
2022-02-13 22:20:13下载
积分:1
光线追踪源代码
基于HTML5 canvas,使用光线追踪方法渲染场景。
可定义球体,平面,立方体,圆柱体等物体。
可定义物体的材质,漫反射系数,镜面反射系数,反射率。
可定义光源的颜色,方向。
可定义多个光源。
可定义观察位置,观察方向,视角大小。
可定义追踪光线的深度。
效果
实现了反射,阴影等效果,可以得到较有真实感图像。
实现
源代码:raytracer, render。
函数init()进行在场景内放置物体,设置物体参数位置材质,光源与相机参数。
暂时只用了平行光,还没有加入点光源。
没有实现透明物体,折射效果。
2022-12-03 02:25:03下载
积分:1
openGL+VC++摩托车仿真程序。旋转、缩放等操作…
OpenGL+VC++
摩托车模拟程序。
旋转,放大等操作-OpenGL+ VC++ Motorcycle simulation program. Rotating, zooming and other operations
2022-12-13 20:25:03下载
积分:1
利用OpenGL实现GPU和三
使用GPU和OpenGL实现的三维水波模拟,借助纹理映射模拟水波的倒影。-The use of GPU and OpenGL realize three-dimensional wave simulation, using texture mapping of the reflection wave simulation.
2022-08-08 02:51:03下载
积分:1
OpenGL Super Bible Chapter IV, not yet finished, please let station points.
OpenGL 超级宝典第四章,还没有完,请站长加分吧。-OpenGL Super Bible Chapter IV, not yet finished, please let station points.
2023-02-22 02:20:04下载
积分:1
3D编程 用opengl 编程时的最近本框架,适合刚学图 形变成的人学习,有助于理解编成原理...
3D编程 用opengl编程时的最近本框架,适合刚学图形变成的人学习,有助于理解编成原理-3D programming using opengl programming at the last of this framework, just learning to fit into graphics learning from the people, help understanding into Principle
2022-06-29 02:41:11下载
积分:1
三维开发成果(OPENGL)
三维开发成果(OPENGL)-3D development results (OpenGL)
2022-02-03 13:21:43下载
积分:1
OPENGL的图 形变换,有缩小,平移,旋转三中效果,在VC-OPENGL编译运行成功,没有动画效果,与本站Bounce...
OPENGL的图形变换,有缩小,平移,旋转三中效果,在VC-OPENGL编译运行成功,没有动画效果,与本站Bounce-opengl.rar,2163KB原代码有很大区别,是从不同角度实现的.
-OpenGL graphics transformation, a narrowing, translation, rotation III results the VC-compiler OpenGL successful operation, no animation, and the site Bounce- opengl.rar, 2163KB source code, a great difference. from different angles achieved.
2023-03-22 00:05:03下载
积分:1