This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Camera2d : public ofCamera { | |
private: | |
ofVec2f mouseStart; | |
ofVec2f startPosition; | |
float zoom; | |
float maxZoom = .01; | |
float minZoom = 1; | |
float zoomSpeed = 1. / 500; | |
public: | |
void setup() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Ether Dream interface library | |
* | |
* Copyright 2011-2012 Jacob Potter | |
* | |
* This program is free software: you can redistribute it and/or modify | |
* it under the terms of either the GNU General Public License version 2 | |
* or 3, or the GNU Lesser General Public License version 3, as published | |
* by the Free Software Foundation, at your option. | |
* | |
* This program is distributed in the hope that it will be useful, |