DirectX 9 Fullscreen and in c# How is it done!?!?
I am looking for the SAME exact thing! ARGH...It is starting to tick me off...
I need to know how to go fullscreen with DirectX.Direct3D not DirectDraw in DirectX9 and C#...
<- My Site ->
"Discipline is my sword, faith is my shield
do not dive into uncertainty, and you may live to reap the rewards" - (Unreal Championship)
[edited by - Krisc on April 4, 2004 12:11:49 PM]
I need to know how to go fullscreen with DirectX.Direct3D not DirectDraw in DirectX9 and C#...
<- My Site ->
"Discipline is my sword, faith is my shield
do not dive into uncertainty, and you may live to reap the rewards" - (Unreal Championship)
[edited by - Krisc on April 4, 2004 12:11:49 PM]
If you are still stuck check out http://www.DirectX4VB.com In the DirectX9 section, download the .zip, it has C#, C++ and VB samples. It also contains a .PDF explaining it all. This is for Direct3D...
<- My Site ->
"Discipline is my sword, faith is my shield
do not dive into uncertainty, and you may live to reap the rewards" - (Unreal Championship)
<- My Site ->
"Discipline is my sword, faith is my shield
do not dive into uncertainty, and you may live to reap the rewards" - (Unreal Championship)
Hi, I''ve found that a few parameters MUST be set in order to get a working fullscreen DX-application.
PresentParameters dxParams = new PresentParameters();
AdapterInformation AdapterInfo = Manager.Adapters[0];
dxParams.Windowed = false;
dxParams.BackBufferWidth = AdapterInfo.CurrentDisplayMode.Width;
dxParams.BackBufferHeight = AdapterInfo.CurrentDisplayMode.Height;
dxParams.BackBufferFormat = AdapterInfo.CurrentDisplayMode.Format;
dxParams.SwapEffect = SwapEffect.Discard;
And create your device...
device = new Device(0, DeviceType.Hardware, renderWnd, CreateFlags.SoftwareVertexProcessing, dxParams );
good luck!
PresentParameters dxParams = new PresentParameters();
AdapterInformation AdapterInfo = Manager.Adapters[0];
dxParams.Windowed = false;
dxParams.BackBufferWidth = AdapterInfo.CurrentDisplayMode.Width;
dxParams.BackBufferHeight = AdapterInfo.CurrentDisplayMode.Height;
dxParams.BackBufferFormat = AdapterInfo.CurrentDisplayMode.Format;
dxParams.SwapEffect = SwapEffect.Discard;
And create your device...
device = new Device(0, DeviceType.Hardware, renderWnd, CreateFlags.SoftwareVertexProcessing, dxParams );
good luck!
This is how I do it :
PresentParameters presp = new PresentParameters();
presp.PresentFlag = PresentFlag.None;
presp.SwapEffect = SwapEffect.Discard;
presp.Windowed = false;
presp.BackBufferCount = 1;
presp.BackBufferWidth = this.Size.Width;
presp.BackBufferHeight = this.Size.Height;
presp.BackBufferFormat = Format.A8R8G8B8;
presp.FullScreenRefreshRateInHz = 85;
Device device = new Device(0, DeviceType.Hardware ,this, CreateFlags.SoftwareVertexProcessing, presp);
That's it ;-)
Hope it helped!
[edited by - tecknoize on April 4, 2004 2:48:40 PM]
[edited by - tecknoize on April 4, 2004 2:49:07 PM]
PresentParameters presp = new PresentParameters();
presp.PresentFlag = PresentFlag.None;
presp.SwapEffect = SwapEffect.Discard;
presp.Windowed = false;
presp.BackBufferCount = 1;
presp.BackBufferWidth = this.Size.Width;
presp.BackBufferHeight = this.Size.Height;
presp.BackBufferFormat = Format.A8R8G8B8;
presp.FullScreenRefreshRateInHz = 85;
Device device = new Device(0, DeviceType.Hardware ,this, CreateFlags.SoftwareVertexProcessing, presp);
That's it ;-)
Hope it helped!
[edited by - tecknoize on April 4, 2004 2:48:40 PM]
[edited by - tecknoize on April 4, 2004 2:49:07 PM]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement