You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<aclass="back-link" href="/downloads">← Back to Downloads</a>
71
71
<h1>CMake Setup</h1>
72
-
<pclass="subtitle">Use this if your project already uses CMake, or if you want something more structured that scales to many source files. If you just want to get something running fast, try the <ahref="/downloads/dragdrop-setup.html" style="border-bottom:1px solid #ddd;">Drag-and-Drop setup</a> first.</p>
72
+
<pclass="subtitle">Use this if your project already uses CMake, or if you want something more structured that scales to many source files. If you just want to get something running fast, try the <ahref="/downloads/plugandplay-setup.html" style="border-bottom:1px solid #ddd;">Plug and Play setup</a> first.</p>
<p>If you haven't done that setup yet, <ahref="/downloads/dragdrop-setup.html" style="border-bottom:1px solid #ddd;">follow steps 1-3 there first</a>, then come back here.</p>
86
+
<p>If you haven't done that setup yet, <ahref="/downloads/plugandplay-setup.html" style="border-bottom:1px solid #ddd;">follow steps 1-3 there first</a>, then come back here.</p>
87
87
88
88
<h2>Step 4 Get the CMake package</h2>
89
89
<p>Download <strong>processing-cpp-cmake.zip</strong> from the <ahref="/downloads" style="border-bottom:1px solid #ddd;">Downloads page</a>. Extract it. Rename the folder to <code>processing-cpp</code>.</p>
@@ -96,7 +96,7 @@ <h2>Step 5 Set up your project folder</h2>
96
96
└── processing-cpp/ ← the folder you extracted</code></pre>
97
97
98
98
<h2>Step 6 Write main.cpp</h2>
99
-
<p>Same sketch code as in the drag-and-drop guide:</p>
99
+
<p>Same sketch code as in the plug-and-play guide:</p>
100
100
<pre><code>#include "Processing.h"
101
101
102
102
struct Sketch : public Processing::PApplet {
@@ -202,7 +202,7 @@ <h2>Configure, build, and run</h2>
<aclass="back-link" href="/downloads">← Back to Downloads</a>
72
-
<h1>Drag-and-Drop Setup</h1>
72
+
<h1>Plug and Play Setup</h1>
73
73
<pclass="subtitle">The easiest way to get started. Unzip one folder, write a <code>.cpp</code> file next to it, and run one script. No build system, no configuration.</p>
<p>Press Enter again when it asks to confirm. Wait for it to finish, then close that window.</p>
88
88
89
89
<h2>Step 2 Get the package</h2>
90
-
<p>Download <strong>processing-cpp-dragdrop.zip</strong> from the <ahref="/downloads" style="border-bottom:1px solid #ddd;">Downloads page</a>. Right-click it and choose Extract All. You'll get a folder called <code>processing-cpp-dragdrop</code>. rename it to <code>processing-cpp</code>.</p>
90
+
<p>Download <strong>processing-cpp-plugandplay.zip</strong> from the <ahref="/downloads" style="border-bottom:1px solid #ddd;">Downloads page</a>. Right-click it and choose Extract All. You'll get a folder called <code>processing-cpp-plugandplay</code>. rename it to <code>processing-cpp</code>.</p>
91
91
92
92
<h2>Step 3 Set up your project folder</h2>
93
93
<p>Create a new empty folder anywhere, call it <code>MySketch</code>. Move the <code>processing-cpp</code> folder into it:</p>
<h2>Steps 2-4 Get the package and write your sketch</h2>
158
-
<p>Same as Windows: download <strong>processing-cpp-dragdrop.zip</strong>, rename the extracted folder to <code>processing-cpp</code>, create a <code>MySketch</code> folder, and write <code>main.cpp</code> with the same code as above inside it.</p>
158
+
<p>Same as Windows: download <strong>processing-cpp-plugandplay.zip</strong>, rename the extracted folder to <code>processing-cpp</code>, create a <code>MySketch</code> folder, and write <code>main.cpp</code> with the same code as above inside it.</p>
159
159
160
160
<h2>Step 5 Open VS Code and the terminal</h2>
161
161
<p>Open VS Code, go to <strong>File → Open Folder</strong> and select your <code>MySketch</code> folder. Open the integrated terminal with <code>Ctrl+`</code> (or <code>Cmd+`</code> on macOS).</p>
<p>Download <strong>processing-cpp-dragdrop.zip</strong>, rename the extracted folder to <code>processing-cpp</code>, create a <code>MySketch</code> folder, write <code>main.cpp</code> with the same code, navigate to the folder, then run:</p>
186
+
<p>Download <strong>processing-cpp-plugandplay.zip</strong>, rename the extracted folder to <code>processing-cpp</code>, create a <code>MySketch</code> folder, write <code>main.cpp</code> with the same code, navigate to the folder, then run:</p>
Copy file name to clipboardExpand all lines: error/E0001.html
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -48,7 +48,7 @@
48
48
<divclass="layout">
49
49
<divclass="sidebar-outer">
50
50
<divid="site-sidebar"></div>
51
-
<divclass="err-sidebar"><divclass="err-sidebar-title">Compiler Errors</div><ahref="E0001.html" class="active">E0001 · PGraphics needs to be a pointer</a><ahref="E0002.html" class="">E0002 · PImage needs to be a pointer</a><ahref="E0003.html" class="">E0003 · PShader needs to be a pointer</a><ahref="E0004.html" class="">E0004 · Java-style array declarations aren't supported</a></div>
51
+
<divclass="err-sidebar"><divclass="err-sidebar-title">Compiler Errors</div><ahref="E0001.html" class="active">E0001 · PGraphics needs to be a pointer</a><ahref="E0002.html" class="">E0002 · PImage needs to be a pointer</a><ahref="E0003.html" class="">E0003 · PShader needs to be a pointer</a><ahref="E0004.html" class="">E0004 · Java-style array declarations aren't supported</a><ahref="E0005.html" class="">E0005 · ArrayList.get() returns a pointer, not a value</a><ahref="E0006.html" class="">E0006 · Java static access syntax not valid in C++</a></div>
Copy file name to clipboardExpand all lines: error/E0002.html
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -48,7 +48,7 @@
48
48
<divclass="layout">
49
49
<divclass="sidebar-outer">
50
50
<divid="site-sidebar"></div>
51
-
<divclass="err-sidebar"><divclass="err-sidebar-title">Compiler Errors</div><ahref="E0001.html" class="">E0001 · PGraphics needs to be a pointer</a><ahref="E0002.html" class="active">E0002 · PImage needs to be a pointer</a><ahref="E0003.html" class="">E0003 · PShader needs to be a pointer</a><ahref="E0004.html" class="">E0004 · Java-style array declarations aren't supported</a></div>
51
+
<divclass="err-sidebar"><divclass="err-sidebar-title">Compiler Errors</div><ahref="E0001.html" class="">E0001 · PGraphics needs to be a pointer</a><ahref="E0002.html" class="active">E0002 · PImage needs to be a pointer</a><ahref="E0003.html" class="">E0003 · PShader needs to be a pointer</a><ahref="E0004.html" class="">E0004 · Java-style array declarations aren't supported</a><ahref="E0005.html" class="">E0005 · ArrayList.get() returns a pointer, not a value</a><ahref="E0006.html" class="">E0006 · Java static access syntax not valid in C++</a></div>
<h2>Notes</h2><p>image() already accepts the pointer directly, so you only need -> when reading something off the image itself, like img->width.</p>
66
66
</div>
67
67
</div>
68
-
<footer><p>C++ Mode for Processing</p><pclass="footer-contact"><ahref="mailto:pep84c@gmail.com">pep84c@gmail.com</a> · <ahref="https://discord.gg/vShSrPegJT">Discord</a></p></footer>
Copy file name to clipboardExpand all lines: error/E0003.html
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -48,7 +48,7 @@
48
48
<divclass="layout">
49
49
<divclass="sidebar-outer">
50
50
<divid="site-sidebar"></div>
51
-
<divclass="err-sidebar"><divclass="err-sidebar-title">Compiler Errors</div><ahref="E0001.html" class="">E0001 · PGraphics needs to be a pointer</a><ahref="E0002.html" class="">E0002 · PImage needs to be a pointer</a><ahref="E0003.html" class="active">E0003 · PShader needs to be a pointer</a><ahref="E0004.html" class="">E0004 · Java-style array declarations aren't supported</a></div>
51
+
<divclass="err-sidebar"><divclass="err-sidebar-title">Compiler Errors</div><ahref="E0001.html" class="">E0001 · PGraphics needs to be a pointer</a><ahref="E0002.html" class="">E0002 · PImage needs to be a pointer</a><ahref="E0003.html" class="active">E0003 · PShader needs to be a pointer</a><ahref="E0004.html" class="">E0004 · Java-style array declarations aren't supported</a><ahref="E0005.html" class="">E0005 · ArrayList.get() returns a pointer, not a value</a><ahref="E0006.html" class="">E0006 · Java static access syntax not valid in C++</a></div>
0 commit comments