MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / apply

Method apply

src/main/java/field/graphics/StateTracker.java:26–31  ·  view source on GitHub ↗
(int[] value)

Source from the content-addressed store, hash-verified

24
25 public final State<int[]> viewport = new State<int[]>() {
26 @Override
27 protected void apply(int[] value) {
28 Log.log("graphics.trace", () -> "setting viewport to " + value[0] + " " + value[1] + " " + value[2] + " " + value[3]);
29
30 glViewport(value[0], value[1], value[2], value[3]);
31 }
32 };
33 public final State<int[]> scissor = new State<int[]>() {
34 @Override

Callers

nothing calls this directly

Calls 5

logMethod · 0.95
glViewportMethod · 0.80
glScissorMethod · 0.80
glEnableMethod · 0.80
glBlendFuncMethod · 0.80

Tested by

no test coverage detected