mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-08-20 09:57:10 +00:00
rename IPlatformRender to IPlatformRenderer
This commit is contained in:
parent
0299a503f9
commit
e57105c5b3
|
|
@ -8,9 +8,9 @@
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
|
|
||||||
#include "../platform/IPlatformRender.h"
|
#include "../platform/IPlatformRenderer.h"
|
||||||
|
|
||||||
class C4JRender : public IPlatformRender {
|
class C4JRender : public IPlatformRenderer {
|
||||||
public:
|
public:
|
||||||
void Tick();
|
void Tick();
|
||||||
void UpdateGamma(unsigned short usGamma);
|
void UpdateGamma(unsigned short usGamma);
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include "4J_Render.h"
|
#include "4J_Render.h"
|
||||||
#include "IPlatformRender.h"
|
#include "IPlatformRenderer.h"
|
||||||
|
|
||||||
class Icon;
|
class Icon;
|
||||||
class Entity;
|
class Entity;
|
||||||
|
|
@ -273,7 +273,7 @@ typedef enum _TEXTURE_NAME {
|
||||||
class Textures {
|
class Textures {
|
||||||
public:
|
public:
|
||||||
static bool MIPMAP;
|
static bool MIPMAP;
|
||||||
static IPlatformRender::eTextureFormat TEXTURE_FORMAT;
|
static IPlatformRenderer::eTextureFormat TEXTURE_FORMAT;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
static const wchar_t* preLoaded[TN_COUNT];
|
static const wchar_t* preLoaded[TN_COUNT];
|
||||||
|
|
@ -334,8 +334,8 @@ private:
|
||||||
public:
|
public:
|
||||||
int loadTexture(int idx); // 4J added
|
int loadTexture(int idx); // 4J added
|
||||||
int getTexture(BufferedImage* img,
|
int getTexture(BufferedImage* img,
|
||||||
IPlatformRender::eTextureFormat format =
|
IPlatformRenderer::eTextureFormat format =
|
||||||
IPlatformRender::TEXTURE_FORMAT_RxGyBzAw,
|
IPlatformRenderer::TEXTURE_FORMAT_RxGyBzAw,
|
||||||
bool mipmap = true);
|
bool mipmap = true);
|
||||||
void loadTexture(BufferedImage* img, int id);
|
void loadTexture(BufferedImage* img, int id);
|
||||||
void loadTexture(BufferedImage* img, int id, bool blur, bool clamp);
|
void loadTexture(BufferedImage* img, int id, bool blur, bool clamp);
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
#include "PlatformTypes.h"
|
#include "PlatformTypes.h"
|
||||||
|
|
||||||
class IPlatformRender {
|
class IPlatformRenderer {
|
||||||
public:
|
public:
|
||||||
enum eVertexType {
|
enum eVertexType {
|
||||||
VERTEX_TYPE_PF3_TF2_CB4_NB4_XW1,
|
VERTEX_TYPE_PF3_TF2_CB4_NB4_XW1,
|
||||||
|
|
@ -45,7 +45,7 @@ public:
|
||||||
|
|
||||||
enum eTextureFormat { TEXTURE_FORMAT_RxGyBzAw, MAX_TEXTURE_FORMATS };
|
enum eTextureFormat { TEXTURE_FORMAT_RxGyBzAw, MAX_TEXTURE_FORMATS };
|
||||||
|
|
||||||
virtual ~IPlatformRender() = default;
|
virtual ~IPlatformRenderer() = default;
|
||||||
|
|
||||||
// Lifecycle
|
// Lifecycle
|
||||||
virtual void Initialise() = 0;
|
virtual void Initialise() = 0;
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
#include "IPlatformInput.h"
|
#include "IPlatformInput.h"
|
||||||
#include "IPlatformNetwork.h"
|
#include "IPlatformNetwork.h"
|
||||||
#include "IPlatformProfile.h"
|
#include "IPlatformProfile.h"
|
||||||
#include "IPlatformRender.h"
|
#include "IPlatformRenderer.h"
|
||||||
#include "IPlatformSound.h"
|
#include "IPlatformSound.h"
|
||||||
#include "IPlatformStorage.h"
|
#include "IPlatformStorage.h"
|
||||||
#include "IPlatformUIController.h"
|
#include "IPlatformUIController.h"
|
||||||
|
|
|
||||||
|
|
@ -7,10 +7,10 @@
|
||||||
|
|
||||||
class IPlatformInput;
|
class IPlatformInput;
|
||||||
class IPlatformProfile;
|
class IPlatformProfile;
|
||||||
class IPlatformRender;
|
class IPlatformRenderer;
|
||||||
class IPlatformStorage;
|
class IPlatformStorage;
|
||||||
|
|
||||||
IPlatformInput& PlatformInput = InputManager;
|
IPlatformInput& PlatformInput = InputManager;
|
||||||
IPlatformProfile& PlatformProfile = ProfileManager;
|
IPlatformProfile& PlatformProfile = ProfileManager;
|
||||||
IPlatformRender& PlatformRender = RenderManager;
|
IPlatformRenderer& PlatformRender = RenderManager;
|
||||||
IPlatformStorage& PlatformStorage = StorageManager;
|
IPlatformStorage& PlatformStorage = StorageManager;
|
||||||
|
|
|
||||||
|
|
@ -2,12 +2,12 @@
|
||||||
|
|
||||||
#include "IPlatformInput.h"
|
#include "IPlatformInput.h"
|
||||||
#include "IPlatformProfile.h"
|
#include "IPlatformProfile.h"
|
||||||
#include "IPlatformRender.h"
|
#include "IPlatformRenderer.h"
|
||||||
#include "IPlatformStorage.h"
|
#include "IPlatformStorage.h"
|
||||||
|
|
||||||
class IPlatformInput;
|
class IPlatformInput;
|
||||||
class IPlatformProfile;
|
class IPlatformProfile;
|
||||||
class IPlatformRender;
|
class IPlatformRenderer;
|
||||||
class IPlatformStorage;
|
class IPlatformStorage;
|
||||||
|
|
||||||
// Interface references to platform services. World code uses these
|
// Interface references to platform services. World code uses these
|
||||||
|
|
@ -16,5 +16,5 @@ class IPlatformStorage;
|
||||||
|
|
||||||
extern IPlatformInput& PlatformInput;
|
extern IPlatformInput& PlatformInput;
|
||||||
extern IPlatformProfile& PlatformProfile;
|
extern IPlatformProfile& PlatformProfile;
|
||||||
extern IPlatformRender& PlatformRender;
|
extern IPlatformRenderer& PlatformRender;
|
||||||
extern IPlatformStorage& PlatformStorage;
|
extern IPlatformStorage& PlatformStorage;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue