The JotUI framework provides an OpenGL drawing view with primary goals of:
- No lag during drawing
- Easy to customize pen textures and colors
- Low memory footprint
- Undo/Redo support
- Lots of control during drawing through view's delegate
- Saving and loading are asynchronous to keep your main thread running smoothly
The JotView in Loose Leaf
The JotUI.framework is the drawing engine used in Loose Leaf.
Adding JotUI to Your Project
JotUI builds into a static framework that can be linked into your iOS app. The JotUI.workspace provides a sample project that shows JotUI fully integrated into an app.
- In your workspace, add JotUI.framework to your main project's Link Binary With Libraries build phase
- Copy the *.vsh and *.fsh files into your project's Copy Resources phase
- Create a
JotViewand implement the
- Add "-ObjC" to the Other Linker Flags in the project's Settings
Some great places to get involved and help make JotUI better for everyone:
- Issue #1 Find a solution to using glScissor with glPoints. The only option might be to swap points with quads and then compare gpu/cpu/memory performance between the two.
- Issue #2 Change synchronous glFinish/glFlush calls to use asynchronous glFence
- Issue #3 The current brush rotation only allows for the same rotation to be used through the entire stroke. Add an option to interpolate the rotation throughout the stroke, similar to how color and width are interpolated
JotUI includes a spacecommander as a submodule to help with keeping code style consistent. Please format all your code before submitting a PR by using the included format-all.sh and format-staged.sh scripts.
The Xcode workspace includes a jotuiexample project that shows a fully functional integration of the JotUI framework. You can refer to this example for any questions about how to integrate into your app.
The JotUI framework and sample code are provided under the MIT License.