Skip to content

Instantly share code, notes, and snippets.

@matpen
matpen / main.cpp
Last active April 26, 2017 07:50
rttr enum registration test
#include <rttr/registration>
#include <iostream>
enum class TestEnum { First = 1, Second = 2 };
RTTR_REGISTRATION
{
using namespace rttr;
registration::enumeration<TestEnum>("TestEnum")
(
@matpen
matpen / rttrqhash.h
Created April 26, 2017 20:32
RTTR Associative container mapper for QHash
#ifndef RTTRQHASH_H
#define RTTRQHASH_H
#include <QHash>
#include <rttr/type.h>
#include <new>
namespace rttr
{
@matpen
matpen / test.html
Created November 2, 2017 18:56
ThreeJs Raycaster test
<html>
<head>
<title>Raycaster test</title>
<style>
body { margin: 0; }
canvas { width: 100%; height: 100% }
</style>
</head>
<body>
<script src="http://threejs.org/build/three.min.js"></script>