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

@ -58,6 +58,8 @@ class OpenGLObjects {
static class TextureGL implements ITextureGL {
final int ptr;
int width;
int height;
TextureGL(int ptr) {
this.ptr = ptr;
@ -71,7 +73,23 @@ class OpenGLObjects {
public void free() {
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 {