vurtun / nuklear

A single-header ANSI C gui library
13.69k stars 1.11k forks source link

(Question) images in nuklear #914

Closed ghost closed 5 years ago

ghost commented 5 years ago

Not much a issue, more a question. I have been using nuklear for a while now, but I have never seen a way to implement a image in nuklear. Is this possible?

(I want to load a image either from a url or a local file either from a resource file or bitmap)

molecularentropy commented 5 years ago

It's definitely possible. Have a look at the x11_opengl2_tex demo.

ghost commented 5 years ago

@alxbrn Did you try nk_draw_image, I mean this is pretty straightforward.