April 04, 2018
03.04.2018 04:44, Andrew Edwards пишет:
> 
> I made an attempt last year but not much came of it. Would like to help out if you don’t mind slowing your pace a bit to provide some mentoring when the need arises.
> 
> Andrew

My pace isn't fast, unfortunately. In fact porting is rather simple, the problem is testing and some things I was forced to made more D-idiomatic. For example wjakob	uses passing args as const reference all over the place, even bool. I've changed it by passing by value. All types are less or equal to pointer size so there is no sense to pass them by reference I think. Also it lets avoid const qualifier on D side, because passing by value is equal to passing with const qualifier, but of course it's debatable. And I'd like to instead of Screen class, that based on glfw library under hood, use several classes based on arsd.simpledisplay, sdl2, glfw, sfml etc...
Now my code is mess, I need to clean it before pushing but more probably it'll happens only on the weekends.
Anyway, you're welcome!
April 07, 2018
https://github.com/drug007/nanogui

I would be glad if you take a look

April 11, 2018
On Saturday, 7 April 2018 at 09:13:06 UTC, drug wrote:
> https://github.com/drug007/nanogui
>
> I would be glad if you take a look

The documentation should probably be updated to match ddoc.
April 11, 2018
On Saturday, 7 April 2018 at 09:13:06 UTC, drug wrote:
> https://github.com/drug007/nanogui
>
> I would be glad if you take a look

Do you have a complete example I can just compile and run to get started?
April 11, 2018
11.04.2018 16:30, bauss пишет:
> The documentation should probably be updated to match ddoc.

Sure, of course, but it has low priority now. It is just proof of concept. First of all I'm interested in estimation of changes I've made. For example I'm trying to keep const qualifier as most as possible and either I use passing by value (most of all) or change api to allow using const qualifier on D side too (in fact one time). Is it worth effort, has it some caveats?
April 11, 2018
11.04.2018 16:59, Adam D. Ruppe пишет:
> 
> Do you have a complete example I can just compile and run to get started?

Yes, but it needs to be pushed. I've ported Window, Widget, Label and Checkbox (may be something else) and interacting by means of mouse (clicking, motion and dragging). But it has lags and I need your advice. I'll push it in 4-5 hours.
April 11, 2018
11.04.2018 16:59, Adam D. Ruppe пишет:
> On Saturday, 7 April 2018 at 09:13:06 UTC, drug wrote:
>> https://github.com/drug007/nanogui
>>
>> I would be glad if you take a look
> 
> Do you have a complete example I can just compile and run to get started?

That's it - https://github.com/drug007/nanogui/tree/interacting_with_checkbox

Window, Label and Checkbox example + dragging (you can move Window)
But it lags, so definitely I use arsd.simpledisplay in a wrong way.
April 11, 2018
On Wednesday, 11 April 2018 at 17:26:19 UTC, drug wrote:
> That's it - https://github.com/drug007/nanogui/tree/interacting_with_checkbox

So MouseEvent is sent on mouse motion too, and redrawing on each motion might back up the queue.

Otherwise, nothing obvious jumps out at me so I might have to take a closer look later.
April 11, 2018
11.04.2018 21:13, Adam D. Ruppe пишет:
> On Wednesday, 11 April 2018 at 17:26:19 UTC, drug wrote:
>> That's it - https://github.com/drug007/nanogui/tree/interacting_with_checkbox
> 
> So MouseEvent is sent on mouse motion too, and redrawing on each motion might back up the queue.
> 
> Otherwise, nothing obvious jumps out at me so I might have to take a closer look later.
Yes, the reason was spamming events like a crazy, fixed.
April 28, 2018
03.04.2018 04:44, Andrew Edwards пишет:
> 
> I made an attempt last year but not much came of it. Would like to help out if you don’t mind slowing your pace a bit to provide some mentoring when the need arises.
> 
> Andrew
Ironically, I've made (incomplete) port of nanogui and it works using arsd.simpledisplay and sdl2. But totally failed to run it using glfw like original nanogui does. Al least I've spent more time trying to run using glfw than total time I spent using both simpledisplay and sdl2.