上一页 1 ··· 5 6 7 8 9 10 下一页
摘要: ogre仅仅是个3dt图形渲染引擎,要做3d游戏,还需要的东西很多,比如物理,音效,网络(本教程内将不涉及) ,界面以及输入(这里咱们用ogre自带的cegui和ois),以及AI,呵呵,总之一个游戏包含的东西太多,咱们这里仅仅是入门教程,所以一一切从简,但是都会设计到一点哈!对了,还有个很重要的要点,开发游戏前,先要开发辅助工具,比如模型查看器,建模工具了,场景编辑器了,界面编辑等等一系列的工具,这样才会使我们的游戏事半功倍!恩,开始了!1. 界面库: 这里我们使用ogre自带的cegui,ogre已经经cegui很好的整合进了ogre,我们只需要学习完前边的教程,就可以入门了,这里要介绍个 阅读全文
posted @ 2011-11-21 15:55 Clin 阅读(724) 评论(0) 推荐(0) 编辑
摘要: http://daringfireball.net/misc/2007/07/iphone-osx-fontsFonts From Mac OS X Included With iPhoneFull font family includedPartial font family included (seenotes)Not included, but name is special-cased (notes)Not includedAmerican Typewriterabcefgijop 123 ABCabcefgijopAndale Monoabcefgijop 123 ABCabcefg 阅读全文
posted @ 2011-11-21 10:59 Clin 阅读(272) 评论(0) 推荐(0) 编辑
摘要: 转自http://blog.sina.com.cn/s/blog_63f5d1a70100uo9p.html在Objective-c 2 .0中引入了 property 和 synthesize 为方便存取1 让大家认识一下 property and synthesize 吧@property预编译命令的作用是自动声明属性的setter和getter方法@synthesize也是一种新的编译器功能,表示“创建该属性的访问器”废话少说~~下面更精彩哦~~~下面我们来对比一下有这两个属性和不用这两个属性的区别吧!!!----------------------------------没用之前--- 阅读全文
posted @ 2011-11-21 10:14 Clin 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 问题:warning: couldn't add 'com.apple.XcodeGenerated' tag to '/Users/xxx/Library/Developer/Xcode/DerivedData/xcode4-bswxazfuwbsguiasyatbtlmvbpps/Build/Intermediates/xcode4.build': Error Domain=NSPOSIXErrorDomain Code=2 UserInfo=0x201dde680 "The operation couldn’t be completed. 阅读全文
posted @ 2011-11-20 18:46 Clin 阅读(428) 评论(0) 推荐(0) 编辑
摘要: 1.显示隐藏文件夹Mac OS X Lion为了增强所谓的安全性,隐藏了一些系统文件夹,比如Library(资源库)。如此自作多情,使用起来却不太方便,特别是在中国这块神奇的土地上,我们随时可能要进Library里去干一些什么事。当然可以在前往里输入文件夹路径打开文件夹,但普通用户谁又知道、谁又喜欢去输那么长一段英文呢?如何显示?在终端中输入以下命令回车即可:chflags nohidden ~/Library如果想隐藏:chflags hidden ~/Library 阅读全文
posted @ 2011-11-20 18:29 Clin 阅读(165) 评论(0) 推荐(0) 编辑
摘要: Mac截图快捷键Mac截图基本方法 全屏截图:Command-Shift-3 使用快捷键后会马上截取当前的全屏 指定区域截图:Command-Shift-4 使用快捷键后会出来一个带有座标的瞄准器,用鼠标的拖放可以选择需要截图的区域。此方式有秘笈,后面详细说。 指定程序窗口截图:Commnad-Shift-4-Space 使用快捷键后会出现一个照相机的图标,这时候你可以选择屏幕上能看到的任何程序窗口,把鼠标移到它上面后窗口会整个被高亮,只要单击一下就会把这个窗口截 图。Mac截图高级用法 “指定区域截图”有更高级一点的用法,使用快捷键 Command-Shift-4 并用鼠标选取... 阅读全文
posted @ 2011-11-14 20:18 Clin 阅读(1087) 评论(0) 推荐(0) 编辑
摘要: XCode4.2中使用Empty Application模板替代旧的Window Based Application老外的方法:In the tutorial that I am learning at the moment, it requires “Window-based application”.Xcode 4.2 beta 4 does not have “window-based application”; so, I created a project with “Empty application”.Unfortunately, “Empty application” has 阅读全文
posted @ 2011-11-11 20:05 Clin 阅读(318) 评论(0) 推荐(0) 编辑
摘要: 1 //代码参考C++primer. 2 3 4 5 #include<iostream> 6 7 using namespace std; 8 9 10 11 class String{ 12 13 friend ostream& operator<< (ostream&,String&); 14 15 public: 16 17 String(const char* str=NULL); //赋值构造兼默认构造函数(char) 18 19 String(const String &other)... 阅读全文
posted @ 2011-11-09 11:09 Clin 阅读(252) 评论(0) 推荐(0) 编辑
摘要: 1 #include <stdio.h> 2 #include <string.h> 3 4 class String 5 { 6 public: 7 String(const char *str = NULL); 8 ~String(); 9 String(const String &other);10 String& operator = (const String &other);11 private:12 char *m_data;13 };14 15 String::~String()16 {17 delete [] m_data;.. 阅读全文
posted @ 2011-11-09 11:08 Clin 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 1.str_cmp函数实现View Code 1 int str_cmp(const char *src, const char *dst) 2 { 3 int ret = 0; 4 while (!(ret = *(unsigned char*)src) - *(unsigned char*)dst && *dst) 5 { 6 ++src; 7 ++dst; 8 } 9 10 if (ret < 0) 11 {12 ret = -1;13 }14 else if (r... 阅读全文
posted @ 2011-11-08 19:56 Clin 阅读(293) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 下一页