Skip to content

Commit dd8ef38

Browse files
committed
add getRenderer() to SurfaceInfo (fixes processing#4441)
1 parent 39471f8 commit dd8ef38

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

core/todo.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
0254 (3.2.2 or 3.3)
22
X fix quoting problem in IntDict.toJSON()
3+
X add getRenderer() to SurfaceInfo
4+
X https://github.com/processing/processing/issues/4441
35
X add getRowMap() function
46
_ do we want rows() to not be transient?
57

java/src/processing/mode/java/preproc/SurfaceInfo.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,4 +138,15 @@ public boolean hasSettings() {
138138
public String getSettings() {
139139
return statements.join(" ");
140140
}
141+
142+
143+
// Added for Android Mode to check whether OpenGL is in use
144+
// https://github.com/processing/processing/issues/4441
145+
/**
146+
* Return the renderer specified (null if none specified).
147+
* @since 3.2.2
148+
*/
149+
public String getRenderer() {
150+
return renderer;
151+
}
141152
}

0 commit comments

Comments
 (0)