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

Author Topic: Getting the bitmap of a view  (Read 949 times)

0 Members and 1 Guest are viewing this topic.

darksan

  • Newbie
  • *
  • Posts: 2
    • View Profile
Getting the bitmap of a view
« 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

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Getting the bitmap of a view
« Reply #1 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.
Laurent Gomila - SFML developer

darksan

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Getting the bitmap of a view
« Reply #2 on: May 07, 2012, 07:30:38 pm »
Okay thanks! =)

 

anything