Giter VIP home page Giter VIP logo

jotui's Introduction

Overview

The JotUI framework provides an OpenGL drawing view with primary goals of:

  1. No lag during drawing
  2. Easy to customize pen textures and colors
  3. Low memory footprint
  4. Undo/Redo support
  5. Lots of control during drawing through view's delegate
  6. Saving and loading are asynchronous to keep your main thread running smoothly

The JotUI framework was originally built as part of Loose Leaf - a gesture-based note taking iPad app. More frameworks and pieces from Loose Leaf are also available as open source.

The JotView in Loose Leaf

The JotUI.framework is the drawing engine used in Loose Leaf.

example.jpg

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.

  1. In your workspace, add JotUI.framework to your main project's Link Binary With Libraries build phase
  2. Copy the *.vsh and *.fsh files into your project's Copy Resources phase
  3. Add #import <JotUI/JotUI.h>
  4. Create a JotView and implement the JotViewDelegate protocol
  5. Enjoy!

Get Involved

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.

Sample Application

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.

License

The JotUI framework and sample code are provided under the MIT License.

Support This Project

jotui's People

Contributors

adamwulf avatar y2kpr avatar bobspryn avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.