Просмотр исходного кода

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.
pull/4792/head
Jay Rhoden 1 месяц назад
committed by GitHub
Родитель
Сommit
015ab9df18
Не найден GPG ключ соответствующий данной подписи Идентификатор GPG ключа: B5690EEEBB952194
1 измененных файлов: 3 добавлений и 2 удалений
  1. +3
    -2
      examples/text/text_codepoints_loading.c

+ 3
- 2
examples/text/text_codepoints_loading.c Просмотреть файл

@ -38,7 +38,8 @@ int main(void)
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 *codepoints = LoadCodepoints(text, &codepointCount);
@ -155,4 +156,4 @@ static int *CodepointRemoveDuplicates(int *codepoints, int codepointCount, int *
*codepointsResultCount = codepointsNoDupsCount;
return codepointsNoDups;
}
}

Загрузка…
Отмена
Сохранить