소스 검색

Update Beginners_-_FormatText.c

Rudy Boudewijn van Etten 5 년 전
부모
커밋
2ec0afcbe0
1개의 변경된 파일2개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 3
      Beginners_-_FormatText.c

+ 2 - 3
Beginners_-_FormatText.c

@@ -1,4 +1,3 @@
-
 #include "raylib.h"
 
 int main(void)
@@ -35,8 +34,8 @@ int main(void)
             int val2 = 12345;
             // 10 x 0 before the int is drawn.
             DrawText(FormatText("val2: %010i",val2),100,120,20,BLACK);
-            
-            
+            // We can put multiple things inside the formattext function.
+            DrawText(FormatText("val1 : %f val2 : %i",val1,val2),100,140,20,BLACK);
 
         EndDrawing();
         //----------------------------------------------------------------------------------