rename IPlatformRender to IPlatformRenderer
Some checks are pending
Build (Linux, x86-64) / build-linux (push) Waiting to run
Format Check / clang-format (push) Waiting to run

This commit is contained in:
Tropical 2026-04-01 20:16:33 -05:00
parent 0299a503f9
commit e57105c5b3
6 changed files with 14 additions and 14 deletions

View file

@ -8,9 +8,9 @@
#include <cstdint>
#include <cstdlib>
#include "../platform/IPlatformRender.h"
#include "../platform/IPlatformRenderer.h"
class C4JRender : public IPlatformRender {
class C4JRender : public IPlatformRenderer {
public:
void Tick();
void UpdateGamma(unsigned short usGamma);

View file

@ -6,7 +6,7 @@
#include <vector>
#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);

View file

@ -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;

View file

@ -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"

View file

@ -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;

View file

@ -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;