Преглед на файлове

Reviewed DrawFPS() comment

pull/1676/head
Ray преди 3 години
родител
ревизия
bb73a8089a
променени са 3 файла, в които са добавени 4 реда и са изтрити 4 реда
  1. +1
    -1
      src/core.c
  2. +2
    -2
      src/raylib.h
  3. +1
    -1
      src/text.c

+ 1
- 1
src/core.c Целия файл

@ -2496,7 +2496,7 @@ int GetFPS(void)
return (int)roundf(1.0f/average);
}
// Returns time in seconds for last frame drawn
// Returns time in seconds for last frame drawn (delta time)
float GetFrameTime(void)
{
return (float)CORE.Time.frame;

+ 2
- 2
src/raylib.h Целия файл

@ -971,7 +971,7 @@ RLAPI Vector2 GetScreenToWorld2D(Vector2 position, Camera2D camera); // Returns
// Timing-related functions
RLAPI void SetTargetFPS(int fps); // Set target FPS (maximum)
RLAPI int GetFPS(void); // Returns current FPS
RLAPI float GetFrameTime(void); // Returns time in seconds for last frame drawn
RLAPI float GetFrameTime(void); // Returns time in seconds for last frame drawn (delta time)
RLAPI double GetTime(void); // Returns elapsed time in seconds since InitWindow()
// Misc. functions
@ -1291,7 +1291,7 @@ RLAPI void UnloadFontData(CharInfo *chars, int charsCount);
RLAPI void UnloadFont(Font font); // Unload Font from GPU memory (VRAM)
// Text drawing functions
RLAPI void DrawFPS(int posX, int posY); // Shows current FPS
RLAPI void DrawFPS(int posX, int posY); // Draw current FPS
RLAPI void DrawText(const char *text, int posX, int posY, int fontSize, Color color); // Draw text (using default font)
RLAPI void DrawTextEx(Font font, const char *text, Vector2 position, float fontSize, float spacing, Color tint); // Draw text using font and additional parameters
RLAPI void DrawTextRec(Font font, const char *text, Rectangle rec, float fontSize, float spacing, bool wordWrap, Color tint); // Draw text using font inside rectangle limits

+ 1
- 1
src/text.c Целия файл

@ -813,7 +813,7 @@ void UnloadFont(Font font)
}
}
// Shows current FPS on top-left corner
// Draw current FPS
// NOTE: Uses default font
void DrawFPS(int posX, int posY)
{

Зареждане…
Отказ
Запис