Home » Community » Newbie corner » How to configure for SDL2 project?  
	
		
		
			| Re: How to configure for SDL2 project? [message #57027 is a reply to message #57026] | 
			Sun, 16 May 2021 13:36    | 
		 
		
			
				
				
				  | 
					
						  
						Klugier
						 Messages: 1106 Registered: September 2012  Location: Poland, Kraków 
						
					 | 
					Senior Contributor  | 
					 | 
		 
		 
	 | 
 
	
		Hello Mirek, 
 
Here is patch that fixed SDLPure.upt template. It works fine with SDK2 on POSIX. The library deduction was taken from Synth example. 
 
Some absolute options was removed: 
- double buffering - SDL2 do it by default 
- fullscreen - up to the programmer whenever he wants to support it in application 
- pure SDL template was removed due to lack of POSIX detection. We can not determine whenver this is true 
 
#ifdef PLATFORM_POSIX
#include <SDL2/SDL.h>
#else
#include <SDL.h>
#endif
  
 
Klugier
		
	- 
	
 
	Attachment: SDLCore.upt
	 
	(Size: 1.78KB, Downloaded 265 times)
 
 
		
  U++ - one framework to rule them all.
		[Updated on: Sun, 16 May 2021 13:58] Report message to a moderator  
 |  
	| 
		
	 | 
 
 
 |  
  
 
	
	  | 
	 | 
	
		How to configure for SDL2 project?
		By:  flim on Fri, 14 May 2021 16:03  
	 | 
 
	  | 
	 | 
	
		Re: How to configure for SDL2 project?
		By:  mirek on Fri, 14 May 2021 16:15  
	 | 
 
	  | 
	 | 
	
		Re: How to configure for SDL2 project?
		By:  flim on Sat, 15 May 2021 12:50  
	 | 
 
	  | 
	 | 
	
		Re: How to configure for SDL2 project?
		By:  mirek on Sat, 15 May 2021 13:42  
	 | 
 
	  | 
	 | 
	
		Re: How to configure for SDL2 project?
		By:  flim on Sat, 15 May 2021 14:42  
	 | 
 
	  | 
	 | 
	
		Re: How to configure for SDL2 project?
		By:  mirek on Sat, 15 May 2021 20:35  
	 | 
 
	  | 
	 | 
	
		Re: How to configure for SDL2 project?
		By:  Klugier on Sun, 16 May 2021 13:36  
	 | 
 
	  | 
	 | 
	
		Re: How to configure for SDL2 project?
		By:  Klugier on Sun, 16 May 2021 13:42  
	 | 
 
	  | 
	 | 
	
		Re: How to configure for SDL2 project?
		By:  Klugier on Sun, 16 May 2021 14:04  
	 | 
 
	  | 
	 | 
	
		Re: How to configure for SDL2 project?
		By:  flim on Wed, 19 May 2021 06:01  
	 | 
 
	  | 
	 | 
	
		Re: How to configure for SDL2 project?
		By:  mirek on Wed, 19 May 2021 11:40  
	 | 
 
	  | 
	 | 
	
		Re: How to configure for SDL2 project?
		By:  flim on Wed, 19 May 2021 14:13  
	 | 
  
Goto Forum:
 
 Current Time: Tue Nov 04 09:09:28 CET 2025 
 Total time taken to generate the page: 0.14808 seconds 
 |