- 博客(8)
- 收藏
- 关注
原创 Extension Interface
All contents are extracted from POSA2. The Extension Interface design pattern allows multiple interfaces to be exported by a component, to prevent bloating of interfaces and breaking of client co
2011-06-26 23:48:00 686
原创 Summary of interceptor introduced in POSA2
This pattern allows services to be added transparently to a framework and triggered automatically when certain events occur. Concrete Framework : A concrete framework instantiates a generic and e
2011-06-21 15:04:00 438
原创 Reading Response of Component Configurator in POSA2
Refer to POSA2 for any details. This article is a simple review with some records that give me brain storming in the book. The Component Configurable design pattern also known as Service Configura
2011-06-19 10:05:00 460
原创 Weird Events
Q1: (surrendered) istream::gcount() can not work?A1: Now I apply strlen() function to the read-buffer instead of invocation to gcount() as a temporary alternative.I should overview and debug the STL a
2011-06-15 17:16:00 534
原创 Review of Wrapper Facade in POSA2
Facade is a pattern which was referred to in so many books or articles. Here is a simple review of facade in POSA2, in which facade is called wrapper facade. For more details, refer to POSA2. They
2011-06-13 23:42:00 566
原创 WaitForMultipleObjects啊!
WaitForMultipleObjects等待多个线程的结束信号,无效,必须循环调用WaitForSingleObject,经过bing(最近毫无理由地支持bing)搜寻,总结了两个小细节如下: 1、_beginthread出来的线程完成后自动调用的_endthread会执行CloseHandle把线程handle干掉,而_beginthreadex不会。2、WaitForMulti
2011-06-09 11:02:00 1112
原创 无痛运行OGRE和CEGUI中的例子
OGRE:1、下载OgreSDK_vc9_v1-7-22、用现成的sln编译3、编译完成后另开一个vs新建一个win32项目4、贴上wiki基础教程的一小段代码5、遇到各种依赖库问题,在工具/选项/项目和解决方案/VC++目录下设置6、调试工作目录设为[ogrehome]/bin/debug7、字符集设为多字节8、完成 CEGUI:1、下载CEGUI-S
2011-06-05 18:53:00 1644 1
原创 3D游戏部分基础数学知识整理笔记1
<br />详细内容参看《3D游戏编程大师技巧》或更专业的数学书籍。<br />1.很多图形算法都以这样的方式进行优化:在第一象限中解决问题,根据对称性将解决方案反射到其他象限。<br />2.2D笛卡尔坐标(Cartesian Coordinates)用(x,y)形式标示一个点,2D极坐标(polar coordinates)用(距离,角度)形式标示一个点。<br />3.2D极坐标转为2D笛卡尔坐标,x=距离*cos(角度),y=距离*sin(角度)。<br />4.2D笛卡尔坐标转为2D极坐标,距离=
2011-06-01 18:34:00 1086
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人