Owner-authorized source migration: 31 helper-only translation units were merged into their callers or existing inline headers; both build manifests updated. Includes the preserved source payload, Lua configuration matching wowdecomp, and exact malloca expansion without diagnostic pragmas. 449 native units compiled locally and 449 staged units compiled by the pinned server toolchain. No previously byte-matched function regressed. Compiler mapping diagnostics remain recorded as needs_cleanup, not accepted or peer-confirmed. Existing independent review records are preserved. README.md is intentionally unchanged.
40 lines
1.3 KiB
C++
40 lines
1.3 KiB
C++
#ifndef RAGNAROK_SOURCE_RENDER_RENDERSYSTEMBASE_H
|
|
#define RAGNAROK_SOURCE_RENDER_RENDERSYSTEMBASE_H
|
|
|
|
#include <cstdint>
|
|
#include <memory>
|
|
#include <windows.h>
|
|
|
|
class CRenderer;
|
|
class CSurface;
|
|
class CTexture;
|
|
|
|
class CRenderSystemBase {
|
|
public:
|
|
// OFFSET: 0x0056B4D0
|
|
virtual ~CRenderSystemBase() = default;
|
|
virtual std::int32_t Backend() = 0;
|
|
virtual HRESULT Initialize(HWND window) = 0;
|
|
virtual HRESULT Close() = 0;
|
|
virtual bool IsWindowed() = 0;
|
|
virtual std::uint32_t Width() = 0;
|
|
virtual std::uint32_t Height() = 0;
|
|
virtual CRenderer* CreateRenderer() = 0;
|
|
virtual void DestroySurface(CSurface* surface) = 0;
|
|
virtual CSurface* CreateSurface(std::uint32_t width, std::uint32_t height) = 0;
|
|
virtual CTexture* CreateTexture(std::uint32_t width, std::uint32_t height, std::int32_t format, bool option1, bool option2) = 0;
|
|
virtual CSurface* CreateSurfaceOrTexture(std::uint32_t width, std::uint32_t height) = 0;
|
|
virtual CTexture* BackBufferTexture() = 0;
|
|
virtual std::shared_ptr<CSurface> BackBufferSurface() = 0;
|
|
virtual void UpdateOption() = 0;
|
|
virtual void PrepareErrorDialog() = 0;
|
|
virtual void RestoreDisplayMode() = 0;
|
|
virtual HRESULT TestDevice() = 0;
|
|
virtual HRESULT Present(bool option) = 0;
|
|
};
|
|
|
|
#if defined(_WIN32) && !defined(_WIN64)
|
|
static_assert(sizeof(CRenderSystemBase) == 4);
|
|
#endif
|
|
|
|
#endif
|