Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Windows 8 support  (Read 6643 times)

0 Members and 1 Guest are viewing this topic.

Meteorhead

  • Newbie
  • *
  • Posts: 22
    • View Profile
Windows 8 support
« on: May 04, 2012, 11:41:04 am »
Hi!

I know this is yet another request that is less pressing than some current issues, however:

- Could the CMake scripts be made Win8-ready? I have tried to build SFML under Win8 Consumer Preview with VS2011 (first with NMake), but the scripts fail to find many files. It was strage, that gl.h doesn't ship with the dev SDK of Win8, neither does it come with VS2011.

- Creating a new WinRT variant of the classes I believe would take a HUGE effort, but if people would find it useful, put a "+1" here.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Windows 8 support
« Reply #1 on: May 04, 2012, 11:58:38 am »
Hi

Quote
Could the CMake scripts be made Win8-ready?
I have no idea what has to be done, but if it's just your environment which is incomplete, there's nothing much that I can do.

Quote
Creating a new WinRT variant of the classes I believe would take a HUGE effort, but if people would find it useful, put a "+1" here.
What would the benefit of creating such a variant? (this is a real question, I have no idea what it involves)
Laurent Gomila - SFML developer

Meteorhead

  • Newbie
  • *
  • Posts: 22
    • View Profile
Re: Windows 8 support
« Reply #2 on: May 04, 2012, 01:40:19 pm »
Win 8 uses two runtime APIs, the regular WinAPI, and a newer WinRT. As it is known, Win 8 starts along a new path with it's Metro UI, designed mainly for portable (touchscreen) devices, which is very frustrating for some desktop users. Win 8 also provides a conventional desktop beside the new Metro UI.

However (!) an application written in WinAPI cannot appear on the Metro "desktop", while WinRT applications will not function as window applications on the conventional desktop. That is because Metro does not have windows the way we are used to them.

WinRT applications can run hidden (services mostly), run as a tile on the Metro UI, run in reduced mode (hardcoded 25% width of the screen), large mode (the remaining 75% of the screen, if another app is shown in reduced), and fullscreen mode. These are the only types of "windows" WinRT applications are allowed to have. This naturally incorporates a somewhat different "windowing" API incorporated into WinRT.

Microsoft does not hide the fact that Win 8 is a transiitional OS, and they intend to remove WinAPI and the old dekstop from Win 9. Win 8 only keeps this duality to give the developers some time to rewrite their apps to WinRT.

Thus a windowing system like SFML could provide functions through sf::Window, whether the application is forced (or put) into any of these modes and redraw the contents accordingly.

Recently I had to reinstall my computer, and I gave the Consumer Preview a try, and it really convinced me that this will be a good thing. VS2011 along with Microsoft Blend is a REALLY AWESOME IDE. Metro UI is practically based on HTML5, and therefore all application GUIs must be created in HTML5. Blend is a WYSIWYG HTML5 editor of Microsoft, and now it is integrated into VS2011, meaning one can import/export/transport Blend and VS2011 projects into one another. One can create a GUI, export it to VS2011 and get a bunch of handles to buttons, scrollbars or whatever that only need to be filled with C++ code, or just the other way around.

The only reason I uninstalled Win8 and reverted to Win7, was because I couldn't compile SFML, not even with 1 hour of messing, and my diploma thesis is more important, which is built on top of SFML. Once I hand it in, I might mess with it again.

Anyhow, SFML could provide a simple wrapping Metro "windows" for those who do not feel up to the task of learning a new runtime API.
« Last Edit: May 04, 2012, 01:42:44 pm by Meteorhead »

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Windows 8 support
« Reply #3 on: May 04, 2012, 04:18:06 pm »
Thanks for the detailed explanation :)

It is interesting, but as you probably understood it won't be a top priority before a long time. However you can create a task in the issue tracker, so that it is not forgotten.
Laurent Gomila - SFML developer

Golddiggerth

  • Newbie
  • *
  • Posts: 8
    • View Profile
    • Email
Re: Windows 8 support
« Reply #4 on: December 22, 2012, 07:53:16 pm »
Hello i have windows 8 and i got a problem with this.

http://www.uploadscreenshot.com/image/1774678/8380512

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10846
    • View Profile
    • development blog
    • Email
Re: Windows 8 support
« Reply #5 on: December 22, 2012, 08:13:49 pm »
Hello i have windows 8 and i got a problem with this.

http://www.uploadscreenshot.com/image/1774678/8380512
Please open a new thread for your own questions!
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

 

anything