起跑线的博客
起跑线 · 共 20 篇文章
CEGUI与其他程序剪切复制粘帖的实现(支持中文)~~~
void xx() { using namespace CEGUI; CEGUI::Window * window = CEGUI::System::getSingleton().getGUISheet()->getActiveChild(); const CEGUI::String& type = window->getType(); CEGUI::MultiLineEditbox * mleb = 0; CEGUI::Editbox * eb = 0; if (type == "TaharezLook/MultiLineEditbox" ¦¦ type == "Vanilla/Multi…
2013-05-07 14:33 · c++相关 · 评论(0)
cegui中文显示问题
//----------------------------------------------------------------------------// void FreeTypeFont::rasterise(utf32 start_codepoint, utf32 end_codepoint) const { CodepointMap::const_iterator s = d_cp_map.lower_bound(start_codepoint); if (s == d_cp_map.end()) return; CodepointMap::const_iterator ori…
2013-05-07 14:28 · c++相关 · 评论(0)
npapi开发
前面一段时间关注了用firebreath开发插件,但是感觉用起来不是那么得心应手,还是回到NPAPI开发插件上来。 本文根据NPAPI开发详解,Windows版进行开发,其中以VS2008为例进行开发,在VS2010中基本上是相同的。 必须的plugin sdk,将其解压到某个目录下,我这里是:D:\Users\zcf\Documents\My Program\2012。下面是创建插件的步骤: 1、创建项目 名称一定要以np开头,为了将来适应不同操作系统,最好全小写,不要太长,尽量控制在8字符内。本例定义为npmedia 位置指定到~plugin\sdk\samples 点击确定、下一步。选…
2013-05-07 10:30 · c++相关 · 评论(0)