Skip to content

hamuQonda/Raylib-empty-project-for-VS2022

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

screenShot 2025-08-09 005610

Raylib empty project for Visual Studio 2022

Features :
It's easy to use. When creating a new project in VS, simply select the template "Raylib_Empty_Project" to create a new, empty Raylib-enabled project with any name and location.

Setting the template in VS2022

  1. Click the green button to download the ZIP file. Unzip the ZIP file to find "Raylib_Empty_Project.zip." Do not unzip this file. We'll use it as is in the next step.

  2. Placing "Raylib_Empty_Project.zip" in VS
    First, find the location of your VS project templates folder. Launch Visual Studio, select "Tools" -> "Options" from the menu, and click "Locations" under "Projects and Solutions" in the list on the left. You'll see the "User Project Templates Location" on the right. Copy that path, open it in Explorer, and place "Raylib_Empty_Project.zip" there.
    スクリーンショット 2025-10-04 003642

There are two prerequisites:

  1. Raylib must be installed using ' raylib Windows Installer '.
  2. After installation, have you built the raylib project? You'll need the raylib.lib generated by the build, so please build it once in both Debug and Release modes.

    2.1 How to Build raylib for Visual Studio
    Open C:\raylib\raylib\projects\VS2022\raylib.sln in Visual Studio.
    Set it to Release configuration, right-click the 'raylib' project in Solution Explorer, and click Build from the drop-down list to build it.
    Next, change it to Debug configuration and build it using the same steps.


Ready?

When you create a new project using Raylib_Empty_Project, an empty project (with Raylib already configured) will open, as shown in the image below.
スクリーンショット 2025-10-03 214515

Let's start your raylib coding adventure from scratch!

Alright! Let's add the main.c file to the project and write a simple "Hello World!" program!

  #include "raylib"

  int main() {
    InitWindow(800, 600, "Hello, raylib world");
    SetTargetFPS(60);

    while (!WindowShouldClose()) {
      BeginDrawing();
      ClearBackground(RAYWHITE);

      DrawText("Hello, raylib world !", 150, 250, 60, PINK);

      EndDrawing();
    }

    CloseWindow();
    return 0;
  }

スクリーンショット 2025-10-03 223913
Let's run it by pressing F5!

スクリーンショット 2025-10-03 232439

Perhaps this is truly the Spartan-programmer's way!?

Thanks to Ramon Santamaria for developing raylib 🙏✨

About

When creating a new project in VS, simply select the template "Raylib_Empty_Project" to create a new, empty Raylib-enabled project with any name and location.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors