• 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;

  • 相关阅读:
    冲刺一(5)
    冲刺一(4)
    冲刺一(3)
    构建之法阅读笔记之二
    冲刺一(2)
    冲刺一(1)
    第9周总结
    热词顶会分析
    第8周总结
    构建之法阅读笔记之一
  • 原文地址:https://www.cnblogs.com/oiramario/p/397164.html
Copyright © 2020-2023  润新知