博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
openGL 绘制文本font(csGL)
阅读量:4678 次
发布时间:2019-06-09

本文共 859 字,大约阅读时间需要 2 分钟。

1 static Font f = new Font("Times New Roman", 15, FontStyle.Regular);//Times New Roman 2         GDITextureFont myFont = new GDITextureFont(f); 3         ///  4         /// GDI Font(has fault) 5         ///  6         private void draw_font(float x,float y,float z,string str) 7         {             8             GL.glColor3f(1, 1, 0.8f); 9             GL.glPushMatrix();10             GL.glTranslatef(x, y, z);11             myFont.DrawString(str);12             GL.glPopMatrix();13         }14         /// 15         /// GDI Font16         /// 17         private void draw_font(int x, int y, string str)18         {            19             GL.glColor3f(0.0f, 1, 0f);20             GL.glPushMatrix();            21             myFont.Draw2DString(str, x, y);22             GL.glPopMatrix();23         }

 

转载于:https://www.cnblogs.com/Lemon-Li/p/3254133.html

你可能感兴趣的文章
杂题 UVAoj 107 The Cat in the Hat
查看>>
关于jquery-weui.js中时间控件datetimepicker的使用
查看>>
单页面应用程序(SPA)的优缺点
查看>>
http请求和http响应详细解析
查看>>
Centos 配置eth0 提示Device does not seem to be present
查看>>
OS开发入门教程(1)
查看>>
arduino 驱动电调
查看>>
一个游标的性能问题
查看>>
JMeter学习-2 JMeter环境搭建
查看>>
SQL SERVER 2012疑难问题解决方法
查看>>
关于Android RenderScript 的详细说明和一些实用文档
查看>>
POJ1051 P,MTHBGWB
查看>>
士兵队列训练问题
查看>>
js时间戳怎么转成日期格式
查看>>
div宽度设置无效问题解决
查看>>
【ArcGIS Server 开发系列】Flyingis六大系列讲座精品PDF奉献
查看>>
SQL Server 2008空间数据应用系列九:使用空间工具(Spatial Tools)导入ESRI格式地图数据...
查看>>
3大主流NoSQL数据库性能对比测试报告
查看>>
pandas.DataFrame对行和列求和及添加新行和列
查看>>
【转载】后缀自动机学习总结
查看>>