Skip to content

radmanplays/Eagler-dev-kit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Eagler dev kit

Utils for porting mods/clients to eaglercraft and porting minecraft versions to browser

WARNING: the lwjgl compatibility layer was made for 1.8 and may need some modifications to work on other versions

How to use

  1. download this repo or clone it by using git clone https://github.com/radmanplays/Eagler-dev-kit.git
  2. copy all the folders in this repo(not the README.md file) into src/main/java folder of your client
  3. add these lines to the files specified:

PlatformOpenGL LWJGL:

public static void _wglScissor(int x, int y, int width, int height) {
  glScissor(x, y, width, height);
}

PlatformOpenGL TeaVM:

public static void _wglScissor(int x, int y, int width, int height) {
  ctx.scissor(x, y, width, height);
}

GlStateManager.java:

private static boolean scissorState = false;

public static void enableScissor() {
  if(!scissorState) {
    _wglEnable(RealOpenGLEnums.GL_SCISSOR_TEST);
    scissorState = true;
  }
}

public static void disableScissor() {
  if(scissorState) {
    _wglDisable(RealOpenGLEnums.GL_SCISSOR_TEST);
    scissorState = false;
  }
}

public static void glScissor(int x, int y, int width, int height) {
  _wglScissor(x, y, width, height);
}

PlatformOpenGL platform-api:

public static native void _glScissor(int x, int y, int width, int height);

PlatformOpenGL WASM:

@Import(module = "platformOpenGL", name = "glScissor")
public static native void _wglScissor(int x, int y, int width, int height);

Credits

lax1dude: made the gson port

Peytonplayz585: made the lwjgl compatibility layer

radmanplays: modified the compatibility layer to make it support more functions

About

Utils for porting mods/clients to eaglercraft and porting minecraft versions to browser

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages