自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

爱冒险的技术宅

这就是我对待梦想的态度.

  • 博客(4)
  • 资源 (56)
  • 收藏
  • 关注

原创 一个通用的有限状态机(FSM)框架

吃饭,睡觉,打豆豆现在要实现一个游戏中的一个NPC的AI, 他只做三件事,吃饭,睡觉,打豆豆,最直接,最简答想到的代码应该是这样。void Update(){ if(Hungry) { Eat(); return; } if(Sleepy) { Sleep(); return; } if(Bored) { KickDD(); return; }

2016-04-19 02:08:34 27048 7

原创 碰撞检测之OBB-OBB的SweepTest

提要当物体在运动的时候,普通的每帧进行碰撞检测已经无法满足要求,比如子弹的运动两帧的位置已经直接将中间的板子穿过了,所以 t 时刻和 t +1 时刻的检测都是失效的。这时候需要用到的就是sweep检测了。今天要处理的就是AABB的Sweep检测。2D情况如下图,当前位置是蓝色Box所在位置,目的位置是绿色框所在位置。2D情况只用处理x,y方向的,利用SAP理论,分别在各个轴向计算可以移动的距离。代

2016-04-12 01:20:57 5373 2

原创 C#中常用容器的使用与底层数据结构

从使用的频率一个个来简单说一下。Array/ArrayList/List/LinkedListArray数组在C#中最早出现的。在内存中是连续存储的,所以它的索引速度非常快,而且赋值与修改元素也很简单。string[] s=new string[2]; //赋值 s[0]="a"; s[1]="b"; //修改 s[1]="a1"; 但是数组存在一些不足的地方。在数组的两

2016-04-09 21:14:33 19283 6

原创 基于C#反射机制的工厂模式

简介反射提供了描述程序集、模块和类型的对象(Type 类型)。可以使用反射动态创建类型的实例,将类型绑定到现有对象,或从现有对象获取类型并调用其方法或访问其字段和属性。如果代码中使用了特性,可以利用反射来访问它们。这里的类型信息包括类型的方法,变量名称,类型等信息。参考反射(C# 和 Visual Basic) - https://msdn.microsoft.com/zh-cn/library/

2016-04-09 19:11:22 7505 1

OpenGLPro12

OpenGLPro12 代码

2013-08-17

stanford_bunny

The bunny was bought and scanned in 1993-94. The color photograph (above) was taken on April 1, 2003. The bits of gray plaster on the sides of the bunny's feet somehow appeared since the bunny was scanned; they are not present in the 3D model. The chip on his left ear, however, is present in the model as well, although degraded in resolution.

2013-08-17

Android lOADER

Android 3DS MD2 加载

2013-08-10

SDL+OpenGL+GLSL

SDLFramework1.1

2013-08-07

Radiation glsl

Radiation glsl

2013-08-07

SDLPro10

SDLPro10

2013-08-02

SDLFramework

SDLFramework for OpenGL in C++.

2013-08-02

glm-0.9.4.4

glm-0.9.4.4

2013-08-01

百度定位demo

百度定位demo

2013-05-03

nerdtree文件浏览插件

vim 下的文件浏览插件

2013-04-29

GdxTestGame

GdxTestGame

2013-04-24

TestGdxGame

TestGdxGame

2013-04-22

faenza-icon-theme

faenza-icon-theme

2013-03-12

Android仿苹果的自定义galleryDemo

Android仿苹果的自定义galleryDemo

2013-03-03

滑动fregmentDemo

滑动fregmentDemo

2013-03-03

mupdf 浏览器

mupdf 浏览器

2013-02-27

readline

readline5_5.2

2013-02-24

YaHei.Consolas

YaHei.Consolas.1.11b.ttf

2013-02-24

OpenGL 分形入门

OpenGL 分形入门 康托集 Koch雪花 OpenGL 分形入门 康托集 Koch雪花 OpenGL 分形入门 康托集 Koch雪花

2012-12-29

OpenGL粒子系统

OpenGL 粒子系统 C/C++

2012-12-29

openGL中的物理模拟

openGL中的物理模拟

2012-12-21

光线追踪算法C++实现

光线追踪算法C++实现

2012-11-17

词典数据库

词典数据库

2012-10-01

Axsure快速原型设计

Axsure快速原型设计

2012-09-24

Unity3d的shader学习

Unity3D游戏开发从零单排(八) - Shader基础

2014-09-26

Unity3D的 Shader例子

Unity3D游戏开发从零单排(八) - Shader基础 - http://blog.csdn.net/silangquan/article/details/39576477

2014-09-26

Unity3D地形文件

Unity3D 地形

2014-04-27

xvidcap_amd64.deb

xvidcap_amd64.deb

2014-03-07

3ds max模型导入工具objloader

objloader1.4.1

2014-01-04

Resources_airhockey

Android 双人游戏源码 游戏需要分享才能获得快乐,想想你以前玩过的那些游戏,那些会是真正地存在你婶婶的脑海里?是独自一人躲在被窝里酣战PSP,还是和哥们在网吧一起开黑?是一个人单刷迅龙三连,还是和朋友联机怒刷黄黑龙?

2013-12-28

OpenGLTexture

OpenGLTexture

2013-11-25

GameResources游戏编程

GameResources游戏编程

2013-11-24

基于Qt的图像采集系统

基于Qt的图像采集系统 基于Qt的图像采集系统基于Qt的图像采集系统 基于Qt的图像采集系统 http://blog.csdn.net/silangquan/article/details/11808675

2013-09-18

Android PreferenceFragment

Android Preference Fragment 实例。

2013-09-04

g77_pack g77_pack

the generated directory will contain the following files: cpp-3.4_3.4.6-6ubuntu3_i386.deb g77-3.4_3.4.6-6ubuntu3_i386.deb gcc-3.4_3.4.6-6ubuntu3_i386.deb gcc-3.4-base_3.4.6-6ubuntu3_i386.deb libg2c0_3.4.6-6ubuntu3_i386.deb libg2c0-dev_3.4.6-6ubuntu3_i386.deb install.sh install the g77 package using the following command: sudo ./install.sh

2013-08-28

OpenGLPro13

OpenGLPro13 源码

2013-08-27

mupdf_android_lib

mupdf交叉编译好的.so文件 mupdf是一个开源pdf解析库

2013-08-26

ffmpeg-snapshot

FFmpeg has always been a very experimental and developer-driven project. It is a key component in many multimedia projects and has new features added constantly. Development branch snapshots work really well 99% of the time so people are not afraid to use them.

2013-08-21

xvidcapi386.deb

This site is about xvidcap, a small tool to capture things going on on an X-Windows display to either individual frames or an MPEG video. On Windows machines there are commercial tools like Lotus ScreenCam or Camtasia which do a very good job esp. for the purpose I was needing such a tool for: Software documentation, esp. installation procedures and such.

2013-08-21

Radiation in c++

Radiation in c++

2013-08-15

空空如也

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

TA关注的人

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