import { WebGLRenderer2D } from "https://deno.land/x/caviar@2.1.7/src/renderers/webgl/2d.ts";
Constructors
new
WebGLRenderer2D(canvas: Canvas)Properties
private
backgroundColor: RGBAprivate
buffers: Map<string, EntityBuffers>private
gl: WebGL2RenderingContextprivate
location: ProgramInfo2dprivate
program: WebGLProgrameventManager: EventManager
Methods
private
renderImage(entity: Image | AtlasSprite | Sprite): voidprivate
renderRectangle(entity: Rectangle): voidprivate
setupImage(entity: Image | AtlasSprite): voidprivate
setupRectangle(entity: Rectangle): voidsetBackground(color: RGBA): void