Jump to content
  • Advertisement
Sign in to follow this  
xmutantx

newbie question

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

Hi, I am new to the directx. I am working on a simple directx app. I see that i can do the page flipping at fullscreen mode directly, but in windowed mode i can to this by blitting. Is this corect? I mean can i make the pageflipping without blt functions by just calling the flip function. What are the best books and best sites for learning directx fundamentals... Thank you...

Share this post


Link to post
Share on other sites
Advertisement
It sounds from your description that you're using DirectDraw (and/or Direct3D from DirectX 7 or earlier).


1) Flip() cannot be used to present the back buffer surface to the display. The reason for this is Flip() simply swaps the back buffer and primary surface pointers around to determine which surface to display; in windowed mode, your application window usually doesn't occupy ALL of the primary surface, only a small region so causing the primary surface to flip would affect the windows for all other applications that were running.

2) That is why you must Blt() in windowed mode, so that you only affect the part of the primary surface that your application window occupies. In windowed mode, the primary surface is the size of the desktop wheras the back buffer is [usually] the size of the client area of your window.

3) With DirectX 8 and above, using Direct3D for your graphics, the same call (IDirect3DDevice*::Present()) is used for both windowed mode and fullscreen mode; DirectX 8 and DirectX 9 are *MUCH* easier to use than older versions of DirectX.

4) For resources, it depends if you want to learn about old technology such as DirectX 7 and DirectDraw or current technology such as DirectX 9. Here's a random sample of links:

http://msdn.microsoft.com/directx/directxcommunity/default.aspx
http://www.drunkenhyena.com/cgi-bin/directx.pl
http://www.mvps.org/directx
http://www.geocities.com/SiliconValley/Way/3390/

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
thank you

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!