Skip to content

Instantly share code, notes, and snippets.

@ofTheo
ofTheo / ThreadedFBOReadback.cpp
Created September 17, 2014 17:07
WIP threaded FBO read back - requires GLFW
//
// ThreadedFBOReadback.cpp
//
// Created by Theodore Watson on 9/16/14.
//
//
#include "ThreadedFBOReadback.h"
#include "ofAppGLFWWindow.h"
#include "testApp.h"
//--------------------------------------------------------------
void testApp::setup(){
counter = 0;
vagRounded.loadFont("vag.ttf", 32);
ofBackground(50,50,50);
}
//--------------------------------------------------------------
@ofTheo
ofTheo / ofAppGLFWWindow.cpp
Created February 8, 2014 19:57
ofAppGLFWWindow with retina support
#include "ofAppGLFWWindow.h"
#include "ofEvents.h"
#include "ofBaseApp.h"
#include "ofGLProgrammableRenderer.h"
#include "ofAppRunner.h"
#ifdef TARGET_LINUX
#include "ofIcon.h"
#include "ofImage.h"
@ofTheo
ofTheo / gist:8833459
Created February 5, 2014 21:26
ofxOscReceiver bundle mod
/*
Copyright (c) 2007-2009, Damian Stewart
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
@ofTheo
ofTheo / gist:6210991
Created August 12, 2013 13:52
libusb as text
!<arch>
/ 1326821960 0 2664 `
aZѺ'º'º¶¶ Ñ Ñ    òòÓÓ&–&–%Ë%Ë+&+&»»))*¥*¥*J*J::)x)x)‡)‡,,!“!“+ö+ö‰‰RR||,,$ˆ$ˆ%j%j-–-–.F.F"8"8"¨"¨,fi,fi-R-R!d!d'B'B||&X&X,p,p("("(é(éZZ¿¿#*#*$$#§#§$Ä$Ä__IMPORT_DESCRIPTOR_libusb0__NULL_IMPORT_DESCRIPTORlibusb0_NULL_THUNK_DATA__imp__usb_open_usb_open__imp__usb_close_usb_close__imp__usb_get_string_usb_get_string__imp__usb_get_string_simple_usb_get_string_simple__imp__usb_get_descriptor_by_endpoint_usb_get_descriptor_by_endpoint__imp__usb_get_descriptor_usb_get_descriptor__imp__usb_bulk_write_usb_bulk_write__imp__usb_bulk_read_usb_bulk_read__imp__usb_interrupt_write_usb_interrupt_write__imp__usb_interrupt_read_usb_interrupt_read__imp__usb_control_msg_usb_control_msg__imp__usb_set_con
@ofTheo
ofTheo / threadedLoader.cpp
Last active December 20, 2015 21:09
threaded texture loading for openFrameworks for desktop ( just cpu ) and iOS ( cpu and gpu ). explanation here: http://forum.openframeworks.cc/index.php/topic,13032.msg56223.html#msg56223
//
// threadedTexture.cpp
// iPhone_OSX_BuildTheo
//
// Created by Theodore Watson on 3/18/13.
//
//
#include "threadedLoader.h"
void ofAppGLFWWindow::setFullscreen(bool fullscreen){
int curWindowMode = windowMode;
if (fullscreen){
windowMode = OF_FULLSCREEN;
}else{
windowMode = OF_WINDOW;
}
saveWorkspaceXML end cameraLensOffsetExample
renameProject start cameraLensOffsetExample
renameProject end cameraLensOffsetExample
[verbose] returning path ../../../
[verbose] ofxCvBlob.h
[verbose] ofxCvColorImage.cpp
[verbose] ofxCvColorImage.h
[verbose] ofxCvConstants.h
[verbose] ofxCvContourFinder.cpp
@ofTheo
ofTheo / ofxiOSSoundPlayer3D.h
Created June 17, 2013 12:14
adds 3D ( as pan and fade ) to ofxiOSSoundPlayer
//
// ofxiOSSoundPlayer3D.h
// iPhone_OSX_BuildTheo
//
// Created by Theodore Watson on 5/9/13.
//
//
#pragma once
@ofTheo
ofTheo / getCompressedAudioAsPcm.h
Created March 15, 2013 16:57
a single c++ function for converting compressed files (mp3s / m4as ) into a PCM waveform for ios and osx requires OpenAL AudioToolbox CordAudio frameworks. std::string
//
// getCompressedAudioAsPcm.h
// iPhone_OSX_Build
//
// Created by Theodore Watson on 3/14/13.
//
//
#pragma once
//note this is just here for include c++ string