Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous messageGo to previous message
Klugier is currently offline  Klugier
Messages: 1076
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 129 times)


U++ - one framework to rule them all.

[Updated on: Sun, 16 May 2021 13:58]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: my TCP client/server don't work correctly
Next Topic: Question about TcpSocket::Peek() / Get()
Goto Forum:
  


Current Time: Wed May 15 00:56:40 CEST 2024

Total time taken to generate the page: 0.04427 seconds