How to create a window using VS Empty Project with Raylib and C++

1 Answer

0 votes
#include "raylib.h"

int main() {
    // InitWindow(int width, int height, const char* title);
    InitWindow(800, 600, "Raylib Window");

    while (!WindowShouldClose()) {
        BeginDrawing();
        
        // void ClearBackground(Color color); 
        ClearBackground(BLACK);
        
        // DrawText(const char* text, int posX, int posY, int fontSize, Color color);
        DrawText("Raylib Window",300, 260, 25, GREEN);

        EndDrawing();
    }

    CloseWindow();

}


/*
run:


*/

 



answered Jan 10, 2025 by avibootz
edited Jan 10, 2025 by avibootz

Related questions

1 answer 153 views
1 answer 103 views
103 views asked Jan 16, 2025 by avibootz
1 answer 147 views
147 views asked Jan 12, 2025 by avibootz
...