Category : sdl

I am trying to create a graphics project in visual studio 2019 using SDL2. I managed to connect it with my visual studio using this tutorial: https://lazyfoo.net/tutorials/SDL/01_hello_SDL/windows/msvc2019/index.php I want circles, lines, rectangles etc. as my output, so need SDL_gfx for that. The problem is I cannot connect it with my project. I downloaded it from ..

Read more

I want to implement a resource loader, and conceptually, it feels like all the resources in SDL2 are the same; you need to free the resource when finished, SDL_Texture* with SDL_DestroyTexture, Mix_Music* with Mix_FreeMusic, Mix_Chunk* with Mix_FreeChunk, TTF_Font* with TTF_CloseFont. All that changes is the name of the "deleter" function, so I would like to ..

Read more

I am following a tutorial from https://www.youtube.com/watch?v=QQzAHcojEKg&list=PLhfAbcv9cehhkG7ZQK0nfIGJC_C-wSLrx and Visual Studio gives me this error: "invalid or corrupt file: cannot read at 0x368" Here are my Visual Studio Project Settings: C/C++: General: Additional Include Directories: C:My Operating SystemC++SDL2include;%(AdditionalIncludeDirectories) Linker: General: Output File: $(OutDir)$(TargetName)$(TargetExt) Linker: Input: Additional Dependencies: C:My Operating SystemC++SDL2libx64SDL2.lib;C:My Operating SystemC++SDL2libx64SDL2main.lib;SDL2.dll;%(AdditionalDependencies) Source: Windows Que..

Read more