Merge pull request #4 from Cyrodwd/main

Not a bad idea. A lot of games do have an X or YouTube button sometimes.
This commit is contained in:
Kapendev 2025-01-02 12:18:43 +02:00 committed by GitHub
commit 000baadb9a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1409,6 +1409,12 @@ void freeResources(Sz tag = 0) {
engineState.resources.free(tag);
}
/// Opens a URL in the default web browser (if available).
@trusted
void openURL(IStr url = "https://example.com/") {
rl.OpenURL(url.toCStr().getOr());
}
/// Opens a window with the specified size and title.
/// You should avoid calling this function manually.
@trusted