-
Notifications
You must be signed in to change notification settings - Fork 1
Update all OpenGL examples to RGFW 1.80-dev #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
| while (!RGFW_window_shouldClose(win) && running) | ||
| { | ||
| /* Input */ | ||
| RGFW_window_checkEvents(win, RGFW_eventNoWait); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be checked to pollEvents, don't use checkEvent if you don't need the event queue.
| NK_API double | ||
| nk_RGFW_get_time() { | ||
| static time_t start = 0; | ||
| if (start == 0) { | ||
| start = time(0); | ||
| } | ||
|
|
||
| return difftime(time(0),start); | ||
| } | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably better to use clock or something. Time is per second.
Also what is diff time? Just time - time should work.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Diff time is the difference in time between the two arguments
|
Needs to be updated to newest version. Probably better to wait for RGFW 1.8.0 to be released. |
|
updated time function due to it being imprecise |
|
Clock isn't standard across all OSes, see https://github.com/ColleagueRiley/rtime/ |
same as title
this doesn't include rgfw_rawfb, yet i play on doing that soon