自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

ccsdu2004的专栏

技术博客

  • 博客(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

我写的基于OPENGL的GUI 稳定版本

我写的基于OPENGL的GUI库 稳定版本

2016-03-17

我写的基于OPENGL的GUI

我写的基于OPENGL的成套GUI库 代码清晰易懂使用超级方便 支持控件序列化和反序列化 支持整体和单个控件换肤

2016-01-22

GAudio Libarary 2.2.1.0

一个专业的音频播放和音效库 使用c/c++书写 支持超过10种的音频格式 和支持超过10种的音效 使用超级方便

2015-12-10

自己写的音频sdk,包含解码编码以及音效

gaudio - 2.0.6.0是一个基于C/C++混合编程的跨平台音频库,当前支持windows32操作系统和linux32位操作系统

2013-09-13

盖莫音频引擎1.5.5

盖莫音频引擎(API) 是使用标准c++写的音频播放软件支持devc++,codeblock,vc6,vc7.1,vc8.,vc9编辑器平台支持xp,vista,win7 当前支持ogg,mp3,wav,au,aiff,xm,it,mod,s3m,flac共10种音频格式使用多线程流式播放音频支持回响等音频特效当前提供音频的播放时间和音频总长可使用于游戏开发和工业软件等业余使用不收取如何费用欢迎联系

2010-06-24

GAudio 1.4.2 alpha音频引擎 gcc版本

盖莫音频引擎1.4.2发布 1.支持平台win7,xp,vista 2.支持语言c++ 3.支持编译器vc6.0,vc7.1,vc8,vc9,devc++,codeblock 4.支持音频格式flac,aiff,wav,it,mod,s3m,xm,ogg,mp3 5.播放模式:多线程流式播放 6.使用多线程处理音频录入

2010-05-28

盖莫音频引擎1.4.2 vc版本

盖莫音频引擎1.4.2发布 1.支持平台win7,xp,vista 2.支持语言c++ 3.支持编译器vc6.0,vc7.1,vc8,vc9,devc++,codeblock 4.支持音频格式flac,aiff,wav,it,mod,s3m,xm,ogg,mp3 5.播放模式:多线程流式播放 6.使用多线程处理音频录入

2010-05-28

盖莫音频引擎1.2.8

盖莫音频引擎(API) 当前发布版本1.2.8 使用c++编写 支持mp3,ogg,wav,xm,mod,it,s3m格式 多线程,流式播放 真3d音效 支持低通,次级音效 非商业用途免费!

2010-04-27

盖莫游戏引擎2.1.1 part2

这是盖莫游戏引擎2.1.1part2部分 需要配合part1使用 part1地址 http://download.csdn.net/source/2257248

2010-04-19

GEngine2.1.1 part1

这是盖莫游戏引擎2.1.1的第一个部分 里面的东西为需要使用的dll 盖莫游戏引擎使用c++编写 当前版本为2.1.1 使用引擎前需要确保安装了openAL 使用方法 下载GEngine2.1.1 part1 GEngine2.1.1 part2之后把GEngine2.1.1 part1解压后的dll和exe放置在解压GEngine2.1.1 part2后的Bin文件夹下即可使用

2010-04-19

3d游戏引擎GEngine2.1.1sdk

盖莫游戏引擎2.1.1sdk1 需要配合其sdk2使用 这里是使用盖莫游戏引擎设计的一个小游戏 http://download.csdn.net/source/2257020

2010-04-19

GEngine2.1.1dll

这是盖莫游戏引擎2.1.1的dll(里面包含了sigc++.dll,zthread.dll等等) 需要配合GEngine.zip使用

2010-04-19

盖莫音频引擎1.1版

支持mp3,ogg,wav 格式 自带几种音效模式 3d音效 第一次发布为盖莫音频引擎1.0

2010-03-17

盖莫游戏引擎2.1.0版本

这是盖莫游戏引擎的第一次正式发布 盖莫游戏引擎是在csdu2004私人书写的盖莫游戏引擎基础上发展而成 前期以各种方式发布过0.87,1.03,1.1,1.2,1.3,1.4.1.5,1.6 本次发布版本为2.10版本 当然该版本也是首次正式对外发布

2010-03-12

盖莫游戏音频引擎支持oog,mp3,wav格式,多线程流式播放,使用超级简便

发布设计的游戏音频引擎 很好使用的 支持vc2009,codeblock devc++ 支持ogg,wav,mp3 多线程流式音频播放 该版本可以满足一般需要 非商业可免费使用

2010-01-23

G3d游戏引擎的使用(俺的游戏引擎)

我做的游戏引擎框架 现在支持glfw,sdl,win32 3类 这是g3d引擎的一部分 如果有兴趣 我们合作开发:) ccsdu2004@yahoo.com.cn

2009-06-28

使用freetype于opengl显示汉字(g引擎)

使用freetype于opengl显示汉字 改编的东西 :)

2009-06-20

c++编写的音频管理器(使用openal)

自写的c++音频管理器 目前支持wav与ogg格式 使用zthread多线程 初次发布:) 欢迎交流

2009-06-20

空空如也

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

TA关注的人

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