Jump to content
  • Advertisement

Archived

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

fredjordans

vb background blitting

This topic is 6054 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 using Visual Basic and DirectX to create my application. I want to blit a black background to the screen so that if no other images are being blitted, the user only sees black. I have an ongoing loop, with the following code. However, the black isn't appearing. Do you know why? Or how else could I do this? Does the backbuffer have some sort of attribute that will make it black at all times? Currently, if I am not blitting an image, I can just see my VB form in the newly set resolution. Code: ----- rBack.Left = 0 rBack.Right = mScreenWidth rBack.Top = 0 rBack.Bottom = mScreenHeight ddrval = backbuffer.BltColorFill(rBack, vbBlack) 'flip the back buffer to the screen primary.Flip Nothing, DDFLIP_WAIT ----- Please help me. Edited by - fredjordans on February 24, 2002 5:08:45 PM

Share this post


Link to post
Share on other sites
Advertisement
trace out the "ddrval" you get from BltColorFill() an look it up in the SDK.


--- foobar
We push more polygons before breakfast than most people do in a day

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.

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!