diff options
author | A404M <ahmadmahmoudiprogrammer@gmail.com> | 2025-05-24 12:30:50 +0330 |
---|---|---|
committer | A404M <ahmadmahmoudiprogrammer@gmail.com> | 2025-05-24 12:30:50 +0330 |
commit | 81c83f4233dba3851333cb69ab9727659e253d1b (patch) | |
tree | d54c586a7df0e5a3e5185eeabc25c7f6bd48e1b4 /code/main.felan | |
parent | ffe049371a64e0b41fdc777106f768b16b2cd9b2 (diff) |
fixing some problems in parsing
adding more stuff to the example
Diffstat (limited to 'code/main.felan')
-rw-r--r-- | code/main.felan | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/code/main.felan b/code/main.felan index d8c6ec3..0258e17 100644 --- a/code/main.felan +++ b/code/main.felan @@ -11,16 +11,20 @@ BeginDrawing :: @c_function(raylib,"BeginDrawing",()->void); EndDrawing :: @c_function(raylib,"EndDrawing",()->void); CloseWindow :: @c_function(raylib,"CloseWindow",()->void); ClearBackground :: @c_function(raylib,"ClearBackground",(color:u32)->void); +DrawText :: @c_function(raylib,"DrawText",(*u8,i32,i32,i32,u32)->void); main :: ()->void{ - b := "hello\0"; + b := "raylib [core] example - basic window\0"; + c := "Congrats! You created your first window!\0"; str := &b[0]; + str2 := &c[0]; screenWidth :i32: 800; screenHeight :i32: 450; InitWindow(screenWidth,screenHeight,str); - while WindowShouldClose() == false { + while (!WindowShouldClose()) { BeginDrawing(); ClearBackground(@cast(4294967295,u32)); + DrawText(str2,@cast(190,i32),@cast(200,i32),@cast(20,i32),@cast(4278190080,u32)); EndDrawing(); } CloseWindow(); |