xref: /reactos/dll/cpl/wined3dcfg/wined3dcfg.h (revision c2c66aff)
1 #ifndef _WINED3DCFG_PCH_
2 #define _WINED3DCFG_PCH_
3 
4 #include <stdarg.h>
5 #define WIN32_NO_STATUS
6 #include <windef.h>
7 #include <winbase.h>
8 #include <winuser.h>
9 #include <commctrl.h>
10 
11 #include "resource.h"
12 
13 #define MAX_KEY_LENGTH 256
14 
15 #define VALUE_GDI                  L"GDI"
16 #define VALUE_ENABLED              L"Enabled"
17 #define VALUE_DISABLED             L"Disabled"
18 #define VALUE_NONE                 L"None"
19 #define VALUE_BACKBUFFER           L"Backbuffer"
20 #define VALUE_FBO                  L"FBO"
21 #define VALUE_DEFAULT              L"Default"
22 
23 #define KEY_WINE                  L"Software\\Wine\\Direct3D"
24 
25 #define KEY_GLSL                  L"UseGLSL"
26 #define KEY_GSLEVEL               L"MaxShaderModelGS"
27 #define KEY_VSLEVEL               L"MaxShaderModelVS"
28 #define KEY_PSLEVEL               L"MaxShaderModelPS"
29 #define KEY_STRICTDRAWORDERING    L"StrictDrawOrdering"
30 #define KEY_OFFSCREEN             L"OffscreenRenderingMode"
31 #define KEY_MULTISAMPLING         L"Multisampling"
32 #define KEY_VIDMEMSIZE            L"VideoMemorySize"
33 #define KEY_ALWAYSOFFSCREEN       L"AlwaysOffscreen"
34 #define KEY_DDRENDERER            L"DirectDrawRenderer"
35 
36 #define INIT_CONTROL(a, b) InitControl(hWndDlg, hKey, KEY_##a, b, IDC_##a, sizeof(b)/sizeof(WINED3D_SETTINGS))
37 #define SAVE_CONTROL(a, b) SaveSetting(hWndDlg, hKey, KEY_##a, b, IDC_##a, sizeof(b)/sizeof(WINED3D_SETTINGS))
38 
39 INT_PTR CALLBACK GeneralPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
40 
41 typedef struct _WINED3D_SETTINGS{
42     WCHAR szValue[24];
43     INT iType;
44     INT iValue;
45 } WINED3D_SETTINGS, *PWINED3D_SETTINGS;
46 
47 #endif /* _WINED3DCFG_PCH_ */
48