UNPKG

react-ogl

Version:

A barebones react renderer for OGL.

12 lines (11 loc) 538 B
import Reconciler from 'react-reconciler'; import { Catalogue, Instance, RootStore } from './types'; /** * Extends the OGL catalogue, accepting an object of keys pointing to external classes. * `gl` will flag `objects` to receive a `WebGLRenderingContext` on creation. */ export declare function extend(objects: Partial<Catalogue>, gl?: boolean): void; /** * Centralizes and handles mutations through an OGL scene-graph. */ export declare const reconciler: Reconciler.Reconciler<RootStore, Instance<any>, never, Instance<any>, any>;