Skip to content

Instantly share code, notes, and snippets.

@gaborpapp
gaborpapp / MipmapFboTestApp.cpp
Created September 3, 2014 10:19
Mipmapped Fbo test
#include "cinder/ImageIo.h"
#include "cinder/app/AppBasic.h"
#include "cinder/gl/Fbo.h"
#include "cinder/gl/Texture.h"
#include "cinder/gl/gl.h"
using namespace ci;
using namespace ci::app;
class MipmapFboTestApp : public AppBasic
@gaborpapp
gaborpapp / AwesomiumMultiWindowApp.cpp
Created October 19, 2014 17:44
AwesomiumMultiWindow
#include "cinder/app/AppBasic.h"
#include "cinder/gl/gl.h"
#include "cinder/gl/Texture.h"
#include "CinderAwesomium.h"
using namespace ci;
using namespace ci::app;
using namespace std;
@gaborpapp
gaborpapp / MultiParamsApp.cpp
Last active August 29, 2015 14:10
Multi-window params issue in glNext
#include "cinder/ImageIo.h"
#include "cinder/app/AppNative.h"
#include "cinder/app/RendererGl.h"
#include "cinder/gl/Texture.h"
#include "cinder/params/Params.h"
using namespace ci;
using namespace ci::app;
using namespace std;
@gaborpapp
gaborpapp / ps4eye.log
Created March 11, 2015 22:26
ps4eye log
Initializing PS4 camera...
1 - 0000 - 40:a7:0000:0000:0040
2 - 0048 - 40:a5:0000:0000:0040
3 - 0090 - c0:a6:0000:0000:0040
diff @ 10 : ff / 97
4 - 00d8 - 40:a5:0000:0000:0040
5 - 0120 - c0:a6:0000:0000:0040
diff @ 10 : ff / 13
6 - 0168 - 40:a5:0000:0000:0040
7 - 01b0 - c0:a6:0000:0000:0040
@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
@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 / 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 / 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 / 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 / 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)))