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
// TESTED ON nightly-build ver 0.8 (of_v20130813) in Visual Studio 2012 - Win64 | |
// MAKE APP ALWAYS ON TOP | |
HWND AppWindow = GetActiveWindow(); | |
SetWindowPos(AppWindow, HWND_TOPMOST, NULL, NULL, NULL, NULL, SWP_NOMOVE | SWP_NOSIZE); | |
// DISABLE FUNCTION DESCRIBED ABOVE | |
HWND AppWindow = GetActiveWindow(); |
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
/* | |
Copyright (c) 2012, Broadcom Europe Ltd | |
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 | |
notice, this list of conditions and the following disclaimer in the |
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
#version 150 | |
uniform mat4 projectionMatrix; | |
uniform mat4 modelViewMatrix; | |
uniform mat4 modelViewProjectionMatrix; | |
in vec4 position; | |
in vec2 texcoord; | |
out vec2 v_TexCoordinate; |
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
#version 150 | |
//precision mediump float; | |
uniform sampler2DRect tex0; | |
uniform sampler2DRect u_Texture2; | |
in vec2 v_TexCoordinate; | |
out vec4 fragColor; | |
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
varying vec2 TexCoord; | |
void main(void) | |
{ | |
TexCoord = gl_MultiTexCoord0.st; | |
gl_Position = ftransform(); | |
} | |
/////// | |
varying vec2 TexCoord; |
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
cd /System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns | |
sudo mv AppleUSBFTDI.kext AppleUSBFTDI.disabled | |
sudo touch /System/Library/Extensions | |
/// restart | |
-install driver |
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
ofColor getAverageColor(const ofPixels & pix) { | |
int pixelSize = pix.size(); | |
int r = 0, g = 0, b = 0; | |
for (int i=0; i<pixelSize; i++) { | |
ofColor c = pix[i]; | |
r += (c >> 16) & 0xFF; | |
g += (c >> 8) & 0xFF; |
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
ofxGstreamer | |
descargar addon | |
https://github.com/arturoc/ofxGStreamer | |
- http://mknod.jp/?cat=13 | |
descargar e instalar | |
+ http://gstreamer.freedesktop.org/data/pkg/osx/1.2.2/gstreamer-1.0-1.2.2-universal.pkg | |
+ http://gstreamer.freedesktop.org/data/pkg/osx/1.0.8/gstreamer-1.0-1.0.8-universal.pkg | |
+ http://gstreamer.freedesktop.org/data/pkg/osx/1.2.1/gstreamer-1.0-1.2.1-universal-packages.dmg |
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
http://www.markszulc.com/blog/2012/09/03/installing-ffmpeg-with-h264-support-on-mac-os-x-mountain-lion/ |
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
http://smbjorklund.no/ssh-login-without-password-using-os-x |