rodecomp/Source/Render/DX7/RenderSystemDX7.h
ragnarok-clanker a645583bea Decompile 9 functions in Source/UI/GameSettings/GameSettingsUI.cpp, Source/UI/GameSettings/GameSettingsUI.h, ...
Batch #4814 by youko: 9 byte-identical, 0 confirmed by peer review.

- fn_15962 CUIComboBox<GameSettingsUI::CUIComboItem,RenderAdapter>::Selected: byte-identical
- fn_15963 CUIComboBox<GameSettingsUI::CUIComboItem,DisplayMode>::Selected: byte-identical
- fn_15964 CUIComboBox<GameSettingsUI::CUIComboItem,RenderBackend>::Selected: byte-identical
- fn_15965 CUIComboBox<GameSettingsUI::CUIComboItem,std::basic_string<char,std::char_traits<char>,std::allocator<char> > >::Selected: byte-identical
- fn_15968 GameSettingsUI::CUIListPage::Slot54: byte-identical
- fn_16009 CUIComboBox<GameSettingsUI::CUIComboItem,RenderAdapter>::UpdateListHeight: byte-identical
- fn_16010 CUIComboBox<GameSettingsUI::CUIComboItem,DisplayMode>::UpdateListHeight: byte-identical
- fn_16011 CUIComboBox<GameSettingsUI::CUIComboItem,RenderBackend>::UpdateListHeight: byte-identical
- fn_16012 CUIComboBox<GameSettingsUI::CUIComboItem,std::basic_string<char,std::char_traits<char>,std::allocator<char> > >::UpdateListHeight: byte-identical

Merged automatically: every function is byte-identical to the original.
2026-10-30 05:06:23 +00:00

57 lines
1.7 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;
int RefreshRendererCapabilities(int mipmaps, TextureAllocationDX7& allocation, bool& multitexture, CRenderSystemBase* renderSystem);
// INLINED
DeviceOwnerDX7* Device() const {
return this->m_device;
}
private:
/* 0004 */ DeviceOwnerDX7* m_device;
/* 0008 */ CTextureDX7* m_defaultTexture;
/* 000C */ std::shared_ptr<CSurface> m_backBuffer;
};
extern int g_configuredFullscreen;
void ClearDirectDrawModes();
#if defined(_WIN32) && !defined(_WIN64)
static_assert(sizeof(CRenderSystemDX7) == 20);
#endif
#endif