ewmailing / IupEmscripten

Emscripten (native web browser) backend for IUP (Portable native-GUI Interface) [switch to Emscripten branch]
Other
10 stars 1 forks source link

Figure out which option to go with regarding images in IupEmscripten #33

Closed cmatzenbach closed 5 years ago

cmatzenbach commented 6 years ago

Options:

  1. Use SDL Built-in Image Support or SDL Image Support Provided by Emscripten
  2. FInd JS API that can load images natively and continue same way we've been doing
  3. Compile in our own image library from the c-side
  4. Write our own image loader (NOT!!)

1 Eric's preferred option

cmatzenbach commented 6 years ago

@ewmailing Did you learn anything about this, or have thought about it further since I opened the ticket?

ewmailing commented 5 years ago

I did an implementation and is committed. It uses SDL_image to load, and then does a lot of ugly things to get it into a DOM widget. It has its own issues which should be filed, but this can be closed.