C++ SDL 01: Setting up SDL and Window Setup

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

I am teaching my students right now how to program in C++ with SDL. This is the first video to go over the setup of SDL in Visual Studio 2013, but it will work for Visual Studio 2010 and beyond.

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

Also wanted to say thank you for this video. I've been searching several hours for how to set up SDL. I kept getting so many errors, VS crashes, and problems using clion. This really helped me out.

JollyJavelin
Автор

DUDE!!! Thank you much! I have been pounding my head against the wall for the last three weeks trying to get SDL up and working in VS 2017. Endless forum threads, trying CodeBlocks, Eclipse, and Falcon C++, etc. etc. until finally today you got me there. Best Christmas present EVER!

MichaelProstka
Автор

Awesome video! You definitely made the Set up of the SDL library on my computer super easy! Brilliant storing it on your C drive and copying to where it's needed! I can't wait to go further!

hanasuru
Автор

Thank you Brent. This is the best SDL tutorial hands down. You rock!

lnest
Автор

Oh man. Thanks for this. Trying to follow an SDL game dev tutorial and the guy is on a Mac. I'm new to C++ and new to SDL, so this video was a huge help!

AcornFox
Автор

Simple tutorial and precisely on point.
Thanks! Really informative, great!

Moonz
Автор

Thank you so much! I have tried loads of different things to try and get the on my pc. And now I finally have it! Really pleased. :)

sofiaandnate
Автор

great tutorial. Everything worked perfectly!

bazzboyy
Автор

So fracking complicated!!! Thank you so much for this video! ^_^

turtlemasterroshi
Автор

When I first tried following along I kept getting this error message: "LINK : fatal error LNK1104: cannot open file 'SDL2.lib'" (SDL 2 is in use now, not SDL 1). I had to go to Project Properties > Linker > General > Additional Library Directories, then select the x86 folder inside the lib folder (just selecting lib will not work. It needs x86). Then it worked.

Thanks for making this video.

ericwarncke
Автор

I wish I had watched these before the midterm now I understand where I made my biggest mistake at least.


what is the difference between int and Uint? and is Uint only in SDL?

cashlaughs
Автор

Also if in the future could you possibly do a video series for OpenGL id love to understand 3D Environments in C++, and it seams that knowing OpenGL, or SFML greatly increases your chances of getting hired and can dictate the salary you may receive.

cashlaughs
Автор

Which Visual Studios would you find the general option is Visual C++?

sleazypengun
Автор

I'm have erro:Error LNK1104: cannot open file 'SDL2.image.lib'
i don't know why, please help me !!!

LongNguyen-lxyr
Автор

When you started writing the program using SDL statements and what not, what is that for? Is it required to install SDL, or is it just something to test it?

protodroidstuff
Автор

How can we split the window into two parts. Thank u inadvance.

shrav
Автор

cant find config in properties tab using vs 2015

gruffmantis
Автор

Hello Mr. Farris,
I did everything that you showed in your video, but there is an error that occures.
The error is "The program ... has exited with code -1073741701
How can i resolve this?

Thank you very much for your time and your video! :)

spartianaleck
Автор

Hm. This doesn't seem to be working for me. I get LNK2019 unresolved external symbol (SDL2main.lib)

airus
Автор

when i tried to make this, it didn't work. it would open the window, but the screen would stay white, and it would say "Not Responding." i think i did something wrong with these lines of code:
while (SDL_PollEvent(&e) != 0) {
if (e.type == SDL_QUIT || e.key.keysym.sym == SDLK_ESCAPE)
exit = true;
}
but i don't know what.

quorrafromtron