📄 glframework.h
字号:
/*
glframework.h - OpenGL framework
Copyright (c) HalfLucifer, 2001.6.19
*/
#ifndef __GLFRAMEWORKH__
#define __GLFRAMEWORKH__
#pragma comment(lib, "opengl32.lib") // Search for opengl32.lib while linking
#pragma comment(lib, "glu32.lib") // Search for glu32.lib while linking
#pragma comment(lib, "dxguid.lib") // Search for the DXguid library
#pragma comment(lib, "dinput8.lib") // Search for the DirectInput8 library
#pragma comment(lib, "ijl15.lib") // Search for ijl15.lib while linking
#include <windows.h>
bool FULLSCREEN_FLAG = false;
bool VISIBLE_FLAG = false;
bool PROGRAM_QUIT = false;
HINSTANCE hInstance;
HWND hWnd; // Window handle
HDC hDC; // Device context
HGLRC hRC; // Rendering context
bool SetScreenResolution(int width, int height, int bbp);
LRESULT CALLBACK WindowProcedure(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
bool glCreateWindow(char *title, int width, int height, int bbp, bool fsflag);
bool glDestroyWindow();
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow);
bool glInitialize();
void glShutDown(void);
void glReshape(int width, int height);
void glDrawScene();
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -