C++03 Support & Partial Xbox 360 Support (#37)

* WIP C++03 + Xbox 360 Support

* math.h & _USE_MATH_DEFINES on Level.hpp
Updated Xenon vcxproj file for new file structure.

* * Fix bad GUI scale setup.

* * Gui: Use ratios instead of hardcoded sub-1 floating point values, to make the mechanism more clear.

* Add Direct Connect Button and Screen (#30)

* Add Direct Connect Button and Screen

* Remove accidental extra build directories for wasm

* Add DirectConnectScreen.cpp to the CMake

* Use Hungarian coding style notation

* * Fix errors caused by #30

* * Improve the Chat Screen

* * Improve the DirectConnectScreen, among other things.

* * Update the game title once again.

* * Add build-wasm.bat.

* * Add info about compiling for wasm

* * Fix send to specific GUID actually broadcasting to everyone

* * Add command manager.

* * Add writeable configuration.

* * Allow dynamic screen size change on windows

* * Allow the same thing on the emscripten version.

* WIP C++03 + Xbox 360 Support

* Fixed a possible merging issue that broke RakNet?

* Additional Xbox 360 compatability fixes

---------

Co-authored-by: Brent Da Mage <BrentDaMage@users.noreply.github.com>
Co-authored-by: iProgramInCpp <iprogramincpp@gmail.com>
Co-authored-by: ts <124226059+uniformization@users.noreply.github.com>
This commit is contained in:
Brent
2023-08-07 07:48:52 -05:00
committed by GitHub
parent 6c1a54e3f0
commit a0f71c7b27
179 changed files with 4969 additions and 918 deletions

View File

@@ -16,6 +16,16 @@ float EntityRenderDispatcher::xOff, EntityRenderDispatcher::yOff, EntityRenderDi
EntityRenderDispatcher::EntityRenderDispatcher() :
m_HumanoidMobRenderer(new HumanoidModel(0.0f, 0.0f), 0.0f)
{
m_pItemInHandRenderer = nullptr;
m_pTextures = nullptr;
m_pLevel = nullptr;
m_pMinecraft = nullptr;
m_pMob = nullptr;
m_yaw = 0.0f;
m_pitch = 0.0f;
m_pOptions = nullptr;
m_pFont = nullptr;
m_HumanoidMobRenderer.init(this);
m_TntRenderer.init(this);
m_CameraRenderer.init(this);

View File

@@ -39,20 +39,20 @@ public:
static EntityRenderDispatcher* getInstance();
public:
ItemInHandRenderer* m_pItemInHandRenderer = nullptr;
ItemInHandRenderer* m_pItemInHandRenderer;
HumanoidMobRenderer m_HumanoidMobRenderer;
TntRenderer m_TntRenderer;
ItemRenderer m_ItemRenderer;
TripodCameraRenderer m_CameraRenderer;
Textures* m_pTextures = nullptr;
Level* m_pLevel = nullptr;
Minecraft* m_pMinecraft = nullptr;
Mob* m_pMob = nullptr;
float m_yaw = 0.0f;
float m_pitch = 0.0f;
Options* m_pOptions = nullptr;
Textures* m_pTextures;
Level* m_pLevel;
Minecraft* m_pMinecraft;
Mob* m_pMob;
float m_yaw;
float m_pitch;
Options* m_pOptions;
Vec3 m_pos;
Font* m_pFont = nullptr;
Font* m_pFont;
#if defined(ENH_ALLOW_SAND_GRAVITY)
FallingTileRenderer m_FallingTileRenderer;

View File

@@ -11,6 +11,9 @@
EntityRenderer::EntityRenderer() : m_model(0.0f, 0.0f)
{
field_4 = 0.0f;
field_8 = 1.0f;
m_pDispatcher = nullptr;
}
void EntityRenderer::bindTexture(const std::string& file)

View File

@@ -28,9 +28,9 @@ public:
virtual void onGraphicsReset();
public:
float field_4 = 0.0f;
float field_8 = 1.0f;
EntityRenderDispatcher* m_pDispatcher = nullptr;
float field_4;
float field_8;
EntityRenderDispatcher* m_pDispatcher;
// @HUH: Why is there a HumanoidModel here? There's another
// in HumanoidMobRenderer...

View File

@@ -11,6 +11,7 @@
MobRenderer::MobRenderer(Model* pModel, float f)
{
m_pArmorModel = nullptr;
m_pModel = pModel;
field_4 = f;
}

View File

@@ -31,6 +31,6 @@ public:
public:
Model* m_pModel;
Model* m_pArmorModel = nullptr;
Model* m_pArmorModel;
};