The barebones code editor (IDE) for openFrameworks.
ofSketch is being developed by Brannon Dorsey and Christopher Baker at the openLab through the Google Summer of Code 2014 program.
Warning: ofSketch is currently in development. This is the first pre-release and it is not completely stable.
Download the ofSketch app for your platform (all oF-compatible platforms will eventually be supported).
ofSketch comes packaged with the following contents:
- CHANGELOG.md
- CONTRIBUTING.md
- data
- LICENSE.md
- ofSketch.app
- README.md
Note: ofSketch prereleases use an openFrameworks v0.8.3 distribution bundled inside of the App's data folder itself. All code written in ofSketch must be oF v0.8.3 compatible.
Double-click ofSketch to open the editor.
Note: If OSX does not allow you to open the program due to security restrictions, right click on the ofSketch.app bundle and click "open". See this link for more information about Apple's security system.
From there you can create, load, save, and run ofSketch projects. The projects folder comes with a few example projects to get a feel for the editor. Click the open folder icon to select a project. Press the play button to run a project.
As you may have noticed, ofSketch projects look a bit different than the openFrameworks/C++ code that you might be used to writing in Xcode or Code::Blocks. That is for a reason! Writing ofSketch code is akin to writing header-style C++ (don't worry if that doesn't make since), and should look similar to Processing code.
Writing you're own classes is easy with ofSketch! Simply add a new tab by clicking the "+" icon. Anywhere else in your code that you wan't to use a custom class, you must include it at the top of that file like so:
#include "MyClass.h"
ofSketch uses its own openFrameworks distribution in the bin/data/
folder, meaning only core addons work out of the box. To add an addon that ofSketch projects can use, you must place the add-on inside of ofSketch's openFrameworks/addons
folder.
ofSketch prereleases are chock-full of disabled features and undoubtedly some pretty nasty bugs. Sticking to the philosophy "Release early, release often", we have decided to unveil this early prototype to the masses. There are tons of documented (and undocumented) problems. Check out the issues page for more info.
Don't edit project files in the sketch/
or src/
files of each project. Only modify projects through ofSketch (unless you are adding files to bin/data/
folder).
Check out the Todo list to see what's coming. Want to propose something? We've got a Proposed Features issue for just that!
Is something just downright wrong? Don't hesitate to submit an issue.
To build using openFrameworks v0.8.3 on OSX and Linux follow the steps below.
-
Clone the ofSketch repo into your
OF_ROOT/apps
folder, making sure that theofSketchApp/
folder inside ofofSketch/
is two directories below your openFrameworks distribution:git clone https://github.com/olab-io/ofSketch.git cd ofSketch
-
Run the init repo script. This will download and install a trimmed down version of the latest oF release in the
bin/data
folder of your ofSketch build:./scripts/init_repo.sh
-
Clone the ofxAddon dependencies. This script will attempt to clone the required addons and then pull the latest changes. If you already have these addons, make sure that any of your changes are saved:
./scripts/clone_addons.sh
-
Compile ofSketch:
cd ofSketchApp make && make run
Note: OSX users may use the Xcode project instead of building from the command line in step 4.
Building ofSketch from source requires openFrameworks v0.8.3 and the following addons:
For more information, see the ARCHITECTURE.md document in this repository.