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
project(BON) | |
add_library(BON | |
BON/bon.c | |
BON/bon.h | |
BON/bon_private.h | |
BON/crc32.c | |
BON/crc32.h | |
BON/read.c | |
BON/type.c |
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
texture tex : WAVEFORMDATA; | |
sampler sTex = sampler_state | |
{ | |
Texture = (tex); | |
MipFilter = LINEAR; | |
MinFilter = LINEAR; | |
MagFilter = LINEAR; | |
AddressU = Clamp; |
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
#pragma once | |
#include <cassert> | |
#include <sstream> | |
#include <vector> | |
#include <physfs.h> | |
#include "util/SmartPointer.h" | |
namespace vfs |
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
#pragma once | |
#include "util/Numeric.h" | |
namespace math | |
{ | |
inline float4 SO3ToR4(Quat const& q) | |
{ | |
float const mul = 1.0f / sqrt(2.0f * (1.0f - q.w)); | |
return float4(q.x, q.y, q.z, (1.0f - q.w)).Mul(mul); | |
} |
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
#pragma once | |
#include "math/OrientationMapping.h" | |
#include "util/Numeric.h" | |
#include "util/PaddedVector.h" | |
namespace math | |
{ | |
template <size_t A, size_t B> | |
float H(float t); |
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 130 | |
uniform mat4 mat_worldview; | |
uniform mat4 mat_projection; | |
in vec2 vs_xz; | |
in vec3 vs_displace; | |
in vec3 vs_color; | |
out vec3 fs_color; |
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
package Kitteh; | |
use strict; | |
use warnings; | |
use DBI; | |
use File::Basename; | |
use File::HomeDir; | |
use MIME::Base64; | |
use UUID::Tiny ':std'; |
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
#define NOMINMAX | |
#include <windows.h> | |
#include <dinput.h> | |
#include <boost/format.hpp> | |
using boost::wformat; | |
void sendKey(WORD key, bool down) { | |
INPUT input = { INPUT_KEYBOARD }; | |
KEYBDINPUT & ki = input.ki; |
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 <functional> | |
#include <memory> | |
#include <sstream> | |
#include "TSInput.h" | |
#include "png.h" | |
#include <list> | |
#include <vector> | |
#include <boost/gil/gil_all.hpp> | |
#include <boost/gil/extension/io/png_io.hpp> |
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
#!/usr/bin/env python | |
import io,sys,zlib | |
for filename in sys.argv[1:]: | |
try: | |
file = io.open(filename,'rb') | |
buf = bytearray(1024*128) | |
part_sum = 1; | |
while True: | |
n = file.readinto(buf) |