Imported Dear ImGui
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
#ifndef __CONFIG_HPP__
|
||||
#define __CONFIG_HPP__
|
||||
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,23 @@
|
||||
#ifndef __GLOBAL_VARIABLES_HPP__
|
||||
#define __GLOBAL_VARIABLES_HPP__
|
||||
|
||||
#include "imgui.h"
|
||||
#include "imgui_impl_win32.h"
|
||||
#include "imgui_impl_dx11.h"
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include "windows.h"
|
||||
#include "d3d11.h"
|
||||
}
|
||||
|
||||
// D3D11 相关
|
||||
extern ID3D11Device *g_pd3dDevice; // D3D11 设备句柄
|
||||
extern ID3D11DeviceContext *g_pd3dDeviceContext; // D3D11 设备上下文句柄
|
||||
|
||||
extern IDXGISwapChain *g_pSwapChain; // DXGI 交换链句柄
|
||||
extern bool g_SwapChainOccluded; // 交换链是否阻塞
|
||||
|
||||
extern ID3D11RenderTargetView *g_mainRenderTargetView; // D3D11 渲染目标
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user