v86 icon indicating copy to clipboard operation
v86 copied to clipboard

Graphical output for nodejs

Open copy opened this issue 8 years ago • 3 comments

Adapt this old screen_sdl.js for the newer screen api (as in screen.js).

copy avatar Dec 30 '15 19:12 copy

Since the browser use a canvas element to do the rendering, wouldn't it be easier to use node-canvas? This way the code would be common both for Node.js and browser... or at least give to the user the option about what graphica output to use.

piranna avatar Dec 30 '15 19:12 piranna

@piranna The graphical output only needs a pixel buffer to draw to and font rendering, which is in my opinion simpler to do and faster when using sdl. Anyway, node-canvas would work too.

copy avatar Feb 15 '16 22:02 copy

My fork of node-canvas use fbdev, that's mostly not hardware accelerated, but this can be fixed by adding support for EGL. Besides that, I find it simple to use...

piranna avatar Feb 16 '16 08:02 piranna