如何在opengl中读取字符串 [英] how to read the string in opengl
本文介绍了如何在opengl中读取字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想从键盘读取字符串并在opengl的另一个窗口中显示
i want to read the string from key board and display it in another window in opengl
推荐答案
GLUT
提供一个处理键盘输入的跨平台机制(例如,参见键盘输入 [ ^ ])。如果您不想使用GLUT
,那么您必须处理您喜欢的平台的特定API
(或者使用另一个跨平台库。)
GLUT
providea a cross platform mechanism to handle keyboard input (see, for instance "keyboard input"[^]). If you don't want to useGLUT
then you have to deal with the specificAPI
of your favorite platform (or use another cross-platform library).
这篇关于如何在opengl中读取字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文