- 博客(31)
- 资源 (18)
- 收藏
- 关注
原创 zthread的dev c++编译
前一段时间使用vc 编译了zthread ,今晚使用了dev ++编译了zthread大致如下:看了 http://blog.csdn.net/matrixdwy/archive/2008/08/09/2789412.aspx的例子 感觉有点小小的问题啊 呼呼 1. 下载 zthread2. 下载 patch补丁 在这里:patch 2-5-9-7-bin-zpi3.
2009-02-26 22:48:00 1652 1
原创 stl的advance和distance的用法
/* 02.26.2009 www.gaimo.net ccsdu2004@yahoo.com.cn */ #include #include #include #include #include using namespace std;using namespace boost::assign; int main()
2009-02-26 20:47:00 2956
原创 c++设计模式之简单工厂
代码如下:/* 02.26.2009 www.gaimo.net ccsdu2004@yahoo.com.cn */ #include #include using namespace std;class Product{public: virtual ~Product(){} virtual void Ef
2009-02-26 20:37:00 836 1
原创 c++适配器模式
适配器模式就是采用适配器处理本来不兼容的部分代如下:/* 02.25.2009 www.gaimo.net ccsdu2004@yahoo.com.cn */ #include #include #include using namespace std;class Subject{public: v
2009-02-25 22:41:00 2482 8
原创 c++装饰器模式
代码如下,可能不对 /* 02.24.2009 www.gaimo.net ccsdu2004@yahoo.com.cn */ #include #include #include using namespace std;class Item{public: virtual void Call()= 0;
2009-02-24 21:42:00 1252
原创 c++观察者模式
观察者模式就是一组1:n的对象 当目标出现变化的时候自动通知到观察者:代码如下:(估计有点问题) /* 02.23.2009 www.gaimo.net ccsdu2004@yahoo.com.cn */ #include #include #include using namespace std;class Ob
2009-02-24 21:14:00 1250
原创 几个关于数据库的sql语句
1 在ms server中,可以通过 set dateformat *来设置数据库的日期格式 比如 set dateformat dmn 就是把日期格式设置为 日月年的形式 其他的还有 mny 。。。 2. 在ms server中,可以通过 select * from table1 to table2 where 1=2来达到复制数据库表结构的目的比如 select *
2009-02-23 22:28:00 455
原创 c++类的动态继承
代码如下:/* 02.23.2009 www.gaimo.net ccsdu2004@yahoo.com.cn */ #include using namespace std; class A1{public: A1() { cout<<"A1"<<endl; }
2009-02-23 20:06:00 1242 1
原创 刚写的游戏音频管理器
代码如下:未完待续 /* 02.22.2009 ccsdu2004@yahoo.com.cn www.gaimo.net this file */#include #include #include #include using namespace std;using namespace boost;using nam
2009-02-22 22:35:00 1053
原创 boost之scoped_array的使用
看了一会 写个小例子 才当学习#include #include #include using namespace std;using namespace boost; #define MAX 10 int main(){ scoped_array ptr; ptr.reset(new char[MAX]);
2009-02-20 21:31:00 3189
原创 游戏纹理类
看了2个晚上总算设计个一个简易的文理类 如下:/* 19.02.2009 ccsdu2004@yahoo.com.cn www.gaimo.net*//* how to use this class step is: 1. define instance 2. set img pt
2009-02-19 22:10:00 629
原创 这几天晚上
这几天晚上一直在学和构思关于opengl纹理的事情,在游戏引擎方面,想尽快把这个完工。以便可以处理下面的步骤。 今天总算是解决了这个纹理问题,明晚整理下就可以交付使用了 另外,下来要做的还很多比如:1.音频的处理2.资源管理器3.精灵对象4.动画处理5.gui 设计6.框架改善这些都是大问题啊
2009-02-18 23:20:00 475
原创 改造的opengl纹理贴图
在刚才的代码之上我加了点从hehe教程上拿到的代码之后的程序就变成了 #include #include #include #include #define imageWidth 64#define imageHeight 64class texture{public: void makeImage() { int
2009-02-17 22:57:00 714
原创 opengl的纹理
这几天晚上一直在想游戏引擎的纹理的处理可是对这块又不是很熟悉,于是就看看网上的代码,在看看一些本来就有的代码想着如何才能做出符合自己要求的texture这不先乱改几下代码吧 熟悉点就可以使用了#include #include #include #include GLfloat ctrlpoints[4][4][3] = { {{ -1.5, -
2009-02-17 22:44:00 510
原创 自行设计的管理器
/* 02.15.2009 ccsdu2004@yahoo.com.cn www.gaimo.net*/#ifndef G_MANGER_RESMANGER_HPP#define G_MANGER_RESMANGER_HPP #include #include #include using namespace std;usi
2009-02-15 21:08:00 516
原创 boost的operators
/* ccsdu2004@yahoo.com.cn www.gaimo.net 02.15.2009*///dev c++//boost operators. #include #include #include using namespace std;using namespace boost; //less_tahn_compa
2009-02-15 14:33:00 546
原创 boost多位数组
说明问题的例子最好越短越好如下:/* ccsdu2004@yahoo.com.cn www.gaimo.net 02.15.2009*///dev c++//boost多位数组 #include #include #include using namespace std;using namespace boost; cons
2009-02-15 14:09:00 487
原创 模板元编程的循环问题
代码如下:要点为函数静态/* ccsdu2004@yahoo.com.cn www.gaimo.net 02.15.2009*///dev c++#include #include //#include //#include //#include using namespace std; templatecla
2009-02-15 13:49:00 589
原创 c++模板元编程模板的模板参数
代码如下:/* ccsdu2004@yahoo.com.cn www.gaimo.net 02.15.2009*///dev c++#include #include //#include //#include //#include using namespace std; template class F>str
2009-02-15 13:44:00 778
原创 c++模板中静态变量的问题
昨天编程的时候注意到了 模板中使用静态变量的问题 大致若下:/* ccsdu2004@yahoo.com.cn www.gaimo.net 02.15.2009*///dev c++#include #include #include #include #include using namespace std;
2009-02-15 12:07:00 1789 1
原创 c++ stl集合操作函数若干
见下:/* ccsdu2004@yahoo.com.cn www.gaimo.net 02.15.2009*///dev c++#include #include #include #include #include #include using namespace std;using namespace boost::a
2009-02-15 12:05:00 2085 1
原创 游戏日志类
/* 02.14.2009 ccsdu2004@yahoo.com.cn www.gaimo.net*/templateclass link_t : public noncopyable {public: link_t(T _t): t(_t){} void operator()(const T &_t)
2009-02-14 22:11:00 670 1
原创 私下里写的时间类
很简单的 如下:/* 02.14.2009 ccsdu2004@yahoo.com.cn www.gaimo.net*/#ifndef G_UTIL_TIME_HPP#define G_UTIL_TIME_HPP#include #include #include using namespace std; namespace g
2009-02-14 20:23:00 534
原创 学习c++模板元编程2
今天看了下模板元编程在编译期确定变量类型的简单例子和模板的条件状态的用法如下所示:#include #include #include using namespace std;//动态确定类型 templatestruct Type{ typedef T1 GType; }; templatestruct Type{
2009-02-13 20:01:00 619
原创 再贴一段代码(字符串处理的仿函子)
//ccsdu2004@yahoo.com.cn//2009-02-12//cheng du #include #include #include #include #include #include #include #include using namespace std;using namespace boost::assign;
2009-02-12 23:02:00 617
原创 c++文件系统
在做游戏引擎的时候想着能有一个可以遍历文件夹文件的函数或者类这样可以批处理文件。在网上找了找 大多都是关于vc下面所特有的文件遍历函数。后面有看了下 boost的filesystem.感觉符合我的要求,可是总是不能使用(链接的问题)之后在网上见了一片关于文件变量的文章,感觉不错就略作改动 代码如下:原文章链接在代码上面(fire fox不能复制啊-_-) //stem from
2009-02-12 21:59:00 2027
原创 学习模板元编程1
#include #include using namespace std;templatestruct Fib{public: enum{value = Fib::value * N}; };template<>struct Fib{public: enum{value = 1}; };i
2009-02-12 20:32:00 598
原创 python遍历文件夹
##2009-02-10-23-10 cheng du##ccdu2004@yahoo.com.cnimport os,sys## function: find all file in a folder.def file_in_folder(folder): for root, dis, files in os.walk(folder): for fil
2009-02-10 23:15:00 2413
原创 boost bgl dijkstra算法
#include #include #include #include #include #include #include using namespace boost;//链接表typedef adjacency_list > graph_t;//点typedef graph_traits ::vertex_descriptor v
2009-02-08 14:47:00 3604
原创 c++桥模式
#include #include #include using namespace std;class base { public: virtual void run(){} } ; class dev1 : public base { public: void run(){cout<<"dev1"
2009-02-07 20:45:00 1080
原创 我写的读取ini文件的类
/* 核动力机器人 盖莫游戏实验室 www.gaimo.net ccsdu2004@yahoo.com.cn 22.11.2008 成都*/// 功能:操作ini文件#ifndef G_UTIL_CFG_H#define G_UTIL_CFG_H#include #include #include #in
2009-02-04 23:27:00 754
自己写的音频sdk,包含解码编码以及音效
2013-09-13
盖莫音频引擎1.5.5
2010-06-24
GAudio 1.4.2 alpha音频引擎 gcc版本
2010-05-28
盖莫音频引擎1.4.2 vc版本
2010-05-28
盖莫音频引擎1.2.8
2010-04-27
盖莫游戏引擎2.1.1 part2
2010-04-19
GEngine2.1.1 part1
2010-04-19
3d游戏引擎GEngine2.1.1sdk
2010-04-19
盖莫游戏引擎2.1.0版本
2010-03-12
盖莫游戏音频引擎支持oog,mp3,wav格式,多线程流式播放,使用超级简便
2010-01-23
G3d游戏引擎的使用(俺的游戏引擎)
2009-06-28
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人