#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 184
// 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
下载说明:请别用迅雷下载,失败请重下,重下不扣分!
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
3D 图 形功能
使用陶的 3D 图形进行编程的例子。轴、 缩放、 旋转运动。不同的形状。图平面。
2023-08-13 19:30:03下载
积分:1
一个opengl 编写的小程序,是关于不同shading之间的转化
一个opengl编写的小程序,是关于不同shading之间的转化
-opengl prepared in a small program is on between the different shading into
2022-05-05 01:33:49下载
积分:1
OpenGL procedures : using recursive method and drawing cylindrical patch
OpenGL程序:用递归和贴片法绘制圆柱-OpenGL procedures : using recursive method and drawing cylindrical patch
2022-07-25 02:36:01下载
积分:1
在VC++中嵌入OpenGL
实现带纹理的三棱锥及其旋转和控制
在VC++中嵌入OpenGL
实现带纹理的三棱锥及其旋转和控制-in VC embedded OpenGL texture with the pyramid and its three rotating and control
2022-02-12 04:41:26下载
积分:1
An Java OpenGL example illustrating basics of collision detection, collision res...
An Java OpenGL example illustrating basics of collision detection, collision response, and physically based modelling effects.
2022-01-24 15:04:24下载
积分:1
his OpenGL Component Builder is for C Versi on 5.0.
his OpenGL Component is for C++ Builder Version 5.0.-his OpenGL Component Builder is for C Versi on 5.0.
2022-04-23 17:49:39下载
积分:1
利用OpenGL来编程实现多边形扫描线算法,要实现不容易,需要多次编译。...
利用OpenGL来编程实现多边形扫描线算法,要实现不容易,需要多次编译。
-to use OpenGL Programming polygon scan-line algorithm, is not easy to achieve the required number of compiler.
2022-06-17 09:43:24下载
积分:1
MFC中三维图 形的旋转缩放平移
在vs2010 C++ MFC opengl 环境中实现,MFC中三维图形的旋转缩放平移,键盘控制物体上下左右移动,和鼠标控制物体旋转,鼠标滚轮控制物体放大缩小,这里绘制的图形是一个长方体
2022-06-15 17:19:00下载
积分: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