Skip to content

Instantly share code, notes, and snippets.

@mgerhardy
mgerhardy / svo.hpp
Created June 7, 2020 20:51 — forked from eisenwave/svo.hpp
C++ implementation of a sparse voxel octree
#ifndef SVO_HPP
#define SVO_HPP
#include "common_types.hpp"
#include "vec.hpp"
#include "vec_math.hpp"
#include "util_bits.hpp"
#include "util_common.hpp"
#include <algorithm>
make[1]: Verzeichnis „/home/mgerhardy/dev/mxe“ wird betreten
uname -a
Linux t460s 4.19.0-1-amd64 #1 SMP Debian 4.19.12-1 (2018-12-22) x86_64 GNU/Linux
git log --pretty=tformat:"%H - %s [%ar] [%d]" -1
744f553022aabe5c9946828235b6a5dd9416a6d0 - Update packages.json & build-matrix.html [vor 4 Tagen] [ (HEAD -> master, origin/master, origin/HEAD)]
lsb_release -a 2>/dev/null || sw_vers 2>/dev/null || true
Distributor ID: Debian
Description: Debian GNU/Linux buster/sid
Release: testing
Codename: buster
@mgerhardy
mgerhardy / NoiseShader.cpp
Created August 18, 2017 14:31
Generated c++ code from opencl parser/code generator
/**
* @file
*/
#pragma once
#include "compute/Shader.h"
#include "core/Singleton.h"
#include "core/Assert.h"
#include <glm/gtc/vec1.hpp>
/**
* @file
*/
#pragma once
#include "compute/Shader.h"
#include "core/Singleton.h"
@mgerhardy
mgerhardy / polyvox-ambient-occlusion.patch
Created June 14, 2016 06:05
Ambient occlusion patch for PolyVox develop branch
From d24f9b9d4c95e148b52ab6cc8dd1d16daa87ba95 Mon Sep 17 00:00:00 2001
From: Martin Gerhardy <martin.gerhardy@gmail.com>
Date: Fri, 20 May 2016 11:52:38 +0200
Subject: [PATCH] implemented ao
---
examples/DecodeOnGPU/decode.vert | 1 +
examples/Paging/main.cpp | 10 +-
examples/common/OpenGLWidget.inl | 1 +
examples/common/PolyVoxExample.h | 14 +-
@mgerhardy
mgerhardy / GuiceEasyMockTestNG.java
Created March 1, 2016 07:33
EasyMock + TestNG + Guice class that makes your live easier
package com.github.mgerhardy;
import java.io.IOException;
import java.lang.reflect.Field;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.HashSet;
import java.util.List;
@mgerhardy
mgerhardy / android-packages.cmake
Created October 8, 2015 19:44
CMake android install packages by id - ANDROID_SDK_TOOL is set to the "android" binary
set(ANDROID_SDK_TOOL android)
#
# Install android packages
#
# parameters:
# PACKAGE The package id that you need to install
#
macro(cp_android_package PACKAGE)
message("install android sdk package ${PACKAGE}")