gamercade-io / gamercade_console

A Neo-Retro Fantasy Console. Make WASM-powered, networked multiplayer games.
https://gamercade.io
Apache License 2.0
165 stars 10 forks source link

Add `write_pixel_buffer` type of graphics function #90

Closed RobDavenport closed 1 year ago

RobDavenport commented 1 year ago

For those who want to push pixels manually instead of calling set_pixel multiple times, we should have a version which accepts a slice (pointer and length) of graphics_parameters (i32), as well as the starting location of the pixel buffer.

Then the console can do a fast write into the pixel buffer directly, using the passed in slice.