
OpenGL
文章平均质量分 68
只缘心高嫌地窄
hg
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
OpenGL 基本配置 & Codeblocks VC6.0 配置链接库 & 茶壶视角 & 矩形
Sublime 编译OpenGL sudo apt-get install build-essential libgl1-mesa-dev libglu1-mesa-dev freeglut3-dev Tools -> Build System -> New Build System { "shell": true, "cmd": ["g++ \"${file}\原创 2016-03-17 16:21:14 · 1063 阅读 · 0 评论 -
平移 & 旋转 & 双缓冲 & 双缓存 & 空闲调用 & 激活函数(启用功能) & 按键控制
参考: kiya-z OpenGL系列 旋转金字塔#include<GL/glut.h> #include<stdlib.h> #pragma comment(linker,"/subsystem:\"windows\" /entry:\"mainCRTStartup\"") GLfloat rtri; //金字塔旋转角度,==这个东西叫金字塔貌似不怎么样。。。只是因为底面没有填充。。 f原创 2016-03-20 11:15:39 · 1126 阅读 · 0 评论 -
画线算法 中点画线 Bresenham DDA
画线算法 中点画线 Bresenham DDA Reshape 在模板那里介绍 #include<GL/glut.h> #include<math.h> #pragma comment(linker,"/subsystem:\"windows\" /entry:\"mainCRTStartup\"") //DDA画法(依据斜率) void DDA(int x1, int y1, in原创 2016-03-20 11:05:15 · 5551 阅读 · 0 评论 -
seedFilling & glReadPixels
部分转载自:here 图形学作业 种子填充画五角星 #include <GL/glut.h> #include <stdlib.h> #include <unistd.h> #include <iostream> #include <math.h> using namespace std; float pCenter[2]; float Length, angle = 0; f原创 2016-04-08 17:17:38 · 902 阅读 · 0 评论 -
扫描线填充算法 & 指针操作要注意的地方
// 扫描线填充,将可执行文件删除 #include <GL/glut.h> #include <stdio.h> #include <stdlib.h> #include <math.h> #include <iostream> #include <algorithm> #include <unistd.h> using namespace std; int wWidth, wHeight; co原创 2016-05-02 19:32:15 · 823 阅读 · 0 评论 -
Module
include include include include “stdafx.h”include原创 2016-03-18 15:51:10 · 775 阅读 · 0 评论 -
五角星自由变换和移动 & 结构体数组初始化 & DIRECTION
// 五角星运动方向 #include <GL/glut.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <math.h> #include <time.h> #include <iostream> using namespace std; int wWidth, wHeight; int rtheta,原创 2016-05-02 19:35:08 · 653 阅读 · 0 评论