-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathrenderer.h
More file actions
28 lines (22 loc) · 871 Bytes
/
Copy pathrenderer.h
File metadata and controls
28 lines (22 loc) · 871 Bytes
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
#pragma once
#include <d3d11.h>
#include <wrl/client.h>
#include "shared_memory.h"
extern const int IMAGE_WIDTH;
extern const int IMAGE_HEIGHT;
extern const size_t BC4_DATA_SIZE;
extern Microsoft::WRL::ComPtr<ID3D11Device> g_pd3dDevice;
extern Microsoft::WRL::ComPtr<ID3D11DeviceContext> g_pImmediateContext;
extern Microsoft::WRL::ComPtr<IDXGISwapChain> g_pSwapChain;
extern Microsoft::WRL::ComPtr<ID3D11RenderTargetView> g_pRenderTargetView;
enum class DisplayMode {
Camera1,
Camera2,
SideBySide
};
extern DisplayMode g_displayMode;
HRESULT InitDevice(HWND hWnd, SharedMemoryData& sharedMemoryData, float zoomFactor);
void CleanupDevice();
void Render(SharedMemoryData& sharedMemoryData);
void Resize(UINT width, UINT height);
void UpdateMeshes(SharedMemoryData& sharedMemoryData, float zoomFactor, bool useDistortion = true);