CEGUI的字体缓冲

 
Font的光栅化字符函数 
    virtual void rasterise(utf32 start_codepoint, utf32 end_codepoint) const;

Font类里保存字符编码和字符图片的map如下
    //! Definition of CodepointMap type.
    typedef std::map<utf32, FontGlyph> CodepointMap;
    //! Contains mappings from code points to Image objects
    CodepointMap d_cp_map;


 通过Font的 

    const FontGlyph* getGlyphData(utf32 codepoint) const;
获取FontGlyph, 进而获取对应的字符图片
    //! Return the CEGUI::Image object rendered for this glyph.
    const Image* getImage() const
    { return d_image; }

 

 

 
 


 

你可能感兴趣的:(image,object)