Skip to content

jonvaldes/canvascripten

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This test makes C++ code draw into an HTML canvas element.

The C++ code renders to an uint8 buffer directly (without OpenGL or anything like that). That C++ code is converted to asm.js, then executed from JS making it modify the contents of an HTML canvas element.

Performance is quite low compared to GPU rendering, but still quite usable if target resolution is not very big. For "retro"-style, pixel-art stuff it should work quite well.

About

Test to show how to generate graphics from C++ and output them to an HTML canvas via Emscripten.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors