michaelfairley / rust-imgui-opengl-renderer

OpenGL (3+) rendering for imgui-rs
37 stars 32 forks source link

Textures? #6

Closed JMS55 closed 5 years ago

JMS55 commented 5 years ago

Image needs a TextureId. Is there some way to get that from a sdl2 Texture? How can this be done?

michaelfairley commented 5 years ago

SDL2 doesn't seem to provide a way to get the underlying OpenGL texture id for an SDL2 Texture, so I don't think this library is usable if you want custom images while using the SDL2 renderer.

JMS55 commented 5 years ago

No problem, I ended up moving to glium anyways