﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>C++博客-前进的路上-随笔分类-GameDevelop</title><link>http://www.cppblog.com/wc250en007/category/13860.html</link><description>前进的路上</description><language>zh-cn</language><lastBuildDate>Sat, 11 Sep 2010 11:52:36 GMT</lastBuildDate><pubDate>Sat, 11 Sep 2010 11:52:36 GMT</pubDate><ttl>60</ttl><item><title>FreeType库试用</title><link>http://www.cppblog.com/wc250en007/archive/2010/09/10/126333.html</link><dc:creator>Let me see see</dc:creator><author>Let me see see</author><pubDate>Fri, 10 Sep 2010 10:28:00 GMT</pubDate><guid>http://www.cppblog.com/wc250en007/archive/2010/09/10/126333.html</guid><wfw:comment>http://www.cppblog.com/wc250en007/comments/126333.html</wfw:comment><comments>http://www.cppblog.com/wc250en007/archive/2010/09/10/126333.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/wc250en007/comments/commentRss/126333.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/wc250en007/services/trackbacks/126333.html</trackback:ping><description><![CDATA[<p><br><br><br>有关字体的一点参考：<br><font color=#ff0000 size=5>TTC和TTF的解释：<br></font><font face="楷体_GB2312 "><font size=4><font color=darkgreen>&nbsp; &nbsp;&nbsp;&nbsp;TTC：TrueType Collection file. A scheme where multiple TrueType fonts can be stored in a single file, typically used when only a subset of glyphs changes among different designs. They're used in Japanese fonts, where the Kana glyphs change but the Kanji remain the same. </font></font></font><br><font face="楷体_GB2312 "><font size=4><font color=darkgreen>&nbsp; &nbsp;&nbsp;&nbsp;TTF：The recommended file extension for TrueType font files on the PC. On the Macintosh, exactly the same data is in an *'sfnt' resource. The recommended file extension for the TrueType flavour of *OpenType fonts is also TTF. (But Type 1 flavour OpenType fonts should have an OTF extension.)&nbsp;&nbsp;</font></font></font><br><font face="楷体_GB2312 "><font size=4><font color=darkgreen>&nbsp; &nbsp;&nbsp;&nbsp;</font></font></font><br><font face="楷体_GB2312 "><font size=4><font color=darkgreen>&nbsp; &nbsp;&nbsp; &nbsp;<font color=red>所以我个人认为TTF才是一个将一种字体定义好的文件格式，它里面应该包括每个字的写法。而TTC是一个链接容器，可能只有部分字体的写法，其他的字体是从别的TTF中链接过来的。</font></font></font></font><br><font face="楷体_GB2312 "><font size=4><font color=red>&nbsp; &nbsp;&nbsp; &nbsp;ttc 是TrueType的集合，可能会在一个ttc文件中包含多个type 接口。可以用FontLab, 或者 breakttc.exe 将一个ttc文件分离成多个ttf文件。</font></font></font><br><br><font face="楷体_GB2312 "><font size=4><font color=darkgreen><font color=red>&nbsp; &nbsp;&nbsp; &nbsp; 因此，TTC是几个TTF合成的字库，安装后字体列表中会看到两个以上的字体。两个字体中大部分字都一样时，可以将两种字体做成一个TTC文件，现在常见的TTC中的不同字体，汉字一般没有差别，只是英文符号的宽度不一样，以便适应不同的版面要求。</font> </font></font></font><br><font face="楷体_GB2312 "><font size=4><font color=darkgreen>&nbsp; &nbsp;&nbsp;&nbsp;</font></font></font><br><font face="楷体_GB2312 "><font size=4><font color=darkgreen>&nbsp; &nbsp;&nbsp; &nbsp; 我想说的以后的TTC字库可能就是一个发展趋势，因为它很有优越行，任何字体可以合成TTC字库的<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br><br>&nbsp;&nbsp;&nbsp; 生成字形位图后，我们要将字形位图转换为我们自己的图形数据，生成最接近位图大小的2的幂次方位图<br><br><br></p>
<div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><img id=Codehighlighter1_0_73_Open_Image onclick="this.style.display='none'; Codehighlighter1_0_73_Open_Text.style.display='none'; Codehighlighter1_0_73_Closed_Image.style.display='inline'; Codehighlighter1_0_73_Closed_Text.style.display='inline';" src="http://www.cppblog.com/Images/OutliningIndicators/ExpandedBlockStart.gif" align=top><img id=Codehighlighter1_0_73_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_0_73_Closed_Text.style.display='none'; Codehighlighter1_0_73_Open_Image.style.display='inline'; Codehighlighter1_0_73_Open_Text.style.display='inline';" src="http://www.cppblog.com/Images/OutliningIndicators/ContractedBlock.gif" align=top><span id=Codehighlighter1_0_73_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">/**/</span><span id=Codehighlighter1_0_73_Open_Text><span style="COLOR: #808080">///</span><span style="COLOR: #008000">This&nbsp;function&nbsp;gets&nbsp;the&nbsp;first&nbsp;power&nbsp;of&nbsp;2&nbsp;&gt;=&nbsp;the<br><img src="http://www.cppblog.com/Images/OutliningIndicators/ExpandedBlockEnd.gif" align=top></span><span style="COLOR: #808080">///</span><span style="COLOR: #008000">int&nbsp;that&nbsp;we&nbsp;pass&nbsp;it.</span><span style="COLOR: #808080"></span></span><br><img src="http://www.cppblog.com/Images/OutliningIndicators/None.gif" align=top><span style="COLOR: #000000">inline&nbsp;</span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000">&nbsp;next_p2&nbsp;(&nbsp;</span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000">&nbsp;a&nbsp;)<br><img id=Codehighlighter1_103_157_Open_Image onclick="this.style.display='none'; Codehighlighter1_103_157_Open_Text.style.display='none'; Codehighlighter1_103_157_Closed_Image.style.display='inline'; Codehighlighter1_103_157_Closed_Text.style.display='inline';" src="http://www.cppblog.com/Images/OutliningIndicators/ExpandedBlockStart.gif" align=top><img id=Codehighlighter1_103_157_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_103_157_Closed_Text.style.display='none'; Codehighlighter1_103_157_Open_Image.style.display='inline'; Codehighlighter1_103_157_Open_Text.style.display='inline';" src="http://www.cppblog.com/Images/OutliningIndicators/ContractedBlock.gif" align=top></span><span id=Codehighlighter1_103_157_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.cppblog.com/Images/dot.gif"></span><span id=Codehighlighter1_103_157_Open_Text><span style="COLOR: #000000">{<br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000">&nbsp;rval</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">1</span><span style="COLOR: #000000">;<br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">while</span><span style="COLOR: #000000">(rval</span><span style="COLOR: #000000">&lt;</span><span style="COLOR: #000000">a)&nbsp;rval</span><span style="COLOR: #000000">&lt;&lt;=</span><span style="COLOR: #000000">1</span><span style="COLOR: #000000">;<br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">return</span><span style="COLOR: #000000">&nbsp;rval;<br><img src="http://www.cppblog.com/Images/OutliningIndicators/ExpandedBlockEnd.gif" align=top>}</span></span></div>
<p></font></font></font></p>
<div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;int width = next_p2( bitmap.width );<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;int height = next_p2( bitmap.rows );<br><br><img src="http://www.cppblog.com/Images/OutliningIndicators/None.gif" align=top><span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">char</span><span style="COLOR: #000000">*</span><span style="COLOR: #000000">&nbsp;pBuf&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">new</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">char</span><span style="COLOR: #000000">[width&nbsp;</span><span style="COLOR: #000000">*</span><span style="COLOR: #000000">&nbsp;height&nbsp;</span><span style="COLOR: #000000">*</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">4</span><span style="COLOR: #000000">];<br><img src="http://www.cppblog.com/Images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">for</span><span style="COLOR: #000000">(</span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000">&nbsp;j</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">;&nbsp;j&nbsp;&nbsp;</span><span style="COLOR: #000000">&lt;</span><span style="COLOR: #000000">&nbsp;height&nbsp;;&nbsp;j</span><span style="COLOR: #000000">++</span><span style="COLOR: #000000">)<br><img id=Codehighlighter1_78_444_Open_Image onclick="this.style.display='none'; Codehighlighter1_78_444_Open_Text.style.display='none'; Codehighlighter1_78_444_Closed_Image.style.display='inline'; Codehighlighter1_78_444_Closed_Text.style.display='inline';" src="http://www.cppblog.com/Images/OutliningIndicators/ExpandedBlockStart.gif" align=top><img id=Codehighlighter1_78_444_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_78_444_Closed_Text.style.display='none'; Codehighlighter1_78_444_Open_Image.style.display='inline'; Codehighlighter1_78_444_Open_Text.style.display='inline';" src="http://www.cppblog.com/Images/OutliningIndicators/ContractedBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</span><span id=Codehighlighter1_78_444_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.cppblog.com/Images/dot.gif"></span><span id=Codehighlighter1_78_444_Open_Text><span style="COLOR: #000000">{<br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">for</span><span style="COLOR: #000000">(</span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000">&nbsp;i</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">;&nbsp;i&nbsp;</span><span style="COLOR: #000000">&lt;</span><span style="COLOR: #000000">&nbsp;width;&nbsp;i</span><span style="COLOR: #000000">++</span><span style="COLOR: #000000">)<br><img id=Codehighlighter1_113_441_Open_Image onclick="this.style.display='none'; Codehighlighter1_113_441_Open_Text.style.display='none'; Codehighlighter1_113_441_Closed_Image.style.display='inline'; Codehighlighter1_113_441_Closed_Text.style.display='inline';" src="http://www.cppblog.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><img id=Codehighlighter1_113_441_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_113_441_Closed_Text.style.display='none'; Codehighlighter1_113_441_Open_Image.style.display='inline'; Codehighlighter1_113_441_Open_Text.style.display='inline';" src="http://www.cppblog.com/Images/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span id=Codehighlighter1_113_441_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.cppblog.com/Images/dot.gif"></span><span id=Codehighlighter1_113_441_Open_Text><span style="COLOR: #000000">{<br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;</span><span style="COLOR: #0000ff">char</span><span style="COLOR: #000000">&nbsp;_vl&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;&nbsp;(i</span><span style="COLOR: #000000">&gt;=</span><span style="COLOR: #000000">bitmap.width&nbsp;</span><span style="COLOR: #000000">||</span><span style="COLOR: #000000">&nbsp;j</span><span style="COLOR: #000000">&gt;=</span><span style="COLOR: #000000">bitmap.rows)&nbsp;</span><span style="COLOR: #000000">?</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">&nbsp;:&nbsp;bitmap.buffer[i&nbsp;</span><span style="COLOR: #000000">+</span><span style="COLOR: #000000">&nbsp;bitmap.width</span><span style="COLOR: #000000">*</span><span style="COLOR: #000000">j];<br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pBuf[(</span><span style="COLOR: #000000">4</span><span style="COLOR: #000000">*</span><span style="COLOR: #000000">i&nbsp;</span><span style="COLOR: #000000">+</span><span style="COLOR: #000000">&nbsp;(height&nbsp;</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">&nbsp;j&nbsp;</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">1</span><span style="COLOR: #000000">)&nbsp;</span><span style="COLOR: #000000">*</span><span style="COLOR: #000000">&nbsp;width&nbsp;</span><span style="COLOR: #000000">*</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">4</span><span style="COLOR: #000000">)&nbsp;&nbsp;]&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">0xFF</span><span style="COLOR: #000000">;<br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pBuf[(</span><span style="COLOR: #000000">4</span><span style="COLOR: #000000">*</span><span style="COLOR: #000000">i&nbsp;</span><span style="COLOR: #000000">+</span><span style="COLOR: #000000">&nbsp;(height&nbsp;</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">&nbsp;j&nbsp;</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">1</span><span style="COLOR: #000000">)&nbsp;</span><span style="COLOR: #000000">*</span><span style="COLOR: #000000">&nbsp;width&nbsp;</span><span style="COLOR: #000000">*</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">4</span><span style="COLOR: #000000">)</span><span style="COLOR: #000000">+</span><span style="COLOR: #000000">1</span><span style="COLOR: #000000">]&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">0xFF</span><span style="COLOR: #000000">;<br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pBuf[(</span><span style="COLOR: #000000">4</span><span style="COLOR: #000000">*</span><span style="COLOR: #000000">i&nbsp;</span><span style="COLOR: #000000">+</span><span style="COLOR: #000000">&nbsp;(height&nbsp;</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">&nbsp;j&nbsp;</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">1</span><span style="COLOR: #000000">)&nbsp;</span><span style="COLOR: #000000">*</span><span style="COLOR: #000000">&nbsp;width&nbsp;</span><span style="COLOR: #000000">*</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">4</span><span style="COLOR: #000000">)</span><span style="COLOR: #000000">+</span><span style="COLOR: #000000">2</span><span style="COLOR: #000000">]&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">0xFF</span><span style="COLOR: #000000">;<br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pBuf[(</span><span style="COLOR: #000000">4</span><span style="COLOR: #000000">*</span><span style="COLOR: #000000">i&nbsp;</span><span style="COLOR: #000000">+</span><span style="COLOR: #000000">&nbsp;(height&nbsp;</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">&nbsp;j&nbsp;</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">1</span><span style="COLOR: #000000">)&nbsp;</span><span style="COLOR: #000000">*</span><span style="COLOR: #000000">&nbsp;width&nbsp;</span><span style="COLOR: #000000">*</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">4</span><span style="COLOR: #000000">)</span><span style="COLOR: #000000">+</span><span style="COLOR: #000000">3</span><span style="COLOR: #000000">]&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;_vl;<br><img src="http://www.cppblog.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</span></span><span style="COLOR: #000000"><br><img src="http://www.cppblog.com/Images/OutliningIndicators/ExpandedBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;}</span></span></div>
&nbsp;&nbsp;&nbsp;<span style="COLOR: red">位图数据转换为RGBA格式，RGB分别给0xFF而不是别的颜色，因为这样的话就可以在外界传入字体颜色&nbsp;&nbsp;&nbsp; 任何传入字体颜色&amp;0xFF = 字体颜色<br>&nbsp;&nbsp; alpha数据，我们就传入字形位图的数据（里面包含着FreeType生成的反锯齿位图的alpha数据)</span><br><br><br>参考：&nbsp;&nbsp;<a href="http://freetype.sourceforge.net/freetype2/docs/tutorial/step1.html">http://freetype.sourceforge.net/freetype2/docs/tutorial/step1.html</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;官方教学<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www.linuxforum.net/forum/showflat.php?Board=kylix&amp;Number=592188">http://www.linuxforum.net/forum/showflat.php?Board=kylix&amp;Number=592188</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;对应的中文翻译<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=43">http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=43</a><br>
<img src ="http://www.cppblog.com/wc250en007/aggbug/126333.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/wc250en007/" target="_blank">Let me see see</a> 2010-09-10 18:28 <a href="http://www.cppblog.com/wc250en007/archive/2010/09/10/126333.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>游戏中伤害值数字特效</title><link>http://www.cppblog.com/wc250en007/archive/2010/07/20/NumberEffect.html</link><dc:creator>Let me see see</dc:creator><author>Let me see see</author><pubDate>Tue, 20 Jul 2010 07:01:00 GMT</pubDate><guid>http://www.cppblog.com/wc250en007/archive/2010/07/20/NumberEffect.html</guid><wfw:comment>http://www.cppblog.com/wc250en007/comments/120876.html</wfw:comment><comments>http://www.cppblog.com/wc250en007/archive/2010/07/20/NumberEffect.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/wc250en007/comments/commentRss/120876.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/wc250en007/services/trackbacks/120876.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: &nbsp;游戏中的伤害值敌人伤害值，伤害数字飘飘悠悠最后消失 ，我们将起归纳到Effect中，犹如粒子一样，有时间生命，资源如下：我们根据不同的伤害选择不同的颜色，英雄对敌人伤害白色，怪物对英雄伤害红色&#8230;.我们主要确定在屏幕的鼠标位置确定好我们的伤害数值的UV坐标，如我们队怪物伤害为59，分别将数字5和数字9作为粒子特效，出现消失我们功过函数DrawNumberCha...&nbsp;&nbsp;<a href='http://www.cppblog.com/wc250en007/archive/2010/07/20/NumberEffect.html'>阅读全文</a><img src ="http://www.cppblog.com/wc250en007/aggbug/120876.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/wc250en007/" target="_blank">Let me see see</a> 2010-07-20 15:01 <a href="http://www.cppblog.com/wc250en007/archive/2010/07/20/NumberEffect.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>地编版本控制</title><link>http://www.cppblog.com/wc250en007/archive/2010/05/20/115922.html</link><dc:creator>Let me see see</dc:creator><author>Let me see see</author><pubDate>Thu, 20 May 2010 07:46:00 GMT</pubDate><guid>http://www.cppblog.com/wc250en007/archive/2010/05/20/115922.html</guid><wfw:comment>http://www.cppblog.com/wc250en007/comments/115922.html</wfw:comment><comments>http://www.cppblog.com/wc250en007/archive/2010/05/20/115922.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/wc250en007/comments/commentRss/115922.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/wc250en007/services/trackbacks/115922.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: /&#215;&nbsp;关于文件版本块的结构定义方法。 &nbsp;&#215;/struct chunk{&nbsp;JDWORD&nbsp;type;&nbsp;JDWORD&nbsp;version;&nbsp;JDWORD&nbsp;size;}通过 type 来识别这个 chunk 的类型，如果是已知的类型就按照其对应的版本号 Version 来读取数据如果不是则跳过该 chu...&nbsp;&nbsp;<a href='http://www.cppblog.com/wc250en007/archive/2010/05/20/115922.html'>阅读全文</a><img src ="http://www.cppblog.com/wc250en007/aggbug/115922.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/wc250en007/" target="_blank">Let me see see</a> 2010-05-20 15:46 <a href="http://www.cppblog.com/wc250en007/archive/2010/05/20/115922.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>