Windows/Linux双平台下OpenGL字符串输出的实现(使用QuesoGLC库)

本文介绍了如何在Windows和Linux上使用QuesoGLC库来实现OpenGL字符串输出。QuesoGLC是基于FreeType2和Fontconfig的,支持Unicode字符,便于在3D应用中渲染2D文字。文章详细阐述了QuesoGLC的安装、配置以及在应用程序中的使用方法。
摘要由CSDN通过智能技术生成

The Implementation of OpenGL Character String Output on Both Windows and Linux

 

    To render 2D characters in OpenGL 3D applications(especially the cross-platform applications) is always quite complicated and boring. One can use the bitmap or texture, but it's hard to handle and need many codes. And the most important, hard to achieve the expected effect.

    Fortunately, there are some tools could do this tough work for us. We can just configure the tools, and then use them in our program. The most popular and powerful and free(really free) tool is QuesoGLC . It's an implementation of GLC(OpenGL Character Renderer).

    QuesoGLC is easy to use and import into our project. It's corss-platform. And it supports the unicode characters which means you can render Chinese, Japaness, Russian characters perfectly with the local fonts.

    Now, we'll introduce how to install, configure and use QuesoGLC in our own projects.

 

 

ONE. INSTALLATION:

    QuesoGLC is based on FreeType2 and Fontconfig . We need to install these two dependencies before we compile the QuesoGLC.

 

    In Linux platforms, it'll be easy to do that. Just use: "sudo apt-get install quesoglc" or something like that. The system will deal with the dependencies for you automatically.

 

    In Windows platforms, just go to the

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值