102 Dalmatians: Puppies to the Rescue
Decompilation Source Reference | GitLab repository
Loading...
Searching...
No Matches
functions.h
Go to the documentation of this file.
1/* Recovered declarations; ABI and original layout preserved. */
2#ifndef PCDOGS_PLATFORM_FUNCTIONS_H
3#define PCDOGS_PLATFORM_FUNCTIONS_H
6
8
9BOOL DDraw_FillSurfaceColor(IDirectDrawSurface7 *surface, uint32_t fill_color);
10
11IDirectDrawSurface7 *D3D_CreateTextureSurface(uint32_t width, uint32_t height);
12
13HRESULT __stdcall D3D_HandleTextureFormatCallback(DDPIXELFORMAT *pixel_format, void *selected_format_context);
14
15IDirectDrawSurface7 *D3D_CreateWorkSurface(IDirectDrawSurface7 *source_surface, uint32_t width, uint32_t height);
16
17uint8_t D3D_SetBlendMode(int32_t blend_mode);
18
19void D3D_SetTextureColorOperation(DWORD color_operation);
20
21void D3D_SetZWriteEnableIfSupported(BOOL enable);
22
23BOOL D3D_InitDirectDrawAndDirect3D(HWND hwnd);
24
25HRESULT __stdcall D3D_EnumZBufferFormatCallback(DDPIXELFORMAT *pixel_format, void *selected_format_context);
26
28
29HRESULT D3D_ClearViewport();
30
32
34
36
37HRESULT DDraw_UnlockSurface(IDirectDrawSurface7 *surface);
38
39void D3D_SetGammaRamp(float linear_ramp_scale);
40
41int32_t DDraw_CompareDisplayModes(const void *left_record, const void *right_record);
42
43HRESULT D3D_EnumerateDirectDrawDevices(D3D_DeviceAcceptCallback unused_device_accept_callback);
44
45BOOL __stdcall D3D_EnumDriverCallback(GUID *guid, char *driver_description, char *driver_name, void *context, HMONITOR monitor);
46
47HRESULT __stdcall D3D_EnumDisplayModeCallback(DDSURFACEDESC2 *surface_desc, void *context);
48
49HRESULT __stdcall D3D_EnumDeviceCallback(char *device_description, char *device_name, D3DDEVICEDESC7 *device_desc, void *context);
50
51void D3D_GetEnumeratedDevices(struct D3D_DriverInfo **device_list_out, uint32_t *device_count_out);
52
53HRESULT D3D_SelectDefaultDevice(struct D3D_DriverInfo **selected_device_out, uint32_t flags);
54
55HRESULT D3D_AcceptAnyDevice(DDCAPS *driver_caps, D3DDEVICEDESC7 *device_desc);
56
58
59char *D3D_FormatDirectXError(HRESULT error_code, char *out_buffer);
60
61long double Timer_GetGameTime(void);
62
63void D3D_SetGammaFromMenuSetting(int32_t gamma_setting);
64
65LRESULT __stdcall Game_MainWindowProc(HWND hwnd, UINT u_msg, WPARAM w_param, LPARAM l_param);
66
67HWND Window_GetMainHandle(void);
68
69int32_t __stdcall Game_WinMain(HINSTANCE h_instance, HINSTANCE h_prev_instance, LPSTR lp_cmd_line, int32_t n_cmd_show);
70
72
74
75BOOL Display_IsActive(void);
76
77int32_t Display_SetMode(HWND hwnd);
78
80
81void Window_SetDefaultResolution(int32_t reserved_zero);
82
83HRESULT __stdcall DDraw_CreateEx(GUID *lp_guid, void **lplp_dd, GUID *iid, IUnknown *p_unk_outer);
84
85HRESULT __stdcall DDraw_EnumerateExA(LPDDENUMCALLBACKEXA lp_callback, LPVOID lp_context, DWORD dw_flags);
86
87#endif /* PCDOGS_PLATFORM_FUNCTIONS_H */
HRESULT(* D3D_DeviceAcceptCallback)(DDCAPS *driver_caps, D3DDEVICEDESC7 *device_desc)
Definition common.h:11
BOOL D3D_EnumDriverCallback(GUID *guid, char *driver_description, char *driver_name, void *context, HMONITOR monitor)
void D3D_CloseDebugLog()
void Display_ReleaseMode()
Definition window.c:132
int32_t Display_SetMode(HWND hwnd)
Definition window.c:119
HRESULT DDraw_CreateEx(GUID *lp_guid, void **lplp_dd, GUID *iid, IUnknown *p_unk_outer)
void D3D_SetGammaRamp(float linear_ramp_scale)
void Window_SetDefaultResolution(int32_t reserved_zero)
Definition window.c:140
HRESULT D3D_EnumDisplayModeCallback(DDSURFACEDESC2 *surface_desc, void *context)
struct D3D_DriverInfo * D3D_EnumerateAndSelectDefaultDevice()
HRESULT D3D_EnumerateDirectDrawDevices(D3D_DeviceAcceptCallback unused_device_accept_callback)
char * D3D_FormatDirectXError(HRESULT error_code, char *out_buffer)
void Window_RequestClose()
Definition window.c:101
IDirectDrawSurface7 * D3D_CreateTextureSurface(uint32_t width, uint32_t height)
ULONG D3D_ReleaseDirectDrawDevice()
void D3D_SetZWriteEnableIfSupported(BOOL enable)
void D3D_SetGammaFromMenuSetting(int32_t gamma_setting)
BOOL DDraw_FillSurfaceColor(IDirectDrawSurface7 *surface, uint32_t fill_color)
int32_t Game_WinMain(HINSTANCE h_instance, HINSTANCE h_prev_instance, LPSTR lp_cmd_line, int32_t n_cmd_show)
Definition application.c:22
BOOL Display_IsActive(void)
Definition window.c:111
HRESULT D3D_AcceptAnyDevice(DDCAPS *driver_caps, D3DDEVICEDESC7 *device_desc)
HRESULT D3D_EnumZBufferFormatCallback(DDPIXELFORMAT *pixel_format, void *selected_format_context)
HRESULT D3D_HandleTextureFormatCallback(DDPIXELFORMAT *pixel_format, void *selected_format_context)
HRESULT DDraw_EnumerateExA(LPDDENUMCALLBACKEXA lp_callback, LPVOID lp_context, DWORD dw_flags)
LRESULT Game_MainWindowProc(HWND hwnd, UINT u_msg, WPARAM w_param, LPARAM l_param)
Definition window.c:21
void D3D_ReleaseAllAndReportLeaks()
IDirectDrawSurface7 * D3D_CreateWorkSurface(IDirectDrawSurface7 *source_surface, uint32_t width, uint32_t height)
uint8_t D3D_SetBlendMode(int32_t blend_mode)
HRESULT D3D_SelectDefaultDevice(struct D3D_DriverInfo **selected_device_out, uint32_t flags)
void D3D_InitializeDirectDraw()
uint32_t Timer_GetElapsedTickCountThunk()
Definition timer.c:9
int32_t DDraw_CompareDisplayModes(const void *left_record, const void *right_record)
HRESULT D3D_EnumDeviceCallback(char *device_description, char *device_name, D3DDEVICEDESC7 *device_desc, void *context)
HRESULT D3D_ClearViewport()
void D3D_GetEnumeratedDevices(struct D3D_DriverInfo **device_list_out, uint32_t *device_count_out)
uint32_t Timer_GetElapsedTickCount()
Definition timer.c:24
HWND Window_GetMainHandle(void)
Definition window.c:94
BOOL D3D_InitDirectDrawAndDirect3D(HWND hwnd)
HRESULT DDraw_UnlockSurface(IDirectDrawSurface7 *surface)
long double Timer_GetGameTime(void)
Definition timer.c:17
void D3D_SetTextureColorOperation(DWORD color_operation)