UNPKG

@bitbybit-dev/core

Version:

Bit By Bit Developers Core CAD API to Program Geometry

18 lines (17 loc) 435 B
/** * Time functions help to create various interactions which happen in time */ export class Time { constructor(context) { this.context = context; } /** * Registers a function to render loop * @param update The function to call in render loop */ registerRenderFunction(update) { this.context.renderLoopBag.push((timePassedMs) => { update(timePassedMs); }); } }