refactor(web): rename 117HD WebGL2 renderer and UI references to 317HD

Renames `WebHd117Renderer` and all remaining `117HD` symbols, build exclusions, and UI labels in `2006Scape-Web` to `317HD`.

### WebGL2 Renderer & Build
- `WebHd317Renderer.java`:
  - Renamed from `WebHd117Renderer.java` and updated class/log references to `WebHd317Renderer` / `317HD`.
- `build.gradle`, `WebLauncher.java`, `RSImageProducer.java`, `DesktopHooks.java`, `WebGL2.java`:
  - Updated `DesktopHd117Renderer.java` exclusion to `DesktopHd317Renderer.java` and updated pipeline/renderer call sites to `HD317Pipeline` and `WebHd317Renderer`.
- `src/main/webapp/index.html`:
  - Updated UI label from `117HD (WebGL2)` to `317HD (WebGL2)`.
This commit is contained in:
Dark98 committed 2026-11-30 21:57:21 +00:00
1 parent 33235cec55
commit ededb882a0
7 files changed
+48 -48

No files matched your search

@@ -12,7 +12,7 @@ import org.teavm.jso.typedarrays.Uint8ClampedArray;
/**
* Web implementation of DesktopHooks for TeaVM.
* Bridges audio (Web Audio + SpessaSynth), clipboard, screenshots, and 117HD backend init.
* Bridges audio (Web Audio + SpessaSynth), clipboard, screenshots, and 317HD backend init.
*/
public final class DesktopHooks {
@@ -164,10 +164,10 @@ public final class DesktopHooks {
HTMLCanvasElement canvas = RSImageProducer.getCanvas();
if (canvas == null) return;
Uint8ClampedArray rgba = toRgbaOpaque(minimapPixels, 172 * 156);
boolean toGpu = WebHd117Renderer.ensureOverlayReady();
boolean toGpu = WebHd317Renderer.ensureOverlayReady();
HTMLCanvasElement hudC = jsDrawModernMinimap(canvas, rgba, windowWidth, !toGpu);
if (toGpu && hudC != null) {
WebHd117Renderer.drawHudCanvas(hudC, windowWidth - 249, 0, 249, 168);
WebHd317Renderer.drawHudCanvas(hudC, windowWidth - 249, 0, 249, 168);
}
}
@@ -179,10 +179,10 @@ public final class DesktopHooks {
? toRgbaOpaque(chatContentPixels, 479 * 96) : null;
Uint8ClampedArray buttonsRgba = (chatButtonsPixels != null && chatButtonsPixels.length >= 496 * 50)
? toRgbaOpaque(chatButtonsPixels, 496 * 50) : null;
boolean toGpu = WebHd117Renderer.ensureOverlayReady();
boolean toGpu = WebHd317Renderer.ensureOverlayReady();
HTMLCanvasElement hudC = jsDrawModernChat(canvas, contentRgba, buttonsRgba, windowHeight, !toGpu);
if (toGpu && hudC != null) {
WebHd117Renderer.drawHudCanvas(hudC, 0, windowHeight - 165, 519, 165);
WebHd317Renderer.drawHudCanvas(hudC, 0, windowHeight - 165, 519, 165);
}
}
@@ -248,10 +248,10 @@ public final class DesktopHooks {
rgba.set(j + 3, (short) 0);
}
}
boolean toGpu = WebHd117Renderer.ensureOverlayReady();
boolean toGpu = WebHd317Renderer.ensureOverlayReady();
HTMLCanvasElement hudC = jsDrawModernTab(canvas, rgba, windowWidth - 249, windowHeight - 343, !toGpu);
if (toGpu && hudC != null) {
WebHd117Renderer.drawHudCanvas(hudC, windowWidth - 249, windowHeight - 343, 249, 343);
WebHd317Renderer.drawHudCanvas(hudC, windowWidth - 249, windowHeight - 343, 249, 343);
}
}
@@ -304,7 +304,7 @@ public final class DesktopHooks {
double minScale = Math.max(1.0, Math.max(765.0 / rawW, 503.0 / rawH));
int w = Math.max(765, (int) Math.round(rawW * minScale));
int h = Math.max(503, (int) Math.round(rawH * minScale));
boolean fullRes = "true".equalsIgnoreCase(getParameter("fullres")) || HD117Pipeline.isGpuActive();
boolean fullRes = "true".equalsIgnoreCase(getParameter("fullres")) || HD317Pipeline.isGpuActive();
if (!fullRes && w > 1280) {
w = 1280;
h = Math.max(503, (int) Math.round(rawH * (1280.0 / rawW)));
@@ -479,8 +479,8 @@ public final class DesktopHooks {
private static native void jsRedrawScaledLogin(HTMLCanvasElement canvas, int winW, int winH, int dx, int dy, int dw, int dh);
public static void initHdBackend() {
if (HD117Pipeline.backend == null) {
HD117Pipeline.backend = new WebHd117Renderer();
if (HD317Pipeline.backend == null) {
HD317Pipeline.backend = new WebHd317Renderer();
}
}