rodecomp/Source/Render/DX7/RenderSystemDX7.h
ragnarok-clanker 89a874690f Maintenance: Move mid-file forward declarations out of .cpp files into owning headers: CUIListBoxEx explicit-specialization declarati
Batch #18338 by ragnarok-clanker: no function's compiled code changes; checked with 433 compiled unit(s), including every includer of Source/Client/Application/ApplicationWindow.h, Source/Client/Mode/CGameMode.h, Source/Client/Session/Session.h, Source/Contents/Configuration/ServiceOptions.h, Source/Contents/Map/MapSkyMgr.h, Source/Contents/Messenger/ClientMessenger.h, Source/Contents/SignBoard/SignBoard.h, Source/Contents/Skills/ClientSkills.h, Source/Contents/Sound/SoundConfiguration.h, Source/Render/DX7/RenderSystemDX7.h, Source/Render/Device/DisplayMode.h, Source/Resource/Json/JsonCppLoader.h, Source/Security/NProtectGameGuardMgr.h, Source/UI/Cooldowns/CooldownOwner.h, Source/UI/Enchant/EnchantUI.h, Source/UI/Exchange/UIExchangeUI.h, Source/UI/GameSettings/GameSettingsUI.h, Source/UI/ProbabilityTable/UIProbabilityTable.h, Source/UI/Quest/UIOngoingQuestInfo.h, Source/UI/RuneSystem/UIRuneSystemWnd.h, Source/UI/SelectPackageItemBox/SelectPackageItemBox.h, Source/UI/SkillDelayInfo/SkillDelayInfo.h, Source/UI/Text/TextWrapping.h, Source/Contents/Actors/Resources/BodyResources.h, Source/Resource/Json/JsonCppLoaderExternal.h, Source/Resource/Json/JsonCppLoaderParsing.h, Source/Security/NProtectGameMon.h.
2026-11-12 13:39:07 +00:00

68 lines
2 KiB
C++

#ifndef RAGNAROK_SOURCE_RENDER_DX7_RENDERSYSTEMDX7_H
#define RAGNAROK_SOURCE_RENDER_DX7_RENDERSYSTEMDX7_H
#include "Render/RenderSystemBase.h"
#include <memory>
struct TextureAllocationDX7;
class DeviceOwnerDX7;
class CTextureDX7;
class CRenderSystemDX7 : public CRenderSystemBase {
public:
CRenderSystemDX7();
~CRenderSystemDX7() override;
std::int32_t Backend() override;
HRESULT Initialize(HWND window) override;
HRESULT Close() override;
bool IsWindowed() override;
std::uint32_t Width() override;
std::uint32_t Height() override;
CRenderer* CreateRenderer() override;
void DestroySurface(CSurface* surface) override;
CSurface* CreateSurface(std::uint32_t width, std::uint32_t height) override;
CTexture* CreateTexture(std::uint32_t width, std::uint32_t height, std::int32_t format, bool option1, bool option2) override;
CSurface* CreateSurfaceOrTexture(std::uint32_t width, std::uint32_t height) override;
CTexture* BackBufferTexture() override;
std::shared_ptr<CSurface> BackBufferSurface() override;
void UpdateOption() override;
void RestoreDisplayMode() override;
void PrepareErrorDialog() override;
HRESULT TestDevice() override;
HRESULT Present(bool option) override;
// INLINED
DeviceOwnerDX7* Device() const {
return this->m_device;
}
private:
/* 0004 */ DeviceOwnerDX7* m_device;
/* 0008 */ std::unique_ptr<CTextureDX7> m_defaultTexture;
/* 000C */ std::shared_ptr<CSurface> m_backBuffer;
};
extern int g_configuredFullscreen;
extern int g_configuredBitsPerPixel;
extern int g_configuredScreenWidth;
extern int g_configuredScreenHeight;
extern int g_configuredOldWidth;
extern int g_configuredOldHeight;
extern int g_configuredDeviceCount;
extern int g_configuredModeCount;
extern int g_renderSystemReset;
extern GUID g_configuredDeviceGuid;
extern char g_configuredDeviceName[0x20];
extern int g_viewportWidth;
extern int g_viewportHeight;
void ClearDirectDrawModes();
#if defined(_WIN32) && !defined(_WIN64)
static_assert(sizeof(CRenderSystemDX7) == 20);
#endif
#endif