natinusala / borealis

Hardware accelerated, controller and TV oriented UI library for PC and Nintendo Switch (libnx)
Apache License 2.0
261 stars 83 forks source link

Image: add rgba option #21

Closed HookedBehemoth closed 4 years ago

natinusala commented 4 years ago

It's unclear what the difference is between the second constructor and the third one (one being jpg / png, the other being RGBA)

We should maybe create another class that wraps around nvgCreateImage / nvgCreateImageMem (so it holds a texture id) and pass that instead of the current parameters?