資源簡介
opengl編程開發基礎實例,便于參考。編程語言采用C/C 開發。
代碼片段和文件信息
#include?“stdafx.h“
#include?“tool.h“
#include?
#include?“CGfxOpenGL.h“
#define?MAX_LOADSTRING?100
#define?ALWAYS_ROUND?1
void?setupPixelFormat(HDC);
//?全局變量:?
HINSTANCE?hInst; //?當前實例
TCHAR?sztitle[MAX_LOADSTRING]; //?標題欄文本
TCHAR?szWindowClass[MAX_LOADSTRING]; //?主窗口類名
//?此代碼模塊中包含的函數的前向聲明:?
ATOM MyRegisterClass(HINSTANCE?hInstance);
BOOL InitInstance(HINSTANCE?int);
LRESULT?CALLBACK WndProc(HWND?UINT?WPARAM?LPARAM);
INT_PTR?CALLBACK About(HWND?UINT?WPARAM?LPARAM);
HDC?g_HDC;
HWND?g_HWND;
float?angle?=?0.0;
bool?exiting?=?false;
long?windowWidth?=?1920;
long?windowHeight?=?1080;
CGfxOpenGL?*g_glRender?=?NULL;
int?APIENTRY?_tWinMain(_In_?HINSTANCE?hInstance
?????????????????????_In_opt_?HINSTANCE?hPrevInstance
?????????????????????_In_?LPTSTR????lpCmdLine
?????????????????????_In_?int???????nCmdShow)
{
UNREFERENCED_PARAMETER(hPrevInstance);
UNREFERENCED_PARAMETER(lpCmdLine);
? //?TODO:??在此放置代
- 上一篇:易語言:關鍵詞去重復
- 下一篇:智能小車超聲波測距實驗
評論
共有 條評論