Can openFrameworks do live coding and how


#63

Reviving this thread to share an addon I made for hot-reloading shader files. I came across this (now extremely outdated) post, and figured I’d throw my hat in the ring.

My class subscribes to a Watchman server on a separate thread to detect file changes. Upon seeing an update, a flag is raised (which you can poll for in the run loop & call shader.load()). What’s nice about this is you don’t have to use any in-app console – just write shaders in whatever editor you like and have your changes reflected instantly upon saving.

Currently I’ve only tested on macOS, but I believe watchman and its dependencies are also available for Linux and Windows. If anyone has suggestions please feel free to reach out or submit a pull request. That would be dope!