This file contains hidden or 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
#include "ofApp.h" | |
#include <glm/gtx/fast_square_root.hpp> | |
void ofApp::setup() | |
{ | |
for (int i = 0; i < 10; i++) | |
{ | |
blobs.push_back(Blob(ofRandomWidth(), ofRandomHeight())); | |
} |
This file contains hidden or 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
#include "ofMain.h" | |
#include "ofApp.h" | |
int main() | |
{ | |
ofGLFWWindowSettings settings; | |
settings.setSize(1280, 720); | |
settings.setPosition(ofVec2f(100, 100)); | |
settings.resizable = true; |
This file contains hidden or 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
#include "ezBall.h" | |
#include "ofApp.h" | |
void ezBall::setup(int x, int y) | |
{ | |
pos = glm::vec2(x, y); | |
mass = ofRandom(10, 30); | |
color = ofColor(ofRandom(127, 255), ofRandom(127, 255), ofRandom(127, 255)); | |
} |
This file contains hidden or 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
#include "ezBall.h" | |
void ezBall::setup(int x, int y) | |
{ | |
pos = glm::vec2(x, y); | |
mass = ofRandom(10, 30); | |
color = ofColor(ofRandom(127, 255), ofRandom(127, 255), ofRandom(127, 255)); | |
} | |
void ezBall::draw() |
This file contains hidden or 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
#include "ofMain.h" | |
#include "ofApp.h" | |
int main() | |
{ | |
ofSetupOpenGL(1024, 768, OF_WINDOW); | |
ofRunApp(new ofApp()); | |
return 0; | |
} |
This file contains hidden or 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
#include "ofApp.h" | |
int main() | |
{ | |
ofGLFWWindowSettings settings; | |
settings.setSize(1280, 720); | |
settings.setPosition(glm::vec2(0, 0)); | |
settings.resizable = true; | |
settings.decorated = true; |
This file contains hidden or 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
#include "ofApp.h" | |
void ofApp::setup() | |
{ | |
ofBackground(0); | |
// Setup sound output. | |
ofSoundStreamSettings settings; | |
settings.setOutListener(this); | |
//settings.sampleRate = 44100; |
This file contains hidden or 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
#include "ofApp.h" | |
void ofApp::setup() | |
{ | |
ofBackground(0); | |
// Print audio device list to the console. | |
soundStream.printDeviceList(); | |
// Setup sound stream. |
This file contains hidden or 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
#include "ofApp.h" | |
void ofApp::setup() | |
{ | |
grabber.setup(640, 480); | |
} | |
void ofApp::update() | |
{ | |
grabber.update(); |
This file contains hidden or 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
#include "ofApp.h" | |
void ofApp::setup() | |
{ | |
ofBackground(0); | |
ofSetFrameRate(60); | |
ofSetWindowShape(640, 480); | |
// Start a router to kick things off | |
// (otherwise the receivers don't work...) |
NewerOlder