you can call all render.* functions inside of this callback
this callback is called every frame
local function on_paint() print(global_vars.frame_count()) render.rect_filled(vec2_t(100, 100), vec2_t(200, 200), color_t(255, 0, 0)) end callbacks.add(e_callbacks.PAINT, on_paint)
Last updated 1 year ago