Giter VIP home page Giter VIP logo

thesonett / sdl2-project-template Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 14.71 MB

SDL2 project template with ImGui support (NOTE: SDL2_gfx only will work for x86 target platform)

License: GNU General Public License v3.0

C++ 84.55% C 12.56% Objective-C 0.40% Objective-C++ 2.13% Shell 0.01% GLSL 0.02% CMake 0.06% Kotlin 0.03% HTML 0.05% Batchfile 0.18% GDB 0.01% Lua 0.02%
sdl2 sdl opengl imgui-sdl

sdl2-project-template's Introduction

About Repository

DemoWindow

I have fully set up a test project of SDL2 for Visual Studio Code 2019/2022 users. It has all the necessary dependency files to get started with SDL2. In the Dependencies folder, I have included a dll folder that has a bunch of DLL files for dynamically linking of your project. The main reason I have made this repository to help those people who are struggling with SDL2 & SDL2_gfx success project build & those who are getting errors when they try to run any SDL2 projects. It has all the SDL2 header files & also it has SDL2_image, SDL2_mixer, SDL2_net, SDL2_ttf, SDL2_gfx. Additionally, It also has GLFW, GLEW & ImGui support for your SDL2 projects.

How to build this project?

According to your Solution Configurations (Debug/Release),

If you set the project target platform to x86/x64, then go to project properties, then make sure you select for All Configurations & All Platforms. After that, go to Linker & set the Additional Library Directories to ...\lib\x64 or ...\lib\x86 (according to your target platform). Then click on Apply & build the project.

Now if you try to run the program, you'll get some DLL file missing ERRORS. DON'T get scared! You have to then copy all the DLL files from the dll folder (according to your solution platform x86/x64) & paste them into your executable binary (x86/x64) file's directory. That's it! then just run the program!

NOTE

If you find any build toolset kind of errors, make sure you have selected Windows SDK Version 10.0.

sdl2-project-template's People

Contributors

thesonett avatar

Watchers

 avatar

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.