闪烁的星星(Nehe)

11 篇文章 0 订阅

 以下代码演示与Nehe教程第九课中一样的效果。第十课中三维的暂不实现。主要使用纹理贴图相关方面知识。

WStar.h

  

 

WStar.cpp

wglwidget.h

 

wglwidget.cpp

 

 

 


程序运行效果如图:
星星

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 3
    评论
NeHe SDK v1.10 This is a small Software Development Kit which covers a number of the tutorials written by Jeff Molofee(NeHe) into a fairly unified framework that should allow the construction of simple graphical games. There are nine example executables(in the bin directory) showing off the capabilities of the SDK. They are: Example 1: A simple rotating box and pyramid Example 2: Text using OpenGL routines Example 3: 3d Text using OpenGL routines Example 4: Rotating box and pyramid showing frame counter Example 5: Particle engine and billboard demonstration Example 6: Rotating cube using multitexturing Example 7: MD2 animation and milkshape object rendering demo Example 8: Video texturing Example 9: Built in shapes and display list demonstration Example 10: Simple fog demonstration Example 11: Environment mapping demonstration Example 12: Scissor test and 2d demos Required specification: IBM compatible PC Pentium 300 (although it may work with less) with 64MB RAM OpenGL compatible graphics card with latest drivers. Note: Some older cards, such as Voodoos and the early ATIs do not have drivers which appear to be completely compatible. Use these at your own risk. Any card problems reported are in bugs.txt Microsoft Visual Studio 6 for recompilation and development, although there should be no reason why it couldn't be compiled on Borland with a few changes. MinGW gcc however has no support for IPicture at the time of writing, so porting it might be a little more complex. License: If you use this software you agree to be bound by the licence in the license.txt file. Known Bugs: See bugs.txt Acknowledgments: See thanks.txt Development with this SDK: The simplest way to get to grips with this SDK is to read through the example files, then throught the library header files.

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值