文件名称:Lesson2
介绍说明--下载内容均来自于网络,请自行研究使用
绘制出一个白色的正方形和一个白色的三角形。-/*
* This Code Was Created By Jeff Molofee 2000
* A HUGE Thanks To Fredric Echols For Cleaning Up
* And Optimizing The Base Code, Making It More Flexible!
* If You ve Found This Code Useful, Please Let Me Know.
* Visit My Site At nehe.gamedev.net
*/
#include <windows.h> // Header File For Windows
#include <gl\gl.h> // Header File For The OpenGL32 Library
#include <gl\glu.h> // Header File For The GLu32 Library
#include <gl\glaux.h> // Header File For The Glaux Library
HDC hDC=NULL // Private GDI Device Context
HGLRC hRC=NULL // Permanent Rendering Context
HWND hWnd=NULL // Holds Our Window Handle
HINSTANCE hInstance // Holds The Instance Of The Application
bool keys[256] // Array Used For The Keyboard Routine
bool active=TRUE // Window Active Flag Set To TRUE By Default
bool fullscreen=TRUE // Fullscreen Flag Set To Fullscreen Mode By Default
LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM) // Declarati
* This Code Was Created By Jeff Molofee 2000
* A HUGE Thanks To Fredric Echols For Cleaning Up
* And Optimizing The Base Code, Making It More Flexible!
* If You ve Found This Code Useful, Please Let Me Know.
* Visit My Site At nehe.gamedev.net
*/
#include <windows.h> // Header File For Windows
#include <gl\gl.h> // Header File For The OpenGL32 Library
#include <gl\glu.h> // Header File For The GLu32 Library
#include <gl\glaux.h> // Header File For The Glaux Library
HDC hDC=NULL // Private GDI Device Context
HGLRC hRC=NULL // Permanent Rendering Context
HWND hWnd=NULL // Holds Our Window Handle
HINSTANCE hInstance // Holds The Instance Of The Application
bool keys[256] // Array Used For The Keyboard Routine
bool active=TRUE // Window Active Flag Set To TRUE By Default
bool fullscreen=TRUE // Fullscreen Flag Set To Fullscreen Mode By Default
LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM) // Declarati
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Lesson2.cpp