This file contains hidden or 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
#ifdef GL_FRAGMENT_PRECISION_HIGH | |
precision highp float; | |
#else | |
precision mediump float; | |
#endif | |
uniform vec2 resolution; | |
uniform vec2 offset; | |
uniform sampler2D backbuffer; | |
uniform vec3 gravity; |
This file contains hidden or 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> | |
template<typename Target, typename Source> | |
struct force_cast { | |
union { | |
Source source; | |
Target target; | |
}; | |
force_cast(Source source) : source(source) {}; |
This file contains hidden or 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
playListAction({action, index}) { | |
switch (action) { | |
case 'delete': | |
this.playList.splice(index, 1); | |
break; | |
case 'moveUp': | |
this.playList.splice((index - 1 + this.playList.length) % this.playList.length, 0, this.playList.splice(index, 0)); | |
break; | |
case 'moveDown': | |
this.playList.splice((index + 1) % this.playList.length, 0, this.playList.splice(index, 0)); |
NewerOlder