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

Author Topic: DirectX within window  (Read 1474 times)

0 Members and 1 Guest are viewing this topic.

jamesmintram

  • Newbie
  • *
  • Posts: 2
    • View Profile
DirectX within window
« on: August 03, 2009, 07:07:39 pm »
Hi I was wondering if it was possible to use directx within a window created using SFML.

Basically I want to provide an OpenGL and a DirectX renderer for a game I am writing and I only want SFML to handle all of the Win32 stuff such as window creation, input and event handling.


Is that possible?

If so what kinda stuff would I need to do to accomplish this?

Many thanks,

James Mintram

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
DirectX within window
« Reply #1 on: August 03, 2009, 07:44:50 pm »
SFML will always create an OpenGL context associated to their windows; I don't know if it mixes well with DirectX (I think it does).

However you'll need to tweak SFML a little bit, to add an accessor to the internal handle of sf::Window instances.
Laurent Gomila - SFML developer

 

anything