SFML community forums

Help => Window => Topic started by: jamesmintram on August 03, 2009, 07:07:39 pm

Title: DirectX within window
Post by: jamesmintram 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
Title: DirectX within window
Post by: Laurent 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.