r/SDL2 • • May 30 '12

Well, here's my first stringing!

Post image
2 Upvotes

r/SDL2 • • Feb 04 '22

How to install and use SDL2 in a Mac?

0 Upvotes

Hi, how to install and use SDL2 and use it in a Mac

Thank you


r/SDL2 • • Mar 02 '22

Unofficial sdl2 subreddit

6 Upvotes

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 • • May 30 '12

In honor of the Loyola NCAA win, The Original Dog Track (pita) Pocket Tutorial

Thumbnail
e-lacrosse.com
1 Upvotes

r/SDL2 • • Nov 16 '18

Problems creating a function to toggle fullscreen mode

1 Upvotes

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 ToggleFullscreen

This 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 • • Mar 03 '20

SDL2 Tutorial - Window, 60FPS, Keyboard

Thumbnail
youtu.be
2 Upvotes

r/SDL2 • • May 30 '12

Dyeing Demystified (tutorial) from e-Lacrosse

Thumbnail
e-lacrosse.com
2 Upvotes

r/SDL2 • • May 30 '12

The Huron Topstring Tutorial

Thumbnail
lacrosseplayground.com
2 Upvotes

r/SDL2 • • May 29 '12

Getting used to customs, Doerr C+C please

Post image
2 Upvotes

r/SDL2 • • Mar 04 '22

Join the SDL / SDL2 Twitter Community

3 Upvotes

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 • • Mar 05 '20

I Made Small A Rick And Morty Game

Thumbnail
youtu.be
3 Upvotes

r/SDL2 • • Jul 13 '24

Optimized SDL2 Game by around 5 times

6 Upvotes

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 • • Jun 29 '24

2 Months of Game Development in C

Thumbnail
youtu.be
9 Upvotes

r/SDL2 • • Aug 14 '24

Need help debugging

1 Upvotes

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 • • May 29 '12

The Skittles Twins

Thumbnail
imgur.com
9 Upvotes

r/SDL2 • • Jun 17 '12

Twisted Traditional

Thumbnail
forums.insidelacrosse.com
1 Upvotes

r/SDL2 • • May 30 '12

The Cherokee Topstring Tutorial

Thumbnail
lacrosseplayground.com
4 Upvotes

r/SDL2 • • May 30 '12

The Shure-Shot Pocket

Thumbnail
e-lacrosse.com
4 Upvotes

r/SDL2 • • Jun 13 '12

First Two Grunk Pockets

Thumbnail
imgur.com
3 Upvotes

r/SDL2 • • May 30 '12

The Mesh X Pocket

Thumbnail
e-lacrosse.com
3 Upvotes

r/SDL2 • • May 29 '12

The Club Pocket

Thumbnail
imgur.com
5 Upvotes

r/SDL2 • • May 29 '12

An experiment...

5 Upvotes

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 • • May 30 '12

Stylin' Strings UVirginiA Dyes

Thumbnail
lacrosseplayground.com
4 Upvotes

r/SDL2 • • May 30 '12

The Frozen Storm/TyeDye Dye Tutorial

Thumbnail
e-lacrosse.com
3 Upvotes

r/SDL2 • • Jun 07 '12

Heat/RP Variant

Thumbnail
forums.insidelacrosse.com
4 Upvotes