mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-29 12:23:54 +00:00
rename IPlatformRender to IPlatformRenderer
This commit is contained in:
parent
0299a503f9
commit
e57105c5b3
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue