摘要: http://blog.csdn.net/favormm/article/details/5796587http://www.cnblogs.com/osyun/tag/tolua/ 阅读全文
posted @ 2013-01-08 21:47 byfei 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 来源:http://blog.csdn.net/jize00/archive/2010/01/27/5259891.aspx花了两天时间,总算把Sample下的例子跑成功了,真不容易啊,呵呵,现把遇到的问题解决等做个小小的总结吧,供初学者交流参考,若有说错的地方,欢迎指正。1、下载:http://www.cegui.org.uk/wiki/index.php/Downloads最新版本为0.7.1,点进去后会发现有多个download链接,简单翻译下:a)CEGUI 0.7.1 Library Source Downloads:CEGUI源码,里面的[projects/premake]目录下有 阅读全文
posted @ 2013-01-08 17:59 byfei 阅读(326) 评论(0) 推荐(0) 编辑
摘要: tolua++ 配置看到很多方法将lua和c++结合的办法,由于看到cegui使用的是tolua++,所以决定使用tolua++。1、下载tolua++www.codenix.com/~tolua/2、找到 tolua++-1.0.93\win32\vc7文件夹,编译程序生产tolua++.exe(我用的include和lib都是cegui里的,统一版本比较好)3、测试tolua++(下面是参照他人的http://blog.csdn.net/foruok/archive/2008/04/17/2301751.aspx)创建tarray.pkg文件:$#include "tarray. 阅读全文
posted @ 2013-01-08 17:49 byfei 阅读(1256) 评论(0) 推荐(0) 编辑
摘要: 工具ValgrindPurify 阅读全文
posted @ 2013-01-08 17:19 byfei 阅读(105) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/lqk1985/article/details/7190971 阅读全文
posted @ 2013-01-08 16:56 byfei 阅读(101) 评论(0) 推荐(0) 编辑
摘要: Account = {balance = 0}function Account:new (o)o = o or {}setmetatable(o, self)self.__index = selfprint("This is Base")return oend... 阅读全文
posted @ 2013-01-08 16:56 byfei 阅读(34) 评论(0) 推荐(0) 编辑
摘要: Account = {balance = 0}function Account:new (o) o = o or {} setmetatable(o, self) self.__index = self print("This is Base") return oendfunction Account:deposit (v) self.balance = self.balance + vendfunction Account:withdraw (v) if v > self.balance then error"insufficient funds" 阅读全文
posted @ 2013-01-08 16:48 byfei 阅读(179) 评论(0) 推荐(0) 编辑
摘要: local _class={}function class(super) local class_type={} class_type.ctor=false class_type.super=super class_type.new=function(...) local obj={} do local create create = function(c,...) if c.super then create(c.super,...) end if c.ctor then c.ctor(obj,...) end e... 阅读全文
posted @ 2013-01-08 15:49 byfei 阅读(390) 评论(0) 推荐(0) 编辑