Ray 4 лет назад
Родитель
Сommit
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)
 {