andlabs / andlabs/libui

API to know when to call `uiMainStep`

Aperta
#117 9 commenti 0 reazioni 0 assegnatari Vedi su GitHub
custom main loops
Lingua principale
C
Stelle
10.9k
Fork
612
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Instead of calling `uiMainStep` on some arbitrary timer, provide a way know when to step next.

I'd suggest a function that returns both:
1. a file descriptor (unix) or `HANDLE` (windows) to wait on
2. a timeout

These would then be passed (by the user) to `poll`/`select`(unix)/`WaitForMultipleObjects`(windows) to multiplex the UI with other (e.g. network) resources.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.