Skip to content

Instantly share code, notes, and snippets.

View bakercp's full-sized avatar

Christopher Baker bakercp

View GitHub Profile
@bakercp
bakercp / config.osx.default.mk
Last active September 21, 2015 00:41
Xcode 7 fix for ofSketch
##########################################################################################
# CONFIGURE CORE PLATFORM MAKEFILE
# This file is where we make platform and architecture specific configurations.
# This file can be specified for a generic architecture or can be defined as variants.
# For instance, normally this file will be located in a platform specific subpath such
# as $(OF_ROOT)/libs/openFrameworksComplied/linux64.
#
# This file will then be a generic platform file like:
#
@bakercp
bakercp / PlaySounds.sketch
Last active September 21, 2015 04:53
Sound Example
ofSoundPlayer dubstep; // From bensound.com
ofSoundPlayer ping; // From bensound.com
ofSoundPlayer pong; // From freesound.org.
ofSoundPlayer laser; // From freesound.org
void setup() {
dubstep.loadSound("bensound-dubstep.mp3");
dubstep.setVolume(0.75f);
dubstep.play();
@bakercp
bakercp / main.cpp
Created August 22, 2012 07:22
Testing Random Access and other speeds ofQuickTimePlayer vs ofQTKitPlayer
#include "ofMain.h"
#include "testApp.h"
#include "ofAppGlutWindow.h"
//========================================================================
int main( ){
ofAppGlutWindow window;
ofSetupOpenGL(&window, 1024,768, OF_WINDOW); // <-------- setup the GL context
// this kicks off the running of my app
@bakercp
bakercp / main.cpp
Created August 27, 2012 04:31
Testing Sequential Synchronous Access ofQuickTimePlayer vs ofQTKitPlayer
#include "ofMain.h"
#include "testApp.h"
#include "ofAppGlutWindow.h"
//========================================================================
int main( ){
ofAppGlutWindow window;
ofSetupOpenGL(&window, 320,240, OF_WINDOW); // <-------- setup the GL context
// this kicks off the running of my app
@bakercp
bakercp / main.cpp
Created August 27, 2012 21:59
Test of ofRectangle::ScaleToMe() method.
#include "ofMain.h"
#include "testApp.h"
#include "ofAppGlutWindow.h"
//========================================================================
int main( ){
ofAppGlutWindow window;
ofSetupOpenGL(&window, 1024,768, OF_WINDOW); // <-------- setup the GL context
@bakercp
bakercp / ofAppEGLWindow.cpp
Created November 27, 2012 05:26
In between ...
/*==============================================================================
Copyright (c) 2011, 2012 Christopher Baker <http://christopherbaker.net>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@bakercp
bakercp / 1
Created November 27, 2012 07:18
/usr/lib/arm-linux-gnueabihf/libcofi_rpi.so
libudev.so.0 => /lib/arm-linux-gnueabihf/libudev.so.0
libGLESv2.so => /opt/vc/lib/libGLESv2.so
libEGL.so => /opt/vc/lib/libEGL.so
libopenmaxil.so => /opt/vc/lib/libopenmaxil.so
libbcm_host.so => /opt/vc/lib/libbcm_host.so
libvcos.so => /opt/vc/lib/libvcos.so
libvchiq_arm.so => /opt/vc/lib/libvchiq_arm.so
libfreeimage.so.3 => /usr/lib/libfreeimage.so.3
libcairo.so.2 => /usr/lib/arm-linux-gnueabihf/libcairo.so.2
pi@rpi ~/openFrameworks/apps/devApps/jvc_fboTest/bin $ ./jvc_fboTest
ofAppEGLWindow constructor
in ofAppEGLWINDOW: setupOpenGL
succes=0
REQUESTED SCREEN SIZE w=1024 and h=768
HARDWARE SCREEN SIZE IS sw=1920 and sh=1080
CREATING A SCREEN THAT IS w=1024 and h=768
[ofAppEGLWindow::setupEGL:notice] setting EGL Display
[ofAppEGLWindow::setupEGL:notice] setting default Display
[ofAppEGLWindow::setupEGL:notice] EGL Display correctly set
#include "ofMain.h"
#include "testApp.h"
//========================================================================
int main( ){
ofSetupOpenGL(1024,768, OF_WINDOW); // <-------- setup the GL context
// this kicks off the running of my app
// can be OF_WINDOW or OF_FULLSCREEN
@bakercp
bakercp / PulseSensorBasic.pde
Created November 27, 2012 17:24
Barebones Pulse code.
/*
THIS PROGRAM WORKS WITH PulseSensorAmped_Arduino-xx ARDUINO CODE
*/
import processing.serial.*;
Serial port;
int Sensor; // HOLDS PULSE SENSOR DATA FROM ARDUINO
int IBI; // HOLDS TIME BETWEN HEARTBEATS FROM ARDUINO