中文字处理/Files/oiramario/ceguifont.rar
覆盖掉同目录下的文件即可
需要注意的是,当设置某控件文字时,必须通过tl_ceguiHelper::AnsiToUtf8进行转码
由于需要更新字体纹理缓冲,所以将CEGUITexture新增了一个updateFromMemory成员函数
具体实现,如OpenGL即glTexSubImage2D,而D3D即Texture->Lock动作
以下是函数声明,请自行增加到CEGUITexture.h中,同时实现OpenGL和D3D的Renderer中的Texture部分
/*!
\brief
update an subimage in memory into the texture.
\param xOffset
the point x of the texture for update area
\param xOffset
the point y of the texture for update area
\param subWidth
the width of subimage
\param subHeight
the height of subimage
\param pData
the buffer (in 0xAARRGGBB pixels)
\return
Nothing.
*/
virtual void updateFromMemory(int xOffset, int yOffset, int subWidth, int subHeight, void const *pData) = 0;
posted on 2006-05-11 11:59
千里马肝 阅读(1199)
评论(7) 编辑 收藏
评论
可是,实在是太大了。。。
再说不可能每个人传一遍~
你好~~~~
因為還缺少了一些檔案,所以編譯不起來,才想說方不方便用Msn傳看看,因為實在好想看看,我的msn:jameslee_01@hotmail.com,還想順便跟你請教一些關於CEGUI的問題,看你是否方便,謝謝~~~ ^_^
你好,我现在也在用cegui,覆盖掉原来的字体文件后,编译不过,找不到texture的一个函数,能否把你的CEGUITexture.h 和CEGUITexture.cpp也发来看看, lwbiam@tom.com,谢谢了.
to 阿斌: 已更新
to jameslee: 已加MSN
请问是不是在cegui 0.50 的基础上修改的?