From e57105c5b350e2b17749cbb73f342bdbec72e50a Mon Sep 17 00:00:00 2001 From: Tropical <42101043+tropicaaal@users.noreply.github.com> Date: Wed, 1 Apr 2026 20:16:33 -0500 Subject: [PATCH] rename IPlatformRender to IPlatformRenderer --- targets/4J.Render/4J_Render.h | 4 ++-- targets/minecraft/client/renderer/Textures.h | 8 ++++---- .../platform/{IPlatformRender.h => IPlatformRenderer.h} | 4 ++-- targets/platform/Platform.h | 2 +- targets/platform/PlatformServices.cpp | 4 ++-- targets/platform/PlatformServices.h | 6 +++--- 6 files changed, 14 insertions(+), 14 deletions(-) rename targets/platform/{IPlatformRender.h => IPlatformRenderer.h} (99%) diff --git a/targets/4J.Render/4J_Render.h b/targets/4J.Render/4J_Render.h index 73332f1cb..943ff234d 100644 --- a/targets/4J.Render/4J_Render.h +++ b/targets/4J.Render/4J_Render.h @@ -8,9 +8,9 @@ #include #include -#include "../platform/IPlatformRender.h" +#include "../platform/IPlatformRenderer.h" -class C4JRender : public IPlatformRender { +class C4JRender : public IPlatformRenderer { public: void Tick(); void UpdateGamma(unsigned short usGamma); diff --git a/targets/minecraft/client/renderer/Textures.h b/targets/minecraft/client/renderer/Textures.h index cd46775e8..d3d2413c0 100644 --- a/targets/minecraft/client/renderer/Textures.h +++ b/targets/minecraft/client/renderer/Textures.h @@ -6,7 +6,7 @@ #include #include "4J_Render.h" -#include "IPlatformRender.h" +#include "IPlatformRenderer.h" class Icon; class Entity; @@ -273,7 +273,7 @@ typedef enum _TEXTURE_NAME { class Textures { public: static bool MIPMAP; - static IPlatformRender::eTextureFormat TEXTURE_FORMAT; + static IPlatformRenderer::eTextureFormat TEXTURE_FORMAT; private: static const wchar_t* preLoaded[TN_COUNT]; @@ -334,8 +334,8 @@ private: public: int loadTexture(int idx); // 4J added int getTexture(BufferedImage* img, - IPlatformRender::eTextureFormat format = - IPlatformRender::TEXTURE_FORMAT_RxGyBzAw, + IPlatformRenderer::eTextureFormat format = + IPlatformRenderer::TEXTURE_FORMAT_RxGyBzAw, bool mipmap = true); void loadTexture(BufferedImage* img, int id); void loadTexture(BufferedImage* img, int id, bool blur, bool clamp); diff --git a/targets/platform/IPlatformRender.h b/targets/platform/IPlatformRenderer.h similarity index 99% rename from targets/platform/IPlatformRender.h rename to targets/platform/IPlatformRenderer.h index 598ca1032..5570e87a2 100644 --- a/targets/platform/IPlatformRender.h +++ b/targets/platform/IPlatformRenderer.h @@ -4,7 +4,7 @@ #include "PlatformTypes.h" -class IPlatformRender { +class IPlatformRenderer { public: enum eVertexType { VERTEX_TYPE_PF3_TF2_CB4_NB4_XW1, @@ -45,7 +45,7 @@ public: enum eTextureFormat { TEXTURE_FORMAT_RxGyBzAw, MAX_TEXTURE_FORMATS }; - virtual ~IPlatformRender() = default; + virtual ~IPlatformRenderer() = default; // Lifecycle virtual void Initialise() = 0; diff --git a/targets/platform/Platform.h b/targets/platform/Platform.h index 8f8d3e586..a5ea61108 100644 --- a/targets/platform/Platform.h +++ b/targets/platform/Platform.h @@ -3,7 +3,7 @@ #include "IPlatformInput.h" #include "IPlatformNetwork.h" #include "IPlatformProfile.h" -#include "IPlatformRender.h" +#include "IPlatformRenderer.h" #include "IPlatformSound.h" #include "IPlatformStorage.h" #include "IPlatformUIController.h" diff --git a/targets/platform/PlatformServices.cpp b/targets/platform/PlatformServices.cpp index ee8b32b11..d88c3f53e 100644 --- a/targets/platform/PlatformServices.cpp +++ b/targets/platform/PlatformServices.cpp @@ -7,10 +7,10 @@ class IPlatformInput; class IPlatformProfile; -class IPlatformRender; +class IPlatformRenderer; class IPlatformStorage; IPlatformInput& PlatformInput = InputManager; IPlatformProfile& PlatformProfile = ProfileManager; -IPlatformRender& PlatformRender = RenderManager; +IPlatformRenderer& PlatformRender = RenderManager; IPlatformStorage& PlatformStorage = StorageManager; diff --git a/targets/platform/PlatformServices.h b/targets/platform/PlatformServices.h index 6c6be54bc..3416cf573 100644 --- a/targets/platform/PlatformServices.h +++ b/targets/platform/PlatformServices.h @@ -2,12 +2,12 @@ #include "IPlatformInput.h" #include "IPlatformProfile.h" -#include "IPlatformRender.h" +#include "IPlatformRenderer.h" #include "IPlatformStorage.h" class IPlatformInput; class IPlatformProfile; -class IPlatformRender; +class IPlatformRenderer; class IPlatformStorage; // Interface references to platform services. World code uses these @@ -16,5 +16,5 @@ class IPlatformStorage; extern IPlatformInput& PlatformInput; extern IPlatformProfile& PlatformProfile; -extern IPlatformRender& PlatformRender; +extern IPlatformRenderer& PlatformRender; extern IPlatformStorage& PlatformStorage;