Rotate implementation in Rust

This commit is contained in:
Surma
2019-01-23 10:24:44 -05:00
parent d1203d9c42
commit b6a8f7eeba
7 changed files with 158 additions and 69 deletions

View File

@@ -3,3 +3,10 @@ export interface RotateOptions {
}
export const defaultOptions: RotateOptions = { rotate: 0 };
export interface RotateModuleInstance {
exports: {
memory: WebAssembly.Memory;
rotate(width: number, height: number, rotate: 0 | 90 | 180 | 270): void;
};
}