节点文献
基于SDL和OpenGL实时绘制中文字体
Real-time rendering method of Chinese fonts based on SDL and OpenGL
【摘要】 为了能够在三维场景当中实时的将中文字体绘制在指定的位置上,提出了基于SDL和OpenGL跨平台图形库,采用生产者-消费者模型对字符串进行处理的实时绘制方法。优化了中文字体生成纹理图的过程,并控制中文字体纹理坐标,最终能够实时并且正确的显示中文字体。实验结果表明,该方法能够高效地实时绘制出中文字体,而且能够保证中文字体不会发生变形,对三维场景中指定位置的中文输入具有借鉴意义。
【Abstract】 To draw Chinese to the place which exist in a three dimensional screen in real time,a method of real time rendering based on SDL and OpenGL cross platform graphics library,and adopt the producer-consumer model to deal with character string is presented.The process of producing Chinese texture is optimized,and the Chinese texture coordinate is controlled.Finally,the Chinese characters will be displayed correctly in real time.The experimental results indicate this method can efficiently draw Chinese characters,and also can pledge the texture of the characters will not be out of shape.The experiment will be an example of inputting Chinese to a special place in three-dimensional scene.
【Key words】 three-dimensional scene; cross platform graphics library; texture; Chinese characters; real time rendering;
- 【文献出处】 计算机工程与设计 ,Computer Engineering and Design , 编辑部邮箱 ,2011年08期
- 【分类号】TP391.41
- 【被引频次】14
- 【下载频次】195