Skip to main content

Event API

import { gl } from 'glre'

gl({
        // init
        init() {},

        // mount
        mount() {},

        // clean
        clean() {},

        // render
        render() {},

        // mousemove
        mousemove() {},

        // resize
        resize() {},

        // scroll
        scroll() {},
})

create event

import { createGL, createTF } from 'glre'

// create initialized gl event
const gl = createGL()

// create tranfrom buffer event
const tf = createTF()