UNPKG

excalibur

Version:

Excalibur.js is a simple JavaScript game engine with TypeScript bindings for making 2D games in HTML5 Canvas. Our mission is to make web game development as simple as possible.

24 lines (23 loc) 819 B
import { Color } from '../../../Color'; import { Vector } from '../../../Math/vector'; import { ExcaliburGraphicsContextWebGL } from '../ExcaliburGraphicsContextWebGL'; import { RendererPlugin } from '../renderer'; export declare class CircleRenderer implements RendererPlugin { readonly type = "ex.circle"; priority: number; private _maxCircles; private _shader; private _context; private _gl; private _buffer; private _layout; private _quads; private _circleCount; private _vertexIndex; initialize(gl: WebGL2RenderingContext, context: ExcaliburGraphicsContextWebGL): void; dispose(): void; private _isFull; draw(pos: Vector, radius: number, color: Color, stroke?: Color, strokeThickness?: number): void; hasPendingDraws(): boolean; flush(): void; }