We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b79f94 commit 0c88a19Copy full SHA for 0c88a19
src/os/JniSled.java
@@ -26,22 +26,23 @@ public void run() {
26
}
27
28
public int getMatrixX() {
29
- return matrixX;
+ return matrixX;
30
31
32
public int getMatrixY() {
33
return matrixY;
34
35
36
+ public int[] getCurrentBuffer() {
37
+ return currentBuf;
38
+ }
39
+
40
+ // called from out_jnibuf
41
// TODO: maybe make this trigger a callback optionally?
42
// could use that to let the user immediately render,
43
// "pushing" instead of polling
44
// this would let us have a variable frame rate dictated by sled.
- public void setCurrentBuffer(int[] buf) {
45
+ private void setCurrentBuffer(int[] buf) {
46
currentBuf = buf;
47
-
- public int[] getCurrentBuffer() {
- return currentBuf;
- }
48
0 commit comments