C #: Direct3D in the control, and full-screen mode on the secondary monitor - what's the best way?

I am working on a C # application that should use Direct3D in a window-shaped control, AND (at the same time) full-screen mode on an additional monitor.

Basically, I want a Windows Forms application on a single screen with a user interface for managing graphics, and I would like to show a preview of the graphics in a small control and a full-screen full-screen full-screen graphic screen on an additional monitor.

What is the best way to approach this?

(For example, I know that XNA can appear in a Windows Forms control, but is it possible to add a full-screen window on another monitor?)

+3
source share
3 answers

AFAIK the only way to do this is to create 2 full Direct3DDevices. You create it as a full-screen mode on monitor 2, and then create another as a regular window device. This should do what you want. Be careful, however, that you cannot exchange resources between two devices ~ (they will need to be created on each), and this performance will be worse than having two complete switching circuits on one device.

+1
source

I know what you said Windows Forms, but I still suggest you use WPF. The advantage is that you can use the same technology for both windows.

WPF - Windows. .

, WPF directx. 3D-, , , :

http://www.codegod.de/webappcodegod/render-3ds-3d-models-with-wpf-and-xaml-AID433.aspx

http://www.wpftutorial.net/IntroductionTo3D.html

+1

( ), , , . , , - . ( )

0

Source: https://habr.com/ru/post/1735342/


All Articles