|
- c++ - Resize SDL2 window? - Stack Overflow
SDL_DestroyWindow(Window); Window = SDL_CreateWindow("Test", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, ScreenSizeX, ScreenSizeY, SDL_WINDOW_SHOWN); screen = SDL_GetWindowSurface(Window); Which as you can see just destroys the window and creates a new one Sloppy but it works What I want is to just resize the window, is it possible?
- SDL. h no such file or directory found when compiling
Here's a piece of my current Makefile: CFLAGS = -O2 -Wall -pedantic -std=gnu++11 `sdl-config --cflags --libs` -lSDL_mixer I have libsdl installed properly, SDL h is in usr include sdl where it be
- sdl - How to render fonts and text with SDL2 efficiently . . . - Stack . . .
31 Saw this post here about using SDL_ttf to render text in a game However that approach requires calling SDL_CreateTextureFromSurface (), along with the SDL_FreeSurface () and SDL_DestroyTexture () every single frame
- c++ - What is an SDL renderer? - Stack Overflow
I'm starting with SDL2 and having some trouble trying to understand what an SDL_Renderer is What is it? What does it do? What's the difference between SDL_Renderer, SDL_Window, SDL_Surface and
- gcc - Setting up SDL in MinGW - Stack Overflow
Generally you want to have your SDL dll in the same directory as your executable developing and you'll always want to have SDL dll in the same directory as the exe when distributing your app Now start up MinGW Developer Studio and start a new empty project Go to the project settings
- sdl - SDL2: How to properly toggle fullscreen? - Stack Overflow
I have problems deactivating fullscreen mode with my program Entering fullscreen happens correctly, but trying to go back to windowed mode doesn't work, the only effect is that the cursor gets shown
- sdl - Static-linking of SDL2 libraries - Stack Overflow
I managed to compile the SDL libraries with the guide Jonas provided, and got a libSDL2 a file At first I only added the path of libSDL2 a to "Link libraries:" -section of Code::Blocks, but I got a bunch of errors such as "SDL_Init () not declared in this scope"
|
|
|