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
#!/bin/sh | |
# Compiling libav on windows | |
# -------------------------- | |
# Compiling libav takes quite a bit of time and you need to setup a build | |
# environment. I've followed these instructions for ffmpeg: | |
# http://blogs.gnome.org/rbultje/2012/09/27/microsoft-visual-studio-support-in-ffmpeg-and-libav/ | |
# | |
# How to | |
# ------ |
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
#include "VorbisWriter.h" | |
VorbisWriter::VorbisWriter() | |
:fp(NULL) | |
,is_setup(false) | |
{ | |
} | |
VorbisWriter::~VorbisWriter() { | |
close(); |
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
#!/bin/bash | |
# Compile script for icecast, using these libraries: | |
# -------------------------------------------------- | |
# lame-3.99.5.tar.gz | |
# libogg-1.3.0.tar.gz | |
# libsamplerate-0.1.8.tar.gz | |
# libtheora-1.1.1.tar.bz2 | |
# libtool-2.2.1.10.tar.gz | |
# libvorbis-1.3.3.tar.gz |
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
#ifndef JADI_DEPTH_OF_FIELDH | |
#define JADI_DEPTH_OF_FIELDH | |
#include <jadi/Jadi.h> | |
#include <vector> | |
#define GLSL(version, shader) "#version " #version "\n" #shader | |
static const char* DOF_DEBUG_VS = GLSL(120, | |
uniform mat4 u_pm; |
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
#import <UIKit/UIKit.h> | |
#import "AppViewController.h" | |
@interface AppDelegate : UIResponder <UIApplicationDelegate> { | |
AppViewController* view_controller; | |
} | |
@property (strong, nonatomic) UIWindow *window; | |
@end |
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
#include "Deferred.h" | |
#define glGenVertexArrays glGenVertexArraysAPPLE | |
#define glBindVertexArray glBindVertexArrayAPPLE | |
static void print(DeferredVertex& v) { | |
printf("%f, %f, %f, %f, %f, %f\n", v.x, v.y, v.z, v.nx, v.ny, v.nz); | |
} | |
Deferred::Deferred() |
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
#include <TrailParticle.h> | |
static void print(TrailVertex& v) { | |
printf("x: %f, y: %f, z: %f\n", v.pos.x, v.pos.y, v.pos.z); | |
} | |
TrailParticle::TrailParticle() | |
:drag(0.99f) | |
,inv_mass(1.0f) | |
,mass(1.0f) |
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
#include <iostream> | |
#include <libgen.h> | |
#include <openssl/ssl.h> | |
#include <openssl/bio.h> | |
#include <openssl/err.h> | |
#include <openssl/pem.h> | |
#include <uv.h> | |
#include <vector> | |
#include <iterator> | |
#include <algorithm> |
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
#include <roxlu/io/Socket.h> | |
Socket::Socket() { | |
#ifdef _WIN32 | |
int result = WSAStartup(MAKEWORD(2,2), &wsa_data); | |
if(result != 0) { | |
printf("Error: cannot initialize WinSock.\n"); | |
WSACleanup(); | |
} | |
#endif |
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
#include "SnowDrawer.h" | |
SnowDrawer::SnowDrawer() | |
:allocated_vertices(500) | |
,vertices(allocated_vertices,SnowVertex()) | |
,allocated_bytes(0) | |
,num_flakes(0) | |
{ | |
} |