Jump to content
  • Advertisement


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


Can't get fullscreen to work

This topic is 5741 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Does anyone see where I''m going wrong with this? I''m using VB.Net with DirectX9 (Direct3D). I can get windowed to work no prob, but not fullscreen. This is a section of my D3D class I''m using for a game.
    Private theDevice As Device
    Private presentParams As PresentParameters

    Public Function Initialize(ByVal window As Form) As Boolean

        Dim presentparams As New PresentParameters()
        presentparams.Windowed = False
        presentparams.SwapEffect = SwapEffect.Copy
        presentparams.BackBufferCount = 1
        presentparams.BackBufferFormat = Format.X8B8G8R8
        presentparams.BackBufferWidth = 800
        presentparams.BackBufferHeight = 600
        presentparams.PresentationInterval = PresentInterval.Immediate

        theDevice = New Device(0, DeviceType.Hardware, window, CreateFlags.SoftwareVertexProcessing, presentparams)

        Return True
    End Function

Share this post

Link to post
Share on other sites
This is just my personal idea. But I would just say screw Visual Basic and go to visual C# or C++. They''re much more powerful and flexible if you ask me. Yea the code is a little more comlicated
but hey, that''s life.

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!