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.
23 lines (22 loc) • 753 B
TypeScript
import { Vector } from '../../../Math/vector';
import { Color } from '../../../Color';
import { ExcaliburGraphicsContextWebGL } from '../ExcaliburGraphicsContextWebGL';
import { RendererPlugin } from '../renderer';
export declare class PointRenderer implements RendererPlugin {
readonly type = "ex.point";
priority: number;
private _shader;
private _maxPoints;
private _buffer;
private _layout;
private _gl;
private _context;
private _pointCount;
private _vertexIndex;
initialize(gl: WebGL2RenderingContext, context: ExcaliburGraphicsContextWebGL): void;
dispose(): void;
draw(point: Vector, color: Color, size: number): void;
private _isFull;
hasPendingDraws(): boolean;
flush(): void;
}