r5sdk/r5dev/windows/resource.h
Kawe Mazidjatari c0511fa8e4 See description
* Add ConVar to allow user to set/unset FCVAR_DEVELOPMENTONLY ConVar's (default behavior would never be hit without this ConVar).
* Add icons to display the flags of a certain CommandBase.
* Fixed Dear ImGui not displaying images correctly (descriptor needs DXGI_FORMAT_R8G8B8A8_UNORM_SRGB due to the nature of this game).
* Dynamically obtain buffer sizes of resources taken from modules.
* Light SDK cleanup.
2022-04-26 20:24:51 +02:00

29 lines
510 B
C

#pragma once
struct MODULERESOURCE
{
MODULERESOURCE(void)
{
m_pData = nullptr;
m_nSize = NULL;
m_idIcon = nullptr;
m_nWidth = NULL;
m_nHeight = NULL;
}
MODULERESOURCE(LPVOID pData, DWORD nSize, ID3D11ShaderResourceView* pIcon = nullptr)
{
m_pData = pData;
m_nSize = nSize;
m_idIcon = pIcon;
m_nWidth = NULL;
m_nHeight = NULL;
}
LPVOID m_pData;
DWORD m_nSize;
ID3D11ShaderResourceView* m_idIcon;
int m_nWidth;
int m_nHeight;
};
MODULERESOURCE GetModuleResource(int iResource);