NeHe学习之框架一

博主通过记录学习NeHe教程的过程,加深理解和记忆。本文主要讲解NeHe框架,涉及头文件、OpenGL场景大小设置、矩阵详解、初始化设置以及绘制操作,旨在帮助初学者理解难点。
摘要由CSDN通过智能技术生成

开始学习NeHe 的教程由一段时间了,发现自己记住的不够深刻,想写此系列文章用以自我激励,和方便学习。

这一篇是NeHe的框架,对于刚接触的我来说,有些难度。

添加头文件头文件介绍

#include <windows.h>	//windows 的头文件
#include <gl.h> 	//OpenGL32 的头文件
#include <glu.h> 	//OpenGL实用库,GLU库属于OpenGL标准的一部分	
#include <glaux.h>// glaux OpenGL辅助库,这个库提供了创建窗口,处理键盘和鼠标事件,设置调色板等OpenGL本身不提供,但在编写OpenGL程序时又经常用到的功能
#include <stdio.h>

#pragma comment(lib,"opengl32.lib")
#pragma comment(lib,"glu32.lib")
#pragma comment(lib,"glut32.lib")
#pragma comment( lib, "glaux.lib")
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.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值