#include <assert.h>
#include <windows.h>
#include "../ref_vk/vk_local.h"
#include "vk_win.h"
#include "winquake.h"
Go to the source code of this file.
◆ OSR2_BUILD_NUMBER
#define OSR2_BUILD_NUMBER 1111 |
◆ WINDOW_CLASS_NAME
#define WINDOW_CLASS_NAME "Quake 2" |
◆ VID_CreateWindow()
Definition at line 49 of file vk_imp.c.
65 wc.hCursor = LoadCursor (
NULL,IDC_ARROW);
66 wc.hbrBackground = (
void *)COLOR_GRAYTEXT;
70 if (!RegisterClass (&wc) )
75 exstyle = WS_EX_TOPMOST;
76 stylebits = WS_POPUP|WS_VISIBLE;
89 AdjustWindowRect (&
r, stylebits,
FALSE);
120 memset(&dm, 0,
sizeof(dm));
122 dm.dmSize =
sizeof(dm);
123 dm.dmPelsWidth =
width;
125 dm.dmFields = DM_PELSWIDTH | DM_PELSHEIGHT;
130 dm.dmFields |= DM_BITSPERPEL;
133 if ( ChangeDisplaySettingsEx(
vkw_state.
monInfo.szDevice, &dm,
NULL, CDS_FULLSCREEN,
NULL ) != DISP_CHANGE_SUCCESSFUL )
140 SWP_NOACTIVATE | SWP_NOCOPYBITS | SWP_NOOWNERZORDER | SWP_NOREPOSITION | SWP_NOZORDER );
Referenced by Vkimp_SetMode().
◆ Vkimp_AppActivate()
◆ Vkimp_BeginFrame()
void Vkimp_BeginFrame |
( |
float |
camera_separation | ) |
|
◆ Vkimp_CreateSurface()
VkResult Vkimp_CreateSurface |
( |
| ) |
|
Definition at line 170 of file vk_imp.c.
172 VkWin32SurfaceCreateInfoKHR surfaceCreateInfo = {
173 .sType = VK_STRUCTURE_TYPE_WIN32_SURFACE_CREATE_INFO_KHR,
176 .hinstance = GetModuleHandle(
NULL),
Referenced by QVk_Init().
◆ Vkimp_EndFrame()
◆ Vkimp_GetSurfaceExtensions()
void Vkimp_GetSurfaceExtensions |
( |
char ** |
extensions, |
|
|
uint32_t * |
extCount |
|
) |
| |
Definition at line 158 of file vk_imp.c.
162 extensions[0] = VK_KHR_SURFACE_EXTENSION_NAME;
163 extensions[1] = VK_KHR_WIN32_SURFACE_EXTENSION_NAME;
Referenced by QVk_Init().
◆ Vkimp_Init()
Definition at line 304 of file vk_imp.c.
306 #define OSR2_BUILD_NUMBER 1111
310 vinfo.dwOSVersionInfoSize =
sizeof(vinfo);
314 if ( GetVersionEx( &vinfo) )
316 if ( vinfo.dwMajorVersion > 4 )
320 else if ( vinfo.dwMajorVersion == 4 )
322 if ( vinfo.dwPlatformId == VER_PLATFORM_WIN32_NT )
326 else if ( vinfo.dwPlatformId == VER_PLATFORM_WIN32_WINDOWS )
Referenced by R_Init().
◆ Vkimp_SetMode()
Definition at line 186 of file vk_imp.c.
189 const char *win_fs[] = {
"W",
"FS" };
221 int bitspixel = GetDeviceCaps( hdc, BITSPIXEL );
Referenced by R_SetMode().
◆ Vkimp_Shutdown()
◆ vid_fullscreen
◆ vid_ref
◆ vkw_state