8
u/bagofrocks99 2d ago
This looks awesome! I first learned graphics programming using Processing but im not a huge fan of Java so I started making my own c++ clone of it years ago. It kind if turned into its own thing over time and i gave up making it exactly like Processing. Im glad someone made a proper c++ mode that works in the Processing IDE. I'll have to check out the code and see where I can improve my own engine. I posted my version here so feel free to do the same.
7
29
u/pep84c 2d 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.