Top "Sdl-2" questions

For questions and issues regarding Simple DirectMedia Layer 2 (SDL2).

SDL2: LNK1561: entry point must be defined

I want to compile this code: #include <SDL.h> int main(int argc, char* argv[]) { return 0; } But it …

c++ c visual-c++ sdl sdl-2
Difference between surface and texture (SDL / general)

Can anyone explain to me in simple words what is the difference between texture and surface? I saw it used …

c graphics sdl sdl-2
Are there good tutorials for SDL2.0 for C programming? (not C++)

I'm a student learning C programming (at the moment). In the subject I was given, I have to create some …

c sdl-2
HOWTO draw circles, arcs and vector graphics in SDL?

(I'm using SDL2) SDL is a relatively small library for "low level access to audio, keyboard, mouse, joystick, and graphics …

c sdl sdl-2 vector-graphics
How to render fonts and text with SDL2 efficiently?

Saw this post here about using SDL_ttf to render text in a game. However that approach requires calling SDL_…

fonts sdl sdl-2 true-type-fonts sdl-ttf
Resize SDL2 window?

Just made the jump from SDL1.2 to SDL2, been converting my code but couldn't figure out how to resize the …

c++ window sdl sdl-2
What is the point of an SDL2 Texture?

I'm kind of stuck on the logic behind an SDL2 texture. To me, they are pointless since you cannot draw …

c++ textures sdl renderer sdl-2
How to get screen size in SDL

I'm trying to make a program using SDL and C++. How can I get screen's width and height in pixels …

c++ sdl-2
SDL_Image IMG_Load fails on png with: "Failed loading libpng16-16.dll:"

Whenever I try to load a PNG using SDL_Image's IMG_Load function it gives the error Failed loading libpng16…

windows load png sdl-2 sdl-image
Change background of SDL2 window?

I can create a SDL2 window but I don't know how to change background color of this window. My code: #…

c++ sdl sdl-2