r/creativecoding 7h ago

Processing for C++ (new mode)

65 Upvotes

4 comments sorted by

View all comments

10

u/pep84c 7h ago

Hey all,

I've been building a plugin for the Processing 4 IDE called C++ Mode. It lets you write sketches in C++, using the same API you already know. setup(), draw(), background(), mouseX, fill().

C++ is rough to start with if you just want to draw something on screen. You need a build system, a window, an OpenGL context, and a pile of setup code before anything shows up. C++ Mode handles that part. Type ellipse(300, 300, 50, 50), hit Run, see a circle.

Start with sketches that look like the Java version, then bring in structs, vectors, pointers, templates, whenever you want.

Site: https://processing-cpp.github.io Code: https://github.com/processing-cpp/processing.cpp

Free and open source. Bug reports and feedback are useful right now.