MCPcopy Create free account
hub / github.com/5zig/The-5zig-Mod / GLUtil

Class GLUtil

Mod Utils/src/eu/the5zig/mod/util/GLUtil.java:3–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1package eu.the5zig.mod.util;
2
3public class GLUtil {
4
5 private static final IGLUtil handle;
6
7 static {
8 try {
9 handle = (IGLUtil) Class.forName("GLUtilHandle").newInstance();
10 } catch (Exception e) {
11 throw new RuntimeException(e);
12 }
13 }
14
15 public static void enableBlend() {
16 handle.enableBlend();
17 }
18
19 public static void disableBlend() {
20 handle.disableBlend();
21 }
22
23 public static void scale(float x, float y, float z) {
24 handle.scale(x, y, z);
25 }
26
27 public static void translate(float x, float y, float z) {
28 handle.translate(x, y, z);
29 }
30
31 public static void color(float r, float g, float b, float a) {
32 handle.color(r, g, b, a);
33 }
34
35 public static void color(float r, float g, float b) {
36 handle.color(r, g, b);
37 }
38
39 public static void pushMatrix() {
40 handle.pushMatrix();
41 }
42
43 public static void popMatrix() {
44 handle.popMatrix();
45 }
46
47 public static void matrixMode(int mode) {
48 handle.matrixMode(mode);
49 }
50
51 public static void loadIdentity() {
52 handle.loadIdentity();
53 }
54
55 public static void clear(int i) {
56 handle.clear(i);
57 }
58
59 public static void disableDepth() {
60 handle.disableDepth();

Callers

nothing calls this directly

Calls 2

forNameMethod · 0.80
newInstanceMethod · 0.45

Tested by

no test coverage detected