HGEUseFree typeImplement Chinese output
Previously, I saw in the irrlicht forum that Japanese people used the free Type Library in the irrlicht engine, enabling the engine to support multi-byte text output. But he modified the engine, and then I modified his code so that it can be directly used without modifying the engine code.
Considering that HGE may be used for outsourcing in a period of time, this code is greatly modified and combined into HGE. That is to say, now we can use the free Type Library in HGE for Chinese output.
Efficiency must be higher than outputting Chinese characters directly using GDI (that is, using DX font. However, if you use GDI to create an HGE texture and then render the texture, the efficiency is similar to the method here. Because the core principle of the two methods is to create a font texture.
:
Download the relevant code. You can use this code directly, but keep the author's information:
Http://blog.blogwhy.com/azjex/upload/hgefreetypesample.rar