Skip to content

Instantly share code, notes, and snippets.

View 2bbb's full-sized avatar

2bit 2bbb

View GitHub Profile
#include <IOKit/IOTypes.h>
#include <IOKit/IOKitLib.h>
#include <CoreSurface/CoreSurface.h>
#include <stdio.h> // For mprotect
#include <sys/mman.h>
#ifdef __cplusplus
extern "C" {
#endif
@loveandsheep
loveandsheep / ofxSimpleTheta.h
Last active January 2, 2016 22:19
oFでThetaのシャッターを切る簡単なサンプル。 アドオンのofxNetworkにあるofxTCPClientが必要です。
//
// ofxSimpleTheta.h
// ofxSimpleTheta
//
// Created by Ovis aries on 2014/01/11.
//
//
#ifndef ofxSimpleTheta_ofxSimpleTheta_h
#define ofxSimpleTheta_ofxSimpleTheta_h
@wuhao5
wuhao5 / png_build.sh
Last active December 1, 2019 21:53
build libpng for iOS/MacOS X
rm -rf install_*
rm -rf output-*
# build simulator
./configure --prefix=`pwd`/install_i386 CFLAGS="-Ofast -mios-version-min=5.0" LDFLAGS="-flto" CC="xcrun -sdk iphonesimulator clang -arch i386"
make clean && make -j8 && make install
./configure --prefix=`pwd`/install_x86_64 CFLAGS="-Ofast -mios-version-min=5.0" LDFLAGS="-flto" CC="xcrun -sdk iphonesimulator clang -arch x86_64"
make clean && make -j8 && make install