2008-08-21 10:15:54
Iphone supported font list
[ 2010-06-04 02:46:23 | 作者: ccloveaa ]
Bodoni Ornaments
"BodoniOrnamentsITCTT",
AppleGothic
"AppleGothic",
Gill Sans
"GillSans-BoldItalic",
"GillSans-Bold",
"GillSans",
"GillSans-Italic",
Hiragino Kaku Gothic ProN
"HiraKakuProN-W6",
"HiraKakuProN-W3",
Palatino
"Palatino-Italic",
"Palatino-Bold",
"Palatino-Roman",
"Palatino-BoldItalic",
Copperplate
"Copperplate-Bold",
...
"BodoniOrnamentsITCTT",
AppleGothic
"AppleGothic",
Gill Sans
"GillSans-BoldItalic",
"GillSans-Bold",
"GillSans",
"GillSans-Italic",
Hiragino Kaku Gothic ProN
"HiraKakuProN-W6",
"HiraKakuProN-W3",
Palatino
"Palatino-Italic",
"Palatino-Bold",
"Palatino-Roman",
"Palatino-BoldItalic",
Copperplate
"Copperplate-Bold",
...
OBJ-C Dynamic types
[ 2010-04-14 13:24:40 | 作者: ccloveaa ]
-(BOOL) isKindOfClass: classObj is object a descendent or member of classObj
-(BOOL) isMemberOfClass: classObj is object a member of classObj
-(BOOL) respondsToSelector: selector does the object have a method named specifiec by the selector
+(BOOL) instancesRespondToSelector: selector does an object created by this class have the ability to respond to the specified selector
-(id) performSelector: ...
-(BOOL) isMemberOfClass: classObj is object a member of classObj
-(BOOL) respondsToSelector: selector does the object have a method named specifiec by the selector
+(BOOL) instancesRespondToSelector: selector does an object created by this class have the ability to respond to the specified selector
-(id) performSelector: ...
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 ...
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 ...
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);
...
#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);
...
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;
...
需要用到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;
...
几个讨论Iphone开发的论坛
[ 2009-11-18 12:08:09 | 作者: ccloveaa ]
想写些Iphone开发的东西
[ 2009-11-18 12:02:21 | 作者: ccloveaa ]
想写些iphone开发的东西,自己最近懒了很多,人不应该这样活着,从今天起,开始写Iphone开发相关的东西,今天开始争取每天更新Blog.
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 )
...
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 )
...







