首页 新闻 论坛 群组 Blog 文档 下载 读书 Tag 网摘 搜索 .NET Java 游戏 视频 人才 外包 第二书店 程序员
您的位置:游戏开发频道-正文

OpenGL初学者,一些东西一知半解。附源代码问关于在OpenGL中显示字符的问题~~~2008-05-01 来自:  [收藏到我的网摘]

代码如下,问题在顶楼: /* * draw a flying plane base on GLTest and GLCombineTest Project */ #include #include #include #include #define PI 3.14159265853 #define PL 4.0f #define PW 2.0f #define PH 2.0f #define FAN_R 4.0f #define DrawLine(x1, y1, z1, x2, y2, z2) \ glBegin(GL_LINES); \ glVertex3f(x1, y1, z1); \ glVertex3f(x2, y2, z2); \ glEnd(); #define DrawBox() \ glBegin(GL_LINE_LOOP); \ glVertex3f(-1.0f, -1.0f, 1.0f); \ glVertex3f( 1.0f, -1.0f, 1.0f); \ glVertex3f( 1.0f, 1.0f, 1.

用户评论

正在载入评论列表...

是谁推荐了此篇文章

专家头像
个人blog发送信息
推荐的其他文章

赞助商精华文章

热点新闻

热点评论

    精彩视频

    精彩专题

    资源下载

    
      网站简介广告服务网站地图帮助联系方式诚聘英才English问题报告
    北京世纪乐知数码科技有限公司  版权所有  京 ICP 证 020026 号
    Copyright © 2000-2006, CSDN.NET, All Rights Reserved