Update #51 - Protocol and FPS improvements, better workspace

This commit is contained in:
lax1dude
2025-05-18 15:01:06 -07:00
parent 71c61e33fd
commit 325a6826bf
1191 changed files with 9266 additions and 187695 deletions

View File

@ -40,6 +40,7 @@ class OpenGLObjects {
static class VertexArrayGL implements IVertexArrayGL {
final int ptr;
int enabled;
VertexArrayGL(int ptr) {
this.ptr = ptr;
@ -53,7 +54,22 @@ class OpenGLObjects {
public void free() {
PlatformOpenGL._wglDeleteVertexArrays(this);
}
@Override
public int getBits() {
return enabled;
}
@Override
public void setBit(int bit) {
enabled |= bit;
}
@Override
public void unsetBit(int bit) {
enabled &= ~bit;
}
}
static class TextureGL implements ITextureGL {

View File

@ -580,7 +580,7 @@ public class PlatformInput {
}
public static boolean contextLost() {
return glfwGetWindowAttrib(win, GLFW_ICONIFIED) == GLFW_TRUE;
return false;
}
public static void setFunctionKeyModifier(int key) {

View File

@ -101,7 +101,11 @@ public class PlatformRuntime {
IEaglerFilesystem resourcePackFilesystem = Filesystem.getHandleFor(getClientConfigAdapter().getResourcePacksDB());
VFile2.setPrimaryFilesystem(resourcePackFilesystem);
EaglerFolderResourcePack.setSupported(true);
if (glfwPlatformSupported(GLFW_PLATFORM_X11)) {
glfwInitHint(GLFW_PLATFORM, GLFW_PLATFORM_X11);
}
if(requestedANGLEPlatform != EnumPlatformANGLE.DEFAULT) {
logger.info("Setting ANGLE Platform: {}", requestedANGLEPlatform.name);
glfwInitHint(GLFW_ANGLE_PLATFORM_TYPE, requestedANGLEPlatform.eglEnum);

View File

@ -65,6 +65,14 @@ public class PlatformVoiceClient {
}
public static void makePeerGlobal(EaglercraftUUID peerId) {
}
public static void makePeerProximity(EaglercraftUUID peerId) {
}
public static void tickVoiceClient() {
}