Files
mcpe/source/client/renderer/GameRenderer.hpp
Brent a0f71c7b27 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>
2023-08-07 15:48:52 +03:00

89 lines
1.7 KiB
C++

/********************************************************************
Minecraft: Pocket Edition - Decompilation Project
Copyright (C) 2023 iProgramInCpp
The following code is licensed under the BSD 1 clause license.
SPDX-License-Identifier: BSD-1-Clause
********************************************************************/
#pragma once
#include "ItemInHandRenderer.hpp"
class Minecraft;
class Entity;
class GameRenderer
{
private:
void _init();
public:
GameRenderer() { _init(); }
GameRenderer(Minecraft*);
~GameRenderer();
void saveMatrices();
void setupCamera(float f, int i);
void bobHurt(float);
void bobView(float);
void moveCameraToPlayer(float);
#ifndef ORIGINAL_CODE
void renderNoCamera();
#endif
void renderLevel(float);
void render(float);
void tick();
void setupGuiScreen();
void onGraphicsReset();
void zoomRegion(float a, float b, float c);
void unZoomRegion();
void setupClearColor(float f);
void setupFog(int i);
void pick(float);
void renderItemInHand(float, int);
float getFov(float f);
public:
ItemInHandRenderer* m_pItemInHandRenderer;
Minecraft* m_pMinecraft;
float field_8;
int field_C;
Entity* field_10;
float field_14;
float field_18;
float field_1C;
float field_20;
float field_24;
float field_28;
float field_2C;
float field_30;
float field_34;
float field_38;
float field_3C;
float field_40;
float field_44;
float field_48;
float field_4C;
float field_50;
float field_54;
float field_58;
float field_5C;
float field_60;
float field_64;
float field_68;
float field_6C;
float field_70;
float field_74;
float field_78;
float field_7C;
float field_80;
float field_84;
float m_matrix_projection[16];
float m_matrix_model_view[16];
};