Working version

This commit is contained in:
schmelczerandras 2020-09-15 13:37:57 +02:00
parent 77bde04db3
commit b2c2cfcb41
63 changed files with 203 additions and 8301 deletions

15
src/drawables/drawable.ts Normal file
View file

@ -0,0 +1,15 @@
import { mat2d, vec2 } from 'gl-matrix';
import { DrawableDescriptor } from './drawable-descriptor';
export abstract class Drawable {
static get descriptor(): DrawableDescriptor {
throw new Error('This getter should be overriden');
}
public abstract distance(target: vec2): number;
public abstract serializeToUniforms(
uniforms: any,
scale: number,
transform: mat2d
): void;
}