Code Monkey home page Code Monkey logo

sdl2-setup's Introduction

SDL2 Setup for Visual Studio 2022

Prerequisites

  1. Install Visual Studio 2022 in your computer. If you don't have it installed, click here.
  2. Start the Visual Studio Installer through your Windows Search. After that, the Installer window appears.
  3. Install two packages Visual Studio Community 2022 (VS IDE) and Desktop development with C++ (Build Tool).

Setting up SDL2

  1. Download 2 files SDL2.Compiler.zip and SDL2.Template.zip from the release page.

  2. Extract the zipped file SDL2.Compiler.zip to your C:\ folder.

    NOTE: After you extract the file, the location of the folder MUST be C:\SDL2-2.26.3. Otherwise it will NOT work.
  3. Copy the SDL2.Template.zip file to %USERPROFILE%\Documents\Visual Studio 2022\Templates\ProjectTemplates directory.

Creating Project

  1. Start Visual Studio 2022.
  2. Click on Create a new project.
  3. In the right sidebar, select SDL2 Template and click Next.
  4. Change your project's name or location as you wish and click Create.
    After that, the main window of Visual Studio IDE will appears.
  5. From the top sidebar, click on Local Windows Debugger to execute the project.
    After a few seconds, a small Pong Game window with will appear.
    Congratulation! You have successfully created the first working SDL2 project!

sdl2-setup's People

Contributors

glowcheese avatar

Stargazers

 avatar Vikrant Singh avatar  avatar

Watchers

 avatar

sdl2-setup's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.