2008-08-21 10:15:54
一个人的一生是非常短暂的,一个人的价值不在于他拥有什么,而是在于他干了什么,付出了什么.

浏览模式: 普通 | 列表

title_icon Irrlicht 3D engine

[ 2009-12-22 19:29:20 | 作者: ccloveaa ]
http://www.irrlicht3d.org/wiki/index.php?n=Main.IrrlichtEngineWiki

http://www.irrlicht3d.org/

http://irrlicht.sourceforge.net/

1: Download irrlicht engine from: http://irrlicht.svn.sourceforge.net/viewvc/irrlicht/branches/ogl-es/
2: Create a new window base iphone app, add include and source folder into the project. add include in the include search path in xcode.
3: Add Foundation CoreGraphic ...

title_icon Iphone development custom FONT

[ 2009-11-26 15:47:59 | 作者: ccloveaa ]
iphone上面应用自定义的truetype字体

#import <dlfcn.h>
....

typedef bool (*A_FUNC_TYPE)(const char*);

NSUInteger LOAD_FONT(){
NSUInteger newFontCount = 0;
NSBundle *frameworkBundle = [NSBundle bundleWithIdentifier:@"com.apple.GraphicsServices"];
const char *frameworkPath = [[frameworkBundle executablePath] UTF8String];
if (frameworkPath) {
void *graphicsServices = dlopen(frameworkPath, RTLD_NOLOAD | RTLD_LAZY);
...

title_icon Iphone FPS caculate

[ 2009-11-26 15:44:59 | 作者: ccloveaa ]
传统的FPS计算一般用clock() 和CLOCKS_PER_SECOND来计算,但Iphone上面好像clock()不太好用,要么就是CLOCKS_PER_SECOND不准.
需要用到Iphone的SDK来计算了,虽然我很讨厌Iphone自己的东西,但没办法,谁让你在上面开发呢

CODE:

static unsigned int fps_tmp = 0;
static unsigned int fps = 0;
static NSTimeInterval start_time = [NSDate timeIntervalSinceReferenceDate];

if(([NSDate timeIntervalSinceReferenceDate] - start_time) >= 1.0)
{
fps = fps_tmp;
...

title_icon 想写些Iphone开发的东西

[ 2009-11-18 12:02:21 | 作者: ccloveaa ]
想写些iphone开发的东西,自己最近懒了很多,人不应该这样活着,从今天起,开始写Iphone开发相关的东西,今天开始争取每天更新Blog.

title_icon WMp3 C++ class for Windows (ver. 2.1)

[ 2008-12-04 22:39:00 | 作者: ccloveaa ]
WMp3 C++ class for Windows (ver. 2.1)
This is simple C++ class for playing mp3 files. It has integrated LIBMAD 0.15.1b mp3 decoder and you don't need additional library or dll etc. The simplest way to play mp3 files in your C++ projects.

Just 3 lines of C++ code and you are playing mp3 file.



Features:

support Layer1, Layer2 and Layer3.
support free format bitstream ( e.g. bitrate over 320 kbps )
...

http://www.ambiera.com/irrklang/features.html

irrKlang Features
irrKlang is a powerful high level API for playing back sound in 3D and 2D applications like games, scientific visualizations and multimedia applications. It is a cross platform 2D and 3D sound engine and audio library, usable in C++ and all .NET languages (C#, VisualBasic.NET, etc) and provides useful features like lots of built-in ...