Amend comment to explain what LoadCodepoints is doing. (#4787)

As a beginner, it was not clear to me what the purpose of the LoadCodepoints function is. I am trying to help past me.
This commit is contained in:
Jay Rhoden 2025-02-24 01:19:10 +08:00 committed by GitHub
parent 99d2119dd6
commit 015ab9df18
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -38,7 +38,8 @@ int main(void)
InitWindow(screenWidth, screenHeight, "raylib [text] example - codepoints loading"); InitWindow(screenWidth, screenHeight, "raylib [text] example - codepoints loading");
// Get codepoints from text // Convert each utf-8 character into its
// corresponding codepoint in the font file.
int codepointCount = 0; int codepointCount = 0;
int *codepoints = LoadCodepoints(text, &codepointCount); int *codepoints = LoadCodepoints(text, &codepointCount);