vb background blitting

Started by
0 comments, last by fredjordans 22 years, 1 month ago
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
-eat me!-but i''m not a cannibal!
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
--- foobarWe push more polygons before breakfast than most people do in a day

This topic is closed to new replies.

Advertisement