文件名称:11
介绍说明--下载内容均来自于网络,请自行研究使用
绘制一个小的正方形,用键盘的上下左右键控制其进行相应的运动。-/*
* 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
GLfloat x=0.0f
GLfloat y=0.0f
LRESULT CALLBACK WndProc(HWND,
* 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
GLfloat x=0.0f
GLfloat y=0.0f
LRESULT CALLBACK WndProc(HWND,
(系统自动生成,下载前可以参看下载内容)
下载文件列表
新建文本文档.txt