728x90 SMALL C언어 라이브러리1 [ChatGPT][Raylib] Raylib를 사용하여 기본 창을 만들고 색상이 지정된 사각형을 그리는 간단한 샘플 코드 gcc -o my_game my_game.c -lraylib -lopengl32 -lgdi32 -lwinmm #include "raylib.h" int main(void) { // Initialization const int screenWidth = 800; const int screenHeight = 450; InitWindow(screenWidth, screenHeight, "raylib Sample"); SetTargetFPS(60); // Set the frames per second // Main game loop while (!WindowShouldClose()) // Detect window close button or ESC key { // Update // Draw BeginDrawin.. 2024. 1. 2. 이전 1 다음 728x90 LIST