[c#]how render the same scene in two different windows?
i've listened about swap chain or view ports, but i don't know how use it.
I've made a serching with google or gamedev and other but nothing.
Is here someone can light me!
- for multiple regions of *one* window, use viewports.
- for multiple windows (two or more different windows), use multiple swap chains.
From your topic it sounds like you need multiple swap chains, take a look at the following topics in the [managed] DirectX SDK documentation:
DirectX SDK ->
Introducing DirectX 9.0 ->
Direct3D Graphics ->
Getting Started with Direct3D ->
Direct3D Surfaces ->
What is a Swap Chain
DirectX SDK ->
Introducing DirectX 9.0 ->
Direct3D Graphics ->
Getting Started with Direct3D ->
Direct3D Rendering ->
Presenting a Scene ->
Multiple Views in Windowed Mode
DirectX SDK ->
How Do I ... ? ->
Handle a Device (Direct3D) ->
Create an Additional Swap Chain
- for multiple windows (two or more different windows), use multiple swap chains.
From your topic it sounds like you need multiple swap chains, take a look at the following topics in the [managed] DirectX SDK documentation:
DirectX SDK ->
Introducing DirectX 9.0 ->
Direct3D Graphics ->
Getting Started with Direct3D ->
Direct3D Surfaces ->
What is a Swap Chain
DirectX SDK ->
Introducing DirectX 9.0 ->
Direct3D Graphics ->
Getting Started with Direct3D ->
Direct3D Rendering ->
Presenting a Scene ->
Multiple Views in Windowed Mode
DirectX SDK ->
How Do I ... ? ->
Handle a Device (Direct3D) ->
Create an Additional Swap Chain
There's actually a neat special case hack you can do. D3D allows you to present to an alternate hWnd. So first present with all 0s, and then the second time, give it the hWnd of the other window. This has worked well for me in the past, with very simple double-display.
Notice that you can't change anything about the two scenes this way.
Notice that you can't change anything about the two scenes this way.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement