Orthographic projection should be relative to the viewport.
invert Y texture coordinate in box primitive
Apothecary Update for Xcode 6 and new SDKs

- Using Xcode defaults now (so more dynamic) for iOS SDK, OSX SDK
- Set default SDK levels to current
clarify getCurrentViewport

currentViewport was used as a shadowing local variable - this change is purely for code clarification.
GPU optim # 1

store uniform locations even if location returns -1. If uniform location would not be stored, many unnecessary glGetUniformLocation requests would be issued on every draw call.

This is especially pronounced if custom shaders were used which do not define the built-in shader uniforms.

Since the uniform locations cannot change once a shader is linked, a failure to look up the uniform on the first frame will also mean a failure to look it up on every following frame. By catching this early, we don't incur a driver overhead penalty per uniform per frame.
GPU optim #2

native viewport caching.

Since most apps just use one render viewport, it pays off to cache the render viewport and only issue a glGetInteger Query should the viewport have changed.

Before this, the viewport would have been queried twice a frame at least.

glGetInteger() has the potential for high driver overhead, since worst case the pipeline needs to be flushed before the query can return, and the CPU can continue issueing commands.
Documentation for ofVideoGrabber's base classes.
Merge branch 'master' of git://github.com/openframeworks/openFrameworks into documentation-baseclasses
Additional base class documentation.
Clean up spaces.
Convert spaces to tabs to match existing.
Update to use links rather than enumerations -- future proof.
Update to fix typos and add template params.
Updates to fix typos.
Updates to fix typos.
Move documentation from implementation to header.
Merge branch 'master' of git://github.com/openframeworks/openFrameworks into documentation-ofImage
Minor grammar/code example fixes
Merge pull request #21 from mikewesthad/documentation-baseclasses

Minor grammar/code example fixes for documentation
iOS Video Grabber changes for Simulator

- Removes preprocessor for arm architecture
- When targeting a iOS Simulator device will throw a #warning to inform
the developer that the grabber will not function in the simulator
- Initialises some variables (width/height/currentframe) to default of
0 in case init fails (which it will with simulator target)
- In realtime will throw a OF_LOG_WARNING when running on the simulator
at time of init to inform the developer this will not function
correctly.
- Allows developer to compile and test code even with a project using
the iOS Video Grabber on the iOS Simulator
- Fixes issue with arm64 not compiling