-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gui.h
executable file
·39 lines (30 loc) · 1.17 KB
/
Gui.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
36
37
38
39
#pragma once
#ifndef GUI_H
#define GUI_H
#include "SDKmisc.h"
#include "DXUTSettingsDlg.h"
class DebugText;
class Gui {
public:
Gui(DebugText* dt): debugText(dt) {
}
void init(CDXUTDialogResourceManager* g_DialogResourceManager);
HRESULT OnD3D11CreateDevice(ID3D11Device* pd3dDevice);
HRESULT OnD3D11ResizedSwapChain( ID3D11Device* pd3dDevice,
const DXGI_SURFACE_DESC* pBackBufferSurfaceDesc );
void OnD3D11FrameRender(float fElapsedTime);
void OnD3D11DestroyDevice();
bool IsSettingsDialogueActive();
void RenderSettingsDialogue(float fElapsedTime);
LRESULT MsgProc( HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam,
bool* pbNoFurtherProcessing, void* pUserContext );
LRESULT SettingsDialogueMsgProc( HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam,
bool* pbNoFurtherProcessing, void* pUserContext );
private:
static void CALLBACK OnGUIEvent( UINT nEvent, int nControlID, CDXUTControl* pControl, void* pUserContext );
DebugText* debugText;
static CD3DSettingsDlg settingsDlg; // Device settings dialog
CDXUTDialog hud; // dialog for standard controls
CDXUTDialog sampleUI; // dialog for sample specific controls
};
#endif