小糊涂的移动技术BLOG(Mobile Excite World)  
Mobile Dev Symbian/JavaMe/ Web Dev php/web 2.0/ Now Iphone.Opengles android is planning.
公告
  • i'm cnsoft. i am focus on mobile devlopment. symbian,javame,and now iphone, android is planning to be resarch. i am only one beginner。
    Donews Blog :http://blog.donews.com/cnsoft/
    Free AD: WB Editor 是支持中文 blog 写作的工具。



  • 欢迎支持我的GoogleADSENSE测试计划

  • 如果你看到了想要看的东西,不妨点击一下表示鼓励。
日历
<2009年7月>
2829301234
567891011
12131415161718
19202122232425
2627282930311
2345678
统计
  • 随笔 - 122
  • 文章 - 2
  • 评论 - 233
  • 引用 - 1

导航

与我联系

搜索

 

常用链接

留言簿

随笔分类

随笔档案

相册

Links2me

最新评论

阅读排行榜

评论排行榜

60天内阅读排行

 

2009年6月23日

      freeimage - freebitmap convert from HBitmap, with alpha data.

      Load and bind 32Bit Bitmap as texture Success.

      guichan-gamebox implement.bmpFontCreate,

      opengles的窗口 与window 窗口的高度不同 后者还包括30像素的标题...

      more ui elements to implement. until 6.30 , i will release one small demo,both run win &iphone.

posted @ 2009-06-23 17:50 小糊涂的超级blog 阅读(6) | 评论 (0)编辑

2009年6月19日

   对于 guichan 的扩展.

   要实现 graphics, input, image,imageloader 以及 imagefont 几个类的接口.

   其他部分是平台无关的定义。

   而hge 事实上也是分隔开定义的, 仔细看的话是 hge,hge_impl graphics system  还有一层是 core, helper

   这种设计的模式叫做 Adapter Pattern,

adapter模式是扩展时用。
      “当客户类使用它时,接口不匹配,。。用硬代码调用这个类,势必产生大量重复代码”,当接口不匹配时,一般我们要么修改原来的类或者修改现在的类,使它们接口来匹配,但是这种修改原来类的办法不是好办法,我们要把原来的类当做“黑匣子”,尽量不去动它,保证复杂系统的稳定性,这是就只能通过adapter增加一个类,来做转换,就象110/220的变压转换器一样。
这个模式告诉我们,不要随意去修改原来代码,不要自以为很聪明,我个人感觉这是很多年轻程序员最喜欢范的毛病。

adapter 模式在网络里的应用是 gateway(网关),在现实生活中的应用就是 translator/interpretor(翻译)。

posted @ 2009-06-19 11:11 小糊涂的超级blog 阅读(13) | 评论 (0)编辑

2009年6月17日

#define RGB(r, g, b)
    [UIColor colorWithRed:r/256.0 green:g/256.0 blue:b/256.0 alpha:1]
#define RGBA(r, g, b, a)
    [UIColor colorWithRed:r/256.0 green:g/256.0 blue:b/256.0 alpha:a]

// Code without the macro
  msgLabel.textColor =
     [UIColor colorWithRed:255/256.0 green:251/256.0 blue:204/256.0 alpha:1];
 
  // Or like this...
  msgLabel.textColor = [UIColor colorWithRed:1.0 green:.98 blue:.8 alpha:1];
 
// Code with macro
  msgLabel.textColor = RGB(255, 251, 204);

posted @ 2009-06-17 10:49 小糊涂的超级blog 阅读(7) | 评论 (0)编辑

2009年6月10日

1. Speed - It has new built-in processor and is 2 times faster than previous generation iPhone. It consumes less resources and has improved battery life.

2. Camera - It comes loaded with 3 MegaPixel camera with auto focus, auto exposure and auto white balance. Camera also supports photo, video geotagging and any application can access all the camera functions now.

3. 3D Graphics - It has new 3D graphics support in hardware for faster and more complicated 3D games.

4. Battery Life - As expected, it has much improved battery life. It supports 5 hours of internet use, 9 hours of wifi and video playback is 10 hours vs 30 hours for audio.

5. Design, size & weight - Design has remained same with glossy back. Size is also same 4.5 x 2.4 x 0.48 inches. However, weight has increased little, One ounce to 4.8 ounces (135 grams vs 133 grams).

6. Special features - You can talk with iphone and instruct it to play similar song to one your are playing. It supports features like: zooming on text, inverting video, and voice over when you touch whatever text is on screen.

New iPhone3G is more environment friendly with 23% smaller packing and arsenic free glass, mercury Free LCD and PVC free. It will be available in Black & white models and should be hit markets in over 80 countries by August 2009 - interested? [via Gizmodo]

posted @ 2009-06-10 10:14 小糊涂的超级blog 阅读(11) | 评论 (0)编辑

2009年6月9日

Yep, just announced earlier today at WWDC.

http://www.apple.com/pr/library/2009/06/08iphone.html

From the release:
"iPhone 3G S offers incredible speed and performance, on average up to twice as fast as iPhone 3G, so you can render web pages quicker and launch applications faster. iPhone 3G S takes advantage of the OpenGL ES 2.0 standard for stunning high-quality 3D graphics, making mobile gaming and other graphic intense applications better than ever. iPhone 3G S is not only faster, but with longer battery life you can watch more videos, listen to more music, browse the Internet or keep using your favorite apps even longer. The new iPhone 3G S also supports 7.2 Mbps HSDPA for faster networking speeds.*** "

Sounds like a boost in CPU too (claimed up to 2X speed in a lot of applications - not sure what that translates to in terms of processor speed improvement.

posted @ 2009-06-09 14:20 小糊涂的超级blog 阅读(5) | 评论 (0)编辑

2009年5月19日

RT

posted @ 2009-05-19 22:54 小糊涂的超级blog 阅读(14) | 评论 (0)编辑

2009年5月6日

 so nice...
posted @ 2009-05-06 03:44 小糊涂的超级blog 阅读(25) | 评论 (0)编辑

2009年5月1日

 

For those who are interested nVidia have made GPU Gems 1 available on their website. You can find it here

http://http.developer.nvidia.com/GPUGems/gpugems_part01.html

 

GPU Gems 2

http://http.developer.nvidia.com/GPUGems2/gpugems2_part01.html

GPU Gems 3

http://news.developer.nvidia.com/2008/12/gpu-gems-3-now-online.html

posted @ 2009-05-01 01:21 小糊涂的超级blog 阅读(15) | 评论 (0)编辑

2009年4月28日

  这是4月初的计划, 还有几天就到5月了,不能欠债了。

  先发个截图. 慢慢整理. 希望能将 CCGameBox 的各个部件都能介绍。

   

 

  这是一个贪吃蛇游戏. 操作玩法是用重力感应器来控制方向。

  http://www.box.net/shared/rktgsv2uug  是下载的连接. 如果你能帮我做ipa或者pxl的安装 请mail 我. 感谢

 

posted @ 2009-04-28 03:13 小糊涂的超级blog 阅读(28) | 评论 (0)编辑

2009年4月6日

原理和以前发的一样. 经过群里的朋友实验过了. 误刷了 Iphone OS 3.0 的朋友, 可以按此办法恢复到低版本的系统。 

How to Downgrade From iPhone Firmware 2.2 to 2.1 视频教程降级iphone 2.2 到2.1

posted @ 2009-04-06 01:54 小糊涂的超级blog 阅读(308) | 评论 (0)编辑
 
Copyright © 小糊涂的超级blog Powered by: 博客园 模板提供:沪江博客