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
ofImage img; | |
ofTexture texture; | |
ofPlanePrimitive plane; | |
float tx0, ty0, tx1, ty1; | |
void ofApp::setup(){ | |
ofDisableArbTex(); //Removing this line allows npot textures to work fine | |
img.loadImage("test.jpg"); | |
texture = img.getTextureReference(); | |
texture.setTextureWrap(GL_REPEAT, GL_REPEAT); |
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
ofImage img; | |
ofTexture texture; | |
ofPlanePrimitive plane; | |
float tx0, ty0, tx1, ty1; | |
void ofApp::setup(){ | |
ofDisableArbTex(); | |
img.loadImage("test.jpg"); | |
texture = img.getTextureReference(); | |
texture.setTextureWrap(GL_REPEAT, GL_REPEAT); |
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
#include "ofMain.h" | |
#include "ofApp.h" | |
#include "ofAppGLFWWindow.h" | |
int main( ){ | |
ofAppGLFWWindow window; | |
window.setMultiDisplayFullscreen(true); | |
ofSetupOpenGL(&window,1024,768,OF_FULLSCREEN); | |
ofRunApp(new ofApp()); | |
} |
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
bool playing; | |
void setup() { | |
playing = false; | |
float bpm = 50; | |
clock.setBpm(bpm * 24); //24 ppqn https://en.wikipedia.org/wiki/MIDI_beat_clock | |
ofAddListener(clock.beatEvent, this, &ofApp::tick); | |
} | |
void ofApp::tick(void){ |
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
HOST_OS=Linux | |
checking pkg-config libraries: cairo zlib gstreamer-app-1.0 gstreamer-1.0 gstreamer-video-1.0 gstreamer-base-1.0 libudev freetype2 fontconfig sndfile openal openssl gtk+-3.0 libmpg123 | |
Compiling OF library for Release | |
make[1]: Entering directory '/home/pi/of_v0.9.7_linuxarmv7l/libs/openFrameworksCompiled/project' | |
HOST_OS=Linux | |
checking pkg-config libraries: cairo zlib gstreamer-app-1.0 gstreamer-1.0 gstreamer-video-1.0 gstreamer-base-1.0 libudev freetype2 fontconfig sndfile openal openssl gtk+-3.0 libmpg123 | |
HOST_OS=Linux | |
checking pkg-config libraries: cairo zlib gstreamer-app-1.0 gstreamer-1.0 gstreamer-video-1.0 gstreamer-base-1.0 libudev freetype2 fontconfig sndfile openal openssl gtk+-3.0 libmpg123 | |
HOST_OS=Linux | |
checking pkg-config libraries: cairo zlib gstreamer-app-1.0 gstreamer-1.0 gstreamer-video-1.0 gstreamer-base-1.0 libudev freetype2 fontconfig sndfile openal openssl gtk+-3.0 libmpg123 |
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
HOST_OS=Linux | |
checking pkg-config libraries: cairo zlib gstreamer-app-1.0 gstreamer-1.0 gstreamer-video-1.0 gstreamer-base-1.0 libudev freetype2 fontconfig sndfile openal openssl gtk+-3.0 libmpg123 | |
[warning] ofInit: Couldn't set UTF-8 locale, string manipulation functions | |
won't work correctly for non ansi characters unless you specify a UTF-8 locale | |
manually using std::locale::global(std::locale("locale")) | |
available locales can be queried with 'locale -a' in a terminal. | |
[notice ] ofAppEGLWindow: setupRPiNativeWindow(): screenRect: 1600x1200 | |
[notice ] ofAppEGLWindow: setupRPiNativeWindow(): windowRect: 1024x768 | |
[notice ] ofAppEGLWindow: createSurface(): setting up EGL Display | |
[notice ] ofAppEGLWindow: createSurface(): EGL Display correctly set 0x1 |
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
HOST_OS=Linux | |
checking pkg-config libraries: cairo zlib gstreamer-app-1.0 gstreamer-1.0 gstreamer-video-1.0 gstreamer-base-1.0 libudev freetype2 fontconfig sndfile openal openssl gtk+-3.0 | |
Compiling OF library for Release | |
HOST_OS=Linux | |
checking pkg-config libraries: cairo zlib gstreamer-app-1.0 gstreamer-1.0 gstreamer-video-1.0 gstreamer-base-1.0 libudev freetype2 fontconfig sndfile openal openssl gtk+-3.0 | |
make[1]: Entering directory `/opt/raspberrypi/root/opt/of_v0.9.8_linuxarmv7l_release/libs/openFrameworksCompiled/project' | |
HOST_OS=Linux | |
checking pkg-config libraries: cairo zlib gstreamer-app-1.0 gstreamer-1.0 gstreamer-video-1.0 gstreamer-base-1.0 libudev freetype2 fontconfig sndfile openal openssl gtk+-3.0 | |
Compiling /opt/raspberrypi/root/opt/of_v0.9.8_linuxarmv7l_release/libs/openFrameworks/types/ofColor.cpp | |
/opt/cross/bin/arm-linux-gnueabihf-g++ -O3 -DNDEBUG -Wall -std=c++11 -march=armv7-a -mfpu=vfp -mfloat-abi=hard -fPIC -ftree-vectorize -Wno-psabi -pipe --sysroot=/opt/raspberrypi/root -DOF_USIN |
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
#include "ofApp.h" | |
/* Begin description | |
{ | |
//Write your description here | |
} | |
End description */ | |
/* Snippet begin */ | |
void ofApp::setup(){ | |
ofSetWindowShape(500, 500); |