-
Notifications
You must be signed in to change notification settings - Fork 9.1k
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
ui: refactor spinner using raylib #33738
base: master
Are you sure you want to change the base?
Conversation
deanlee
commented
Oct 7, 2024
- Add selfdrive/ui/raylib/util.cc for Helper Functions: Introduced a new raylib/util.cc file containing utility functions to manage common tasks such as font handling, application initialization, and other reusable operations.
- refactor spinner using raylib:
6460cb4
to
2fccdb9
Compare
2fccdb9
to
1bad8b2
Compare
c8fdc0c
to
9c35827
Compare
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.
Looks great!
It's even a (slight) red diff, even with setting up all the new raylib infrastructure.
Vector2 textSize = MeasureTextEx(getFont(), userInput.c_str(), kFontSize, 1.0); | ||
DrawTextEx(getFont(), userInput.c_str(), {center.x - textSize.x / 2, yPos}, kFontSize, 1.0, WHITE); |
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.
make a helper for this?
} | ||
} | ||
|
||
EndDrawing(); |
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.
raylib handles the FPS here?
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.
yes, raylib hand FPS and poll input events in EndDrawing().
@adeebshihadeh: Raylib failed to initialize GLFW on the C3X:
The error occurs because two functions, To resolve this issue, we need to update Wayland on the device to the correct version and ensure raylib is compiled with the appropriate build options ( https://github.com/raysan5/raylib/blob/3fb1ba25aca0a6b023ca254a0910df36b0744e64/CMakeOptions.txt) |
Unfortunately, we can't easily update our Weston. Can we just patch those out in raylib? |
9c35827
to
10afe41
Compare
Getting this error building on device:
|
10afe41
to
5ded054
Compare
@adeebshihadeh: fixed this build issue |
@maxime-desroches can you get this working on-device? It's likely easiest to patch raylib to work with our existing weston. |
This PR has had no activity for 9 days. It will be automatically closed in 2 days if there is no activity. |