ZakBlystone / metacade

A cross-platform embeddable arcade framework for use in video games
Other
6 stars 2 forks source link

[Request] Modifying the pixels of a texture at runtime #5

Open rileyzzz opened 4 years ago

rileyzzz commented 4 years ago

It's really inefficient to render each pixel as an individual rectangle for emulators and such, so I suggest a way to dynamically change the RGBA values of pixels of a texture asset, through either changing a “texture” buffer property of an assets[“texture.tex”] object, or through a method to set the color of a specific pixel.

rileyzzz commented 4 years ago

This could also be achieved with an implementation of something similar to a HTML canvas, which could improve compatibility for several emulator libraries. WebGL support for the canvas would be very useful aswell