Skip to content

Commit 6ec5df4

Browse files
committed
Editor: PDE-style input via CppCLI parser, fix std::size collision
1 parent c795290 commit 6ec5df4

1 file changed

Lines changed: 16 additions & 17 deletions

File tree

editor/index.html

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -70,23 +70,22 @@
7070
<script>
7171
const API = 'https://bench-volumes-pontiac-riders.trycloudflare.com';
7272

73-
const DEFAULT = `class _PSketch : public PApplet {
74-
float angle = 0;
75-
public:
76-
void setup() override {
77-
size(500, 400, P3D);
78-
}
79-
void draw() override {
80-
background(20);
81-
lights();
82-
translate(width/2, height/2);
83-
rotateX(angle * 0.7f);
84-
rotateY(angle);
85-
fill(232, 180, 0);
86-
box(130);
87-
angle += 0.02f;
88-
}
89-
};`;
73+
const DEFAULT = `float angle = 0;
74+
75+
void setup() {
76+
size(500, 400, P3D);
77+
}
78+
79+
void draw() {
80+
background(20);
81+
lights();
82+
translate(width/2, height/2);
83+
rotateX(angle * 0.7f);
84+
rotateY(angle);
85+
fill(232, 180, 0);
86+
box(130);
87+
angle += 0.02f;
88+
}`;
9089

9190
const editor = CodeMirror.fromTextArea(document.getElementById('code-editor'), {
9291
mode: 'text/x-cppmode',

0 commit comments

Comments
 (0)