Initial Android Support

This commit is contained in:
ItzVladik
2026-04-05 16:49:56 +00:00
parent 1ea1801271
commit fa6861b221
38 changed files with 337 additions and 21 deletions
+5
View File
@@ -1,6 +1,10 @@
#include "Camera.h"
#ifdef GLES
#include <GLES3/gl3.h>
#else
#include <GL/gl.h>
#endif
#include <glm/glm.hpp>
#include <math.h>
#include <string.h>
@@ -9,6 +13,7 @@
#include "MemoryTracker.h"
#include "app/include/stubs.h"
#include "platform/sdl2/Render.h"
#include "java/FloatBuffer.h"
#include "minecraft/world/entity/LivingEntity.h"
#include "minecraft/world/entity/player/Player.h"
+4
View File
@@ -1,6 +1,10 @@
#include "Lighting.h"
#ifdef GLES
#include <GLES3/gl3.h>
#else
#include <GL/gl.h>
#endif
#include "platform/sdl2/Render.h"
#include "app/include/stubs.h"
@@ -1,6 +1,10 @@
#include "GuiComponent.h"
#ifdef GLES
#include <GLES3/gl3.h>
#else
#include <GL/gl.h>
#endif
#include <math.h>
#include "platform/sdl2/Render.h"
+4
View File
@@ -1,6 +1,10 @@
#include "Minimap.h"
#ifdef GLES
#include <GLES3/gl3.h>
#else
#include <GL/gl.h>
#endif
#include <math.h>
#include <string.h>
#include <wchar.h>
@@ -1,6 +1,10 @@
#include "AchievementPopup.h"
#ifdef GLES
#include <GLES3/gl3.h>
#else
#include <GL/gl.h>
#endif
#include "platform/sdl2/Render.h"
#include "java/System.h"
@@ -1,6 +1,10 @@
#include "AchievementScreen.h"
#ifdef GLES
#include <GLES3/gl3.h>
#else
#include <GL/gl.h>
#endif
#include <string>
#include <vector>
@@ -1,6 +1,10 @@
#include "BeaconScreen.h"
#ifdef GLES
#include <GLES3/gl3.h>
#else
#include <GL/gl.h>
#endif
#include <memory>
#include <string>
@@ -1,6 +1,10 @@
#include "CreativeInventoryScreen.h"
#ifdef GLES
#include <GLES3/gl3.h>
#else
#include <GL/gl.h>
#endif
#include <algorithm>
#include <string>
@@ -1,6 +1,10 @@
#include "RepairScreen.h"
#ifdef GLES
#include <GLES3/gl3.h>
#else
#include <GL/gl.h>
#endif
#include <memory>
#include <string>
@@ -1,6 +1,10 @@
#include "ChestModel.h"
#ifdef GLES
#include <GLES3/gl3.h>
#else
#include <GL/gl.h>
#endif
#include "minecraft/client/model/geom/ModelPart.h"
@@ -1,6 +1,10 @@
#include "ModelPart.h"
#ifdef GLES
#include <GLES3/gl3.h>
#else
#include <GL/gl.h>
#endif
#include <numbers>
@@ -1,6 +1,10 @@
#include "FootstepParticle.h"
#ifdef GLES
#include <GLES3/gl3.h>
#else
#include <GL/gl.h>
#endif
#include <cmath>
@@ -1,6 +1,10 @@
#include "HugeExplosionParticle.h"
#ifdef GLES
#include <GLES3/gl3.h>
#else
#include <GL/gl.h>
#endif
#include "platform/sdl2/Render.h"
#include "app/common/App_enums.h"
@@ -1,6 +1,10 @@
#include "ParticleEngine.h"
#ifdef GLES
#include <GLES3/gl3.h>
#else
#include <GL/gl.h>
#endif
#include <math.h>
#include <algorithm>
@@ -1,6 +1,10 @@
#include "TakeAnimationParticle.h"
#ifdef GLES
#include <GLES3/gl3.h>
#else
#include <GL/gl.h>
#endif
#include <cmath>
@@ -1,6 +1,10 @@
#include "Chunk.h"
#ifdef GLES
#include <GLES3/gl3.h>
#else
#include <GL/gl.h>
#endif
#include <string.h>
#include <mutex>
@@ -1,6 +1,10 @@
#include "ItemInHandRenderer.h"
#ifdef GLES
#include <GLES3/gl3.h>
#else
#include <GL/gl.h>
#endif
#include <cmath>
#include <numbers>
@@ -1,6 +1,10 @@
#include "LevelRenderer.h"
#ifdef GLES
#include <GLES3/gl3.h>
#else
#include <GL/gl.h>
#endif
#include <limits.h>
#include <stdio.h>
#include <string.h>
@@ -1,6 +1,10 @@
#include "Tesselator.h"
#ifdef GLES
#include <GLES3/gl3.h>
#else
#include <GL/gl.h>
#endif
#include <vector>
@@ -1,6 +1,10 @@
#include "TileRenderer.h"
#ifdef GLES
#include <GLES3/gl3.h>
#else
#include <GL/gl.h>
#endif
#include <assert.h>
#include <stdint.h>
#include <string.h>
@@ -1,6 +1,10 @@
#include "Frustum.h"
#ifdef GLES
#include <GLES3/gl3.h>
#else
#include <GL/gl.h>
#endif
#include <string.h>
#include <cmath>
@@ -1,4 +1,8 @@
#ifdef GLES
#include <GLES3/gl3.h>
#else
#include <GL/gl.h>
#endif
#include <string>
@@ -1,6 +1,11 @@
#pragma once
#ifdef GLES
#include <GLES3/gl3.h>
#include <GLES2/gl2ext.h>
#else
#include <GL/gl.h>
#endif
#include <format>
#include <string>
@@ -13,12 +18,19 @@ class BufferedImage;
class Texture {
public:
static const int WM_WRAP = GL_REPEAT;
#ifdef GLES
static const int WM_CLAMP = GL_CLAMP_TO_EDGE;
#else
static const int WM_CLAMP = GL_CLAMP;
#endif
static const int WM_MIRROR = 0; // GL_MIRRORED_REPEAT;
static const int TFMT_RGBA = GL_RGBA;
#ifdef GLES
static const int TFMT_BGRA = GL_BGRA_EXT;
#else
static const int TFMT_BGRA = GL_BGRA;
#endif
static const int TFLT_NEAREST = GL_NEAREST;
static const int TFLT_LINEAR = GL_LINEAR;
static const int TFLT_LINEAR_MIP_NEAREST = 0; // GL_LINEAR_MIPMAP_NEAREST;
@@ -1,6 +1,10 @@
#include "AbstractTexturePack.h"
#ifdef GLES
#include <GLES3/gl3.h>
#else
#include <GL/gl.h>
#endif
#include <wchar.h>
#include <vector>
@@ -4,6 +4,7 @@
#include <cmath>
#include <vector>
#include <numbers> // for std::numbers
#include "platform/sdl2/Render.h"
#include "app/linux/LinuxGame.h"