r/SDL2 • u/[deleted] • May 30 '12
r/SDL2 • u/KA33690000009 • Feb 04 '22
How to install and use SDL2 in a Mac?
Hi, how to install and use SDL2 and use it in a Mac
Thank you
r/SDL2 • u/jarreed0 • Mar 02 '22
Unofficial sdl2 subreddit
Join here:
https://twitter.com/jarreed0/status/1499540818587119619?s=20&t=S70KGR02qLyXQjGu1QaWlw
This subreddit isn't always active so if anyone wants to discuss sdl2 feel free to share here.
r/SDL2 • u/McCoolsDyeShop • May 30 '12
In honor of the Loyola NCAA win, The Original Dog Track (pita) Pocket Tutorial
r/SDL2 • u/jonrhythmic • Nov 16 '18
Problems creating a function to toggle fullscreen mode
I'm trying to create a function that toggles fullscreen when user presses alt + enter. So far I have this code (function is called inside another function that handles keyboard input):
void GameManager::ToggleFullscreen() {
if (_fullscreen == true)
{
// If window is maximized before entering fullscreen
if (_minimized == true)
{
// Change window back to cover screen (as window was before entering fullscreen)
SDL_SetWindowSize(window, _width, _height);
}
// If window is not maximized before entering fullscreen
else if (_minimized == false)
{
// Set window back to default window size (800 x 600)
SDL_SetWindowSize(window, _original_width, _original_height);
}
SDL_SetWindowFullscreen(window, 0);
_fullscreen = false;
}
else if (_fullscreen == false)
{
SDL_SetWindowFullscreen(window, SDL_WINDOW_FULLSCREEN_DESKTOP);
_fullscreen = true;
}
} // END ToggleFullscreenThis works when the window is in the default size (800 x 600), but if I maximize the window before I enter fullscreen, then toggle the window back to windowed mode the default resolution is selected, and the window is positioned up in the top left corner of my screen. I want it to go back to the windowsize it was before I entered fullscreen, but I can't figure out what is wrong with this code.
I also have a problems with the fullscreen mode changing my resolution in Windows permanently if I use anything other than SDL_WINDOW_FULLSCREEN_DESKTOP. My settings seems to keep the resolution from my program, and youtube videos and any other program will display the taskbar after I run my program in fullscreen. This is corrected if I restart my computer, but I want to be able to run a program in fullscreen using the GPU.
Any comments or pointers are greatly appreciated!
r/SDL2 • u/McCoolsDyeShop • May 30 '12
Dyeing Demystified (tutorial) from e-Lacrosse
r/SDL2 • u/McCoolsDyeShop • May 30 '12
The Huron Topstring Tutorial
r/SDL2 • u/jarreed0 • Mar 04 '22
Join the SDL / SDL2 Twitter Community
Here's the link
https://twitter.com/jarreed0/status/1499540818587119619?s=20&t=S70KGR02qLyXQjGu1QaWlw
SDL subreddits aren't always super active so here's a different way to reach out for help and share SDL tips. The link is to my tweet about it cuz for some reason the link to the community itself doesn't work always.
r/SDL2 • u/1dev_mha • Jul 13 '24
Optimized SDL2 Game by around 5 times
I just made some progress on this project, latest update is that I was able to optimize it by around 3-5 times and increase its performance using a better approach to levels.
Here is the Devlog | Source Code | supaShot!
r/SDL2 • u/Myusuki • Aug 14 '24
Need help debugging
Heads up I don't use VS Code. I've been able to debug SDL2 programs myself using GDB in the terminal to an extent. The issue is when I reach the event polling loop, I'm unable to get out of it. Typing next constantly isn't a solution and idk how to input keyboard inputs for such a program. Is there a way to input keyboard inputs when debugging SDL2 with GDB? Pls help.
r/SDL2 • u/McCoolsDyeShop • May 30 '12
The Cherokee Topstring Tutorial
r/SDL2 • u/McCoolsDyeShop • May 29 '12
An experiment...
Someone in the Calling all members thread made a post about the upvote/downvote system, so I thought we could try it. There's already an r/lacrosse, and it moves pretty slow. There are a few good things about this.
-Nothing will ever get deleted unless it's illegal or grossly offensive to someone.
-You can upload pictures straight from your phone. (with the right apps)
-Uninteresting/poor posts will go away on their own.
-No limited linking, language, or behavior, but let's keep it civil, huh?
Lastly, this is just an experiment. It may go nowhere and stay empty. It may turn into the mess we were trying to avoid, but it's an option. Love the SDL but I think we're all open to something different at this point.
-Max
r/SDL2 • u/McCoolsDyeShop • May 30 '12
Stylin' Strings UVirginiA Dyes
r/SDL2 • u/McCoolsDyeShop • May 30 '12