SDL 2 Made Easy Tutorial 1 - Setup

preview_player
Показать описание

Also follow me on social media :D

Steam ID: CodingMadeEasy

Feel free to download my apps as well!

Driving Frenzy
----------------------------

Рекомендации по теме
Комментарии
Автор

Thank you for the hard work.
One suggestion, move the delay to just before the window destroy so that you can see all errors in the terminal with a delay.
Otherwise, there is no delay for errors before a window is created and the terminal closes immediately :)

         {
          
            // no! SDL_Delay(2000);
        }
    }

    SDL_Delay(10000);  // YES!
    SDL_DestroyWindow(window);
    SDL_Quit();

    return 0;
}

Also as I noted in another comment, I did a completely fresh 2013 install and found it would not compile unless precompiled libraries was turned. Probably anyone that has been using VC has already done this.

(right click over solution code headers-> select "not using precompiled headers"

jan-zumwalt
Автор

After many monotonous attempts and IDE surfing I finally found a method that would link and recognize the library. Thanks much

xandertheupriser
Автор

You have made a technical mistake in this video. At 2:47, you state that the lib folder version should be the same as your visual studio install, but this is not the case. The lib folder selected here is for whatever architecture you are compiling for (Most would be for 32 bit). This is just from my understanding, so do correct me if I'm wrong.

Trigex
Автор

If you're using visual studio, you can also use NuGet to install SDL for you. SDL_Image and SDL_ttf are also available there.
- Install NuGet: Tools -> Extensions and Updates... -> search for nuget -> install nuget package manager.
- Install SDL: Right click project -> Manage NuGet Packages... -> search for SDL -> Install SDL2 (or SDL2.v140).

TheMohawk
Автор

omg just looked at my sub box and saw not only have you started the series but you've done 20 :D, there goes my summer Lol - Thanks :)

SpixIo
Автор

HI! I followed all your steps, but VS can't find the include file SDL.h, what can i do?

sporech
Автор

hello i would like to report a problem even though this is almost 8 years ago, btw when I use my visual code studio and type in #include <SDL.h> it would not work I did all the setups but it still cannot find the SDL.h

jerrythe_boy
Автор

+CodingMadeEasy I know you'll probably say this because it's your tutorial. But which do you think is better for just getting a basic game up and running; you or lazyfoo's written tutorial?

sirmrtyler
Автор

Thank you so much! I was looking for sdl2 tutorials and I could not find good tutorials. Most of them were just crap and used inefficient code. Also, is there any way to have shaders in sdl2?

EndlessVortex-fd
Автор

The architecture folders in the lib folder of SLD is for linking to different builds. It has nothing to do with your Visual Studio version. It's all about if you build your application as x64 or x86.

HolyGarbage
Автор

Not sure where to notify you; but tutorial 8 appears to be private.

On a different note; wow! I got slammed with SDL2 tutorials on my feed! Awesome work, Peter.

Doyleman
Автор

finally someone got SDL2 to work LOL everyone had a different way to set it up

stigtheghost
Автор

Nice and easy to follow. Eveything works when using VS 2013 Express

tabletennis
Автор

Where did you learn all this stuff?

Also, my intellisense doesn't show up on my visual studio c++ how can I do this?

Outcrowddude
Автор

Is the editing under properties something you have to do every time you create a new project?

kbman
Автор

Where were these tutorials two months ago when I had a school project?!? :D I succeeded but it was hard! :P

crumbld
Автор

When making the project, make sure you check "create empty project." I wasn't paying attention and forgot to do that. The project wouldn't compile. If you're having compilation errors that nobody in the comments is having, check to see if you have files in your project that you didn't make. Rip them all out.

JrIcify
Автор

Followed as close as possible, got:

Error 1 error LNK1561: entry point must be S\SDL P\LINK SDL P

TestZombie
Автор

Please put your source code on SourceForge.org or GitHub.com - thanks :)

jan-zumwalt