mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-14 15:15:46 -04:00
HostDisplay: Simplify method naming
Match PCSX2.
This commit is contained in:
@ -18,48 +18,48 @@ RenderAPI RegTestHostDisplay::GetRenderAPI() const
|
||||
return RenderAPI::None;
|
||||
}
|
||||
|
||||
void* RegTestHostDisplay::GetRenderDevice() const
|
||||
void* RegTestHostDisplay::GetDevice() const
|
||||
{
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
void* RegTestHostDisplay::GetRenderContext() const
|
||||
void* RegTestHostDisplay::GetContext() const
|
||||
{
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
bool RegTestHostDisplay::HasRenderDevice() const
|
||||
bool RegTestHostDisplay::HasDevice() const
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
bool RegTestHostDisplay::HasRenderSurface() const
|
||||
bool RegTestHostDisplay::HasSurface() const
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
bool RegTestHostDisplay::CreateRenderDevice(const WindowInfo& wi)
|
||||
bool RegTestHostDisplay::CreateDevice(const WindowInfo& wi)
|
||||
{
|
||||
m_window_info = wi;
|
||||
return true;
|
||||
}
|
||||
|
||||
bool RegTestHostDisplay::InitializeRenderDevice()
|
||||
bool RegTestHostDisplay::SetupDevice()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
bool RegTestHostDisplay::MakeRenderContextCurrent()
|
||||
bool RegTestHostDisplay::MakeCurrent()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
bool RegTestHostDisplay::DoneRenderContextCurrent()
|
||||
bool RegTestHostDisplay::DoneCurrent()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
void RegTestHostDisplay::DestroyRenderSurface() {}
|
||||
void RegTestHostDisplay::DestroySurface() {}
|
||||
|
||||
bool RegTestHostDisplay::CreateResources()
|
||||
{
|
||||
@ -89,13 +89,13 @@ bool RegTestHostDisplay::UpdateImGuiFontTexture()
|
||||
return true;
|
||||
}
|
||||
|
||||
bool RegTestHostDisplay::ChangeRenderWindow(const WindowInfo& wi)
|
||||
bool RegTestHostDisplay::ChangeWindow(const WindowInfo& wi)
|
||||
{
|
||||
m_window_info = wi;
|
||||
return true;
|
||||
}
|
||||
|
||||
void RegTestHostDisplay::ResizeRenderWindow(s32 new_window_width, s32 new_window_height)
|
||||
void RegTestHostDisplay::ResizeWindow(s32 new_window_width, s32 new_window_height)
|
||||
{
|
||||
m_window_info.surface_width = new_window_width;
|
||||
m_window_info.surface_height = new_window_height;
|
||||
|
@ -9,24 +9,24 @@ public:
|
||||
~RegTestHostDisplay();
|
||||
|
||||
RenderAPI GetRenderAPI() const override;
|
||||
void* GetRenderDevice() const override;
|
||||
void* GetRenderContext() const override;
|
||||
void* GetDevice() const override;
|
||||
void* GetContext() const override;
|
||||
|
||||
bool HasRenderDevice() const override;
|
||||
bool HasRenderSurface() const override;
|
||||
bool HasDevice() const override;
|
||||
bool HasSurface() const override;
|
||||
|
||||
bool CreateRenderDevice(const WindowInfo& wi) override;
|
||||
bool InitializeRenderDevice() override;
|
||||
bool CreateDevice(const WindowInfo& wi) override;
|
||||
bool SetupDevice() override;
|
||||
|
||||
bool MakeRenderContextCurrent() override;
|
||||
bool DoneRenderContextCurrent() override;
|
||||
bool MakeCurrent() override;
|
||||
bool DoneCurrent() override;
|
||||
|
||||
bool ChangeRenderWindow(const WindowInfo& wi) override;
|
||||
void ResizeRenderWindow(s32 new_window_width, s32 new_window_height) override;
|
||||
bool ChangeWindow(const WindowInfo& wi) override;
|
||||
void ResizeWindow(s32 new_window_width, s32 new_window_height) override;
|
||||
bool SupportsFullscreen() const override;
|
||||
bool IsFullscreen() override;
|
||||
bool SetFullscreen(bool fullscreen, u32 width, u32 height, float refresh_rate) override;
|
||||
void DestroyRenderSurface() override;
|
||||
void DestroySurface() override;
|
||||
|
||||
bool SetPostProcessingChain(const std::string_view& config) override;
|
||||
|
||||
|
Reference in New Issue
Block a user