mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
* 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.
29 lines
510 B
C
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);
|