Original link: http://www.concentric.net/~Ttwang/tech/inthash.htm
Taken from: http://web.archive.org/web/20071223173210/http://www.concentric.net/~Ttwang/tech/inthash.htm
Reformatted using pandoc
Thomas Wang, Jan 1997
last update Mar 2007
| // | |
| // 1. Add a Quad in Unity | |
| // 2. Parent the quad under camera, to prevent frustum culling. | |
| // 3. Attach this shader. | |
| // | |
| Shader "Quad/Fullscreen" | |
| { | |
| Properties | |
| { | |
| } |
| // | |
| // MTLTexture+Z.swift | |
| // ZKit | |
| // | |
| // The MIT License (MIT) | |
| // | |
| // Copyright (c) 2016 Electricwoods LLC, Kaz Yoshikawa. | |
| // | |
| // Permission is hereby granted, free of charge, to any person obtaining a copy | |
| // of this software and associated documentation files (the "Software"), to deal |
| template<typename NodeRef> | |
| class Graph { | |
| public: | |
| std::vector<NodeRef> allNodes() const; | |
| std::vector<NodeRef> getChildren(NodeRef) const; | |
| }; | |
| template<typename NodeRef> | |
| std::vector<NodeRef> TopologicalSort(const Graph<NodeRef>& G) { | |
| std::map<NodeRef, unsigned> RefCount; |
Original link: http://www.concentric.net/~Ttwang/tech/inthash.htm
Taken from: http://web.archive.org/web/20071223173210/http://www.concentric.net/~Ttwang/tech/inthash.htm
Reformatted using pandoc
Thomas Wang, Jan 1997
last update Mar 2007
| /* | |
| * Copyright 2013, Blender Foundation. | |
| * | |
| * Redistribution and use in source and binary forms, with or without | |
| * modification, are permitted provided that the following conditions are | |
| * met: | |
| * * Redistributions of source code must retain the above copyright | |
| * notice, this list of conditions and the following disclaimer. | |
| * * Redistributions in binary form must reproduce the above copyright | |
| * notice, this list of conditions and the following disclaimer in the |
| #include "cinder/app/AppCocoaTouch.h" | |
| #include "cinder/app/Renderer.h" | |
| #include "cinder/Camera.h" | |
| #include "cinder/CinderResources.h" | |
| #include "cinder/ImageIo.h" | |
| #include "cinder/gl/Texture.h" | |
| #include <vector> | |
| #include <map> | |
| #include <list> |