Skip to content

Instantly share code, notes, and snippets.

@gaborpapp
gaborpapp / ThreadedImageApp.cpp
Last active January 9, 2016 12:59
RPI2 threaded image test app
#include <string>
#include "cinder/Log.h"
#include "cinder/Utilities.h"
#include "cinder/app/App.h"
#include "cinder/app/RendererGl.h"
#include "cinder/gl/gl.h"
using namespace ci;
using namespace ci::app;
@gaborpapp
gaborpapp / ThreadTestApp.cpp
Created January 7, 2016 08:49
Cinder thread test for Raspbian
#include "cinder/Utilities.h"
#include "cinder/app/App.h"
#include "cinder/app/RendererGl.h"
#include "cinder/gl/gl.h"
using namespace ci;
using namespace ci::app;
class ThreadTestApp : public App
{
@gaborpapp
gaborpapp / VboTestApp.cpp
Created August 25, 2012 21:13
VboMesh custom attributes
#include "cinder/app/AppBasic.h"
#include "cinder/Camera.h"
#include "cinder/Cinder.h"
#include "cinder/CinderMath.h"
#include "cinder/gl/gl.h"
#include "cinder/gl/GlslProg.h"
#include "cinder/gl/Vbo.h"
#include "cinder/TriMesh.h"
using namespace ci;
@gaborpapp
gaborpapp / usb.patch
Created November 10, 2011 09:55
elpaquete's openni usb patch for fedora
diff --git a/Source/OpenNI/Linux/XnUSBLinux.cpp b/Source/OpenNI/Linux/XnUSBLinux.cpp
index 7f663c0..82a3c80 100644
--- a/Source/OpenNI/Linux/XnUSBLinux.cpp
+++ b/Source/OpenNI/Linux/XnUSBLinux.cpp
@@ -350,10 +350,52 @@ XN_C_API XnStatus xnUSBOpenDeviceImpl(libusb_device* pDevice, XN_USB_DEV_HANDLE*
return (XN_STATUS_USB_SET_CONFIG_FAILED);
}
*/
@gaborpapp
gaborpapp / gist:823116
Created February 11, 2011 21:54
pixel primitive viewport camera display
(clear)
; pixels primitive with 2 textures and active renderer
(define p (build-pixels 1024 1024 #t 2))
(with-primitive p ; hide it
(scale 0))
; extra camera
(define cam1 (with-pixels-renderer p
(build-camera)))
@gaborpapp
gaborpapp / gist:742364
Created December 15, 2010 18:08
examples of using an ffgl plugins on a pixel primitive with multiple texture attachments
;; example of using an ffgl plugin on a pixel primitive
(clear)
(scale #(20 15 1))
; pixel primitive with 2 textures and an active renderer
(define p (build-pixels 512 512 #t 2))
(define plugin (ffgl-load "cibloom" 512 512))
@gaborpapp
gaborpapp / AravisTestApp.cpp
Last active September 7, 2015 09:07
Aravis stream freeze test
#include <cstdlib>
#include <thread>
#include "cinder/app/App.h"
#include "cinder/app/RendererGl.h"
#include "cinder/gl/gl.h"
#include "arv.h"
using namespace ci;
@gaborpapp
gaborpapp / TfTexApp.cpp
Last active August 29, 2015 14:27
Transform feedback with unsigned int texture sampler
#include "cinder/Log.h"
#include "cinder/Rand.h"
#include "cinder/app/App.h"
#include "cinder/app/RendererGl.h"
#include "cinder/gl/gl.h"
using namespace ci;
using namespace ci::app;
class TfTexApp : public App
@gaborpapp
gaborpapp / DisappearingParamsApp.cpp
Created March 29, 2015 12:58
DisappearingParamsApp.cpp
/*
- open the Vector or Quaternion group in Params2
- click on Params1
- the contents of Params1 disappear
*/
#include "cinder/app/App.h"
#include "cinder/app/RendererGl.h"
#include "cinder/params/Params.h"
@gaborpapp
gaborpapp / DialogContextApp.cpp
Created March 13, 2015 22:46
Cinder dialog gl::context test
#include "cinder/app/App.h"
#include "cinder/app/RendererGl.h"
#include "cinder/gl/Context.h"
#include "cinder/params/Params.h"
using namespace ci;
using namespace ci::app;
using namespace std;
class DialogContextApp : public App