🌞 Pythonda ham bunchalik oson/tushunarli bo'lmasa kerak grafik interfeys qurish.
#include "raylib.h"
#include "resource_dir.h"
const int W_WIDTH = 800, W_HEIGHT = 600;
const char APP_TITLE[] = "BruhGL",
RESOURCES_DIR[] = "resources";
int main()
{
SetConfigFlags(
FLAG_VSYNC_HINT | FLAG_WINDOW_HIGHDPI
);
InitWindow(W_WIDTH, W_HEIGHT, APP_TITLE);
// rasm va boshqa assetlar saqlanadigan folder
SearchAndSetResourceDir(RESOURCES_DIR);
while (!WindowShouldClose())
{
BeginDrawing();
ClearBackground(BLACK);
DrawText(
"Abduaziz Py", // matn
W_WIDTH / 2, // x o'qidagi o'rni
W_HEIGHT / 2, // y o'qidagi o'rni
30, // shrift hajmi
ORANGE // rangi
);
EndDrawing();
}
CloseWindow();
return 0;
}
🔥 More:
https://www.raylib.com@AbduazizPy