SDL 2 Tutorial 4b - Drawing An Image Using SDL_image [WINDOWS VISUAL STUDIO]

preview_player
Показать описание
🚀 Get 100% Off Your First Month with CustomGPT! 🚀

Sign up for a Standard CustomGPT.ai subscription using my referral link and enjoy 100% off your first month. Plus, you'll help support my channel with a 15% commission at no extra cost to you!

If you like this stuff, as always, show the love through comments, likes, favorites, subscriptions, etc.

Thousands of free videos at

If you have any questions feel free to post them at

Our Website

Our games made using Cocos2d-x
------------------------------------------------------

Udemy Coupons
Here are 50% off coupons for all of our courses:

For all new courses feel free to ask for a 50% off coupon, enjoy.
Рекомендации по теме
Комментарии
Автор

THANK YOU SO MUCH I HAVE BEEM TRYING TO SETUP SDL2 WITH IMAGE FOR 3 DAYS NOW AND I COULDNT GET IT THANK U SO MUCH FOR THIS TUTORIAL i have learned alot now! :)

ProjectMarzDev
Автор

Hey, thanks a LOT. These tips about copy to x86 and x64, to prevent a ton of include directories, is absolutely amazing!

ballance_in_all_things
Автор

How do i get it to change from one image to another

Like:
If input HM_KEY_Q
Image1.unload
Image2.load

Tried this and it doesnt work

Prenz
Автор

Thanks for save my life lol.
Great job!

anderson
Автор

Nice video I was confused why it wasn't included in standard SDL thanks a lot ! : )

kataiho
Автор

Can you make a code:blocks version fo this video because its kinda hard when the person on the video is using visual studio which I dont use

checkmeout
Автор

Hey sonar, How can you remove the terminal when you run the game window? Thanks for your work, greetings from Spain.
.

juanvaquero
Автор

can u give steps for code blocks mainly the steps to link the file SDL2_image.lib

Krishna-xitf
Автор

Are you not able to use a string type variable to store the file path to use as the argument for IMG_Load?
For example:

string iPath="src/pic1.png";
...
...
imageW = IMG_Load(iPath);
...

BlueKaiTheEnd-
Автор

I followed your great video step by step and did everything you said to do, but i still have problemes with sdl and sdl_image not beeing recognized neither with visual studio, nor with mingw. i did put both DLL files inside the project folder and in the DEV folder. i should mention that i'm using them in a C project not cpp, you have any ideas for me ? because i'm getting frustrated from it. thx in advance

ahmedrahmouni
Автор

Keeps telling me that SDL2_image.dll was not found. Followed the same copy paste method as you did and did linker input, just gives me that error

thebarnold
Автор

Dude, where are the following videos?? lmao I'm try to figure how to draw the image at an specific point of the screen... Perhaps i'm a little bit dumb, but I just don't know how to search things in SDL documantation... =S

marcelinoborges
Автор

Hey, where are the other videos in this tutorial series?

lukaszm
Автор

Im working in VS code, and im getting an error in the if and imageSurface

please help

notchippy
Автор

is there tutorial of setting sdl_image with VScode?

DoctorAjan
Автор

How can i Clone a Surface ?

for (int i=0; i <10; i++) pos.x +10
SDL_Surface(pic, NULL, screenSurcafe, &pos);

won't work

patty
Автор

hey, Why dont u try using oCam? I too once used OBS until a friend of mine showed me oCam. Its so smooth and simple. UI in OBS kinda suck Imo.

gearcode
Автор

Hello!.. I'm a little confused on why do you need to initialize sdl_image in this way:
if ( !(IMG_INIT(...) ) ){}
Up until now I've been initializing, say, SDL subsystems without any parentheses around SDL_INIT for example. So why does IMG_INIT needs to have parentheses around it inside the if statement and SDL_INIT doesn't?
Also, I watched another video on SDL_image and in that video the guy said that the library didn't need to be initialized and it actually still works if you don't initialize it. However, I want to know if something could go wrong if I don't do it.

Thank you!

Hypersystemoff
Автор

are you going to continue to work on this series?

MrSaintRai
Автор

It sounds like you are forcing an accent

millionre
join shbcf.ru