Jump to content
  • Advertisement
Sign in to follow this  
NeXuS15

[.net] Transparent Window?

This topic is 4254 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

I am writing a basic program to render a simple sprite to the screen with a blue background. The program compiled fine, but when it ran a window came up, the problem was that the window was completely transparent in that I could see the border of it fine, but the inside was showing exactly what was behind it be it the Visual Studio C# screen or my desktop, whatever. Any help on this matter would be greatly appreciated because it's been happening since I tried to render a blank window. Thanks in advance for any help you can offer.

Share this post


Link to post
Share on other sites
Advertisement
If I'm understanding you correctly you don't want the border? If that's the case, just change the FormBorderstyle property of the window to None. If that's not the case, please explain what the problem is.

Share this post


Link to post
Share on other sites
i bet the window content does not change if you move the window. what is displayed depends on what was shown in the window's area right before the window itself had shown up

if that is the case, you need to switch the backbuffers.
for example, if you were using OpenGL you have to call glSwapBuffers() after each frame rendered

Share this post


Link to post
Share on other sites
Quote:
Original post by Tonni
i bet the window content does not change if you move the window. what is displayed depends on what was shown in the window's area right before the window itself had shown up

if that is the case, you need to switch the backbuffers.
for example, if you were using OpenGL you have to call glSwapBuffers() after each frame rendered


Yes, that's what's happening, but I'm using MDX 1.1, so what function do I need to call?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!