- Should document the effects of the various mouse button presses
- Is there a way to limit camera moves?
- Explain what the axes params mean.
| # This is a script to demonstrate some features of Recurly's V3 API. It shows | |
| # how to use multiple clients for separate sites to copy plan and add-on data | |
| # between them. | |
| require 'bundler/inline' | |
| gemfile do | |
| source 'https://rubygems.org' | |
| gem 'recurly', '3.0.0.beta.6' | |
| gem 'pry' | |
| end |
| // Assumes line does not self intersecting | |
| // Treats the line as closed (you wanted area right?) | |
| // http://www.mathsisfun.com/geometry/area-irregular-polygons.html | |
| float area( PolyLine2f line ) { | |
| float sum = 0.0; | |
| if ( line.size() > 1 ) { | |
| PolyLine2f::iterator it; | |
| Vec2f prev, curr; | |
| for ( it = line.begin(), prev = *it++; it != line.end() ; it++ ) { | |
| curr = *it; |
| #include "cinder/app/AppNative.h" | |
| #include "cinder/Camera.h" | |
| #include "cinder/gl/gl.h" | |
| #include "cinder/gl/Vbo.h" | |
| #include "cinder/Utilities.h" | |
| using namespace ci; | |
| using namespace ci::app; | |
| using namespace std; |
| // About this: https://drewish.com/2014/08/23/using-cinder's-cameraortho-and-vbomesh-to-draw-cubes/ | |
| // Inspired by: http://onepointperspective.tumblr.com/post/7805032561/the-perspective-of-a-square | |
| // Use with Cinder 0.9.x | |
| #include "cinder/app/App.h" | |
| #include "cinder/app/RendererGl.h" | |
| #include "cinder/gl/gl.h" | |
| #include "cinder/gl/Vbo.h" | |
| #include "cinder/Utilities.h" |
| // Simple demo to compare drawing 2D triangles with Cinder's VBO and TriMesh wrappers. | |
| // https://drewish.com/2014/08/16/comparing-the-trimesh-and-vbomesh-in-cinder/ | |
| #include "cinder/app/AppBasic.h" | |
| #include "cinder/gl/gl.h" | |
| #include "cinder/gl/Vbo.h" | |
| #include "cinder/Trimesh.h" | |
| #include "cinder/params/Params.h" | |
| using namespace ci; |
| #include "cinder/app/AppNative.h" | |
| #include "cinder/gl/gl.h" | |
| #include "cinder/Camera.h" | |
| #include "cinder/params/Params.h" | |
| using namespace ci; | |
| using namespace ci::app; | |
| using namespace std; | |
I hereby claim:
To claim this, I am signing this object:
cd DIRECTORY_WITH_.ruby-version_AND_Gemfile
brew update
brew upgrade ruby-build
rbenv install
gem install bundler
bundle install
| { | |
| 'targets': [ | |
| { | |
| 'target_name': 'exiv2', | |
| 'sources': [ | |
| 'exiv2node.cc' | |
| ], | |
| 'xcode_settings': { | |
| 'OTHER_CFLAGS': [ | |
| '<!@(pkg-config --cflags exiv2)', |