自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(6)
  • 资源 (6)
  • 收藏
  • 关注

原创 Sutherland-Hodgman多边形裁剪

typedef enum{ Left, Right, Bottom, Top } Boundary;const GLint nClip = 4;class wcPt2D{public: GLfloat x,y; wcPt2D(GLfloat _x, GLfloat _y) { x = _x; y = _y; } wcPt2D()

2009-09-25 20:01:00 2356 4

原创 两个玻璃球和 100层高楼 问题

你有两个玻璃球和一个100层的大高楼,你想测出最低在那一层将玻璃球丢下,玻璃球便会破碎。用什么样的战术可以确保得到结果(i.e. 你的战术不能出现两个球都碎了,还找不到答案的情况),并且总共丢球的次数最小化?如果你有 N 个玻璃球,你的战术会是什么? 在http://www.xycq.net/forum/thread-123745-1-6.html 看到比较巧妙的分析,受益匪浅,所以决定记

2009-09-25 15:15:00 6863

原创 Liang - Barsk 线段裁剪算法

GLint clipTest(GLfloat p, GLfloat q, GLfloat * u1, GLfloat * u2){ GLfloat r; GLint returnValue = true; if( p < 0.0 ) { r = q / p; if( r > *u2) returnValue = false; else if( r

2009-09-25 15:13:00 1861

原创 Cohen-Sutherland线段裁剪算法

lass wcPt2D{public: GLfloat x,y; wcPt2D(GLfloat _x, GLfloat _y) { x = _x; y = _y; } wcPt2D() { x = 0; y = 0; }};extern int round(const float a);extern void li

2009-09-25 15:09:00 1620

原创 中心点画圆算法 实现

void circlePlotPoints(GLint xc, GLint yc, screenPt circPt){ setPixel( xc + circPt.getx(), yc + circPt.gety()); setPixel( xc - circPt.getx(), yc + circPt.gety()); setPixel( xc + circPt.getx(),

2009-09-23 22:57:00 2105 2

原创 bresenham 画直线算法

void lineBresenham(int nStartX, int nStartY, int nEndX, int nEndY){ int dx = abs(nEndX - nStartX); int dy = abs(nEndY - nStartY); if( dx == 0 ) { if( nStartY > nEndY ) { int tem

2009-09-23 22:52:00 1105

Switchysharp for Chrome.zip

Switchysharp 以及其配置文件

2013-09-01

opengles 2.0 programming guide source code

opengles 2.0 programming guide source code 带pdf

2013-08-08

HTML5.Canvas.Steve.Fulton

HTML5.Canvas by Steve.Fulton

2012-02-10

opengl函数查询文档(.chm格式)

opengl函数查询文档,用来查询opengl接口的说明文档

2007-10-31

MP3Dec2Wav

mp3转wav的源代码

2007-10-12

wmvcore_and_wmstub.rar

wmvcore.lib wmstub.lib, directshow 有些程序需要的两个lib<br>

2007-10-12

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除