11 2010 档案

摘要:今天调试代码发现自己有一个很基本的问题一直没有意识到:在一个函数里定义的临时对象,在后来再进入该函数时该临时对象并没有在栈上开辟新的空间。如下:struct A{  char szName[128];  int nValue;};void CXXX::Do(){  A dTemp;  int n =1;  int b = 2;  ...  strcpy(dTemp.szName, "1111");... 阅读全文
posted @ 2010-11-10 21:22 CodeKnight 阅读(200) 评论(0) 推荐(0)
摘要:首先认识terrain.cfg中的几个参数,它们是理解ogre地形的基础。# The main world texture (if you wish theterrain manager to create a material for you)WorldTexture=terrain_texture.jpg# The detail texture (if you wish theterrain ... 阅读全文
posted @ 2010-11-06 19:45 CodeKnight 阅读(3103) 评论(2) 推荐(0)