CEGUI 第一弹

中文字处理/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 @ 2006-05-11 11:59  千里马肝  阅读(2590)  评论(7编辑  收藏  举报