Update #48 - Added some features from OptiFine

This commit is contained in:
lax1dude
2025-01-24 18:39:36 -08:00
parent 1f0d593a8c
commit e83a912e38
1056 changed files with 17706 additions and 898 deletions

View File

@ -77,6 +77,8 @@ class OpenGLObjects {
private static int hashGen = 0;
final WebGLTexture ptr;
final int hash;
int width;
int height;
TextureGL(WebGLTexture ptr) {
this.ptr = ptr;
@ -92,6 +94,22 @@ class OpenGLObjects {
PlatformOpenGL._wglDeleteTextures(this);
}
@Override
public void setCacheSize(int w, int h) {
width = w;
height = h;
}
@Override
public int getWidth() {
return width;
}
@Override
public int getHeight() {
return height;
}
}
static class ProgramGL implements IProgramGL {