Add a dummy NoneCharAtlas implementation

This adds the logic needed to switch between multiple char atlas
implementations, and an example second implementation to test it out
with.

This also offers an escape hatch if something goes wrong with the char
atlas implementation(s).
This commit is contained in:
Benjamin Woodruff
2018-04-15 18:03:55 -07:00
parent 6f21385cd8
commit 8c980bc30d
8 changed files with 67 additions and 4 deletions
+1
View File
@@ -9,6 +9,7 @@ import { IColorSet } from '../Types';
export const CHAR_ATLAS_CELL_SPACING = 1;
export interface ICharAtlasConfig {
type: 'none' | 'static';
devicePixelRatio: number;
fontSize: number;
fontFamily: string;