Archived

This topic is now archived and is closed to further replies.

amig

Direct3DDevice

Recommended Posts

I want to use directx to do some graphics processing (basically want to use some vertex and pixel shaders). I dont have direct access to any windows handles etc. Can i use directx to create a device that does not have any window associated with it, and still be a able to control its display width and height. I dont intend to draw using a hwnd, but just want to pass down the RGBA pixmap from the directx render target to application framework. My main bottleneck is that can i create a DIRECT3DDEVICE9 without associating a window with it ?

Share this post


Link to post
Share on other sites
Direct3D *needs* a window handle so it can track what your process is up to (minimised, closed etc).

However you don''t necessarily need to have the window VISIBLE (depending on exactly what you''re doing) - just call CreateWindow() without the show flag and don''t call ShowWindow().

Share this post


Link to post
Share on other sites