-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSoftRendererApp.h
35 lines (27 loc) · 915 Bytes
/
SoftRendererApp.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#pragma once
#define MAX_LOADSTRING 100
#include "resource.h"
class SoftRenderer;
class SoftRendererApp
{
public:
SoftRendererApp(HINSTANCE hInstance, int nCmdShow);
~SoftRendererApp(void);
bool Init();
int Run();
private:
ATOM MyRegisterClass();
BOOL InitInstance();
void Exit();
private:
/************************************************************************/
/* Windows related stuff */
/************************************************************************/
HINSTANCE m_hInstance; // current instance
int m_nCmdShow; // the show command
TCHAR m_szTitle[MAX_LOADSTRING]; // The title bar text
TCHAR m_szWindowClass[MAX_LOADSTRING]; // the main window class name
HWND m_hWnd; // the main window handle
HACCEL m_hAccelTable; // the acceleartor table
};
LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);