SFML community forums

Help => Graphics => Topic started by: darksan on May 06, 2012, 11:09:07 pm

Title: Getting the bitmap of a view
Post by: darksan on May 06, 2012, 11:09:07 pm
Hello guys!

I am currently trying to convert an existing game made using the sfml to the new metro application format of window 8, but the thing is not easy since there is no HWND handle for windows in metro apps, so I can't use the same technique that allow to use the sfml with a win32 thing, in fact the only way I found is to draw it on a D2D1 surface (direct2d) as a bitmap, but I first need to get it from a view... The renderWindow have a Capture methode wich could work, but I don't want to open a window...

So, if anyone know how I am supposed to achieve this, I am listening!

Beside, adding a metro support to the sfml could be realy gr8, since for now only directx is usable, wich is not gr8 for quick game dev...

Thank you
Title: Re: Getting the bitmap of a view
Post by: Laurent on May 07, 2012, 08:16:21 am
With SFML 2 you can draw to an offscreen texture.

Support for metro (WinRT) may be added in the future, but before it happens there are several tasks to complete with a higher priority.
Title: Re: Getting the bitmap of a view
Post by: darksan on May 07, 2012, 07:30:38 pm
Okay thanks! =)