with zui we have
// In render()
public function render(frame:Framebuffer) {
var g = frame.g2;
g.begin();
// Draw your stuff…
g.end();
how to do it with g4 in order to obtain a 3D frame too ? another way to do ?
(for those who discover and want some explaination with g2 versus g4 : Kha use double buffering ; we prepare things in a backbuffer and then throw them into the framebuffer; the available member g2 of the backbuffer is used for 2d rendering, html5 canvas, etc… and g4 is used for 3d graphics, audio apis, etc…)