Archived

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

soehrimnir

Backgound image

Recommended Posts

Hello everyone Is it necessary to blit a background image in DirectDraw? Because in my game, I only need a black background. So I actually don''t need to create a black bmp file. I tried not to blit the background image, but then my screen looked really messed up. Is there another way to make your screen look black, without using bitmaps?

Share this post


Link to post
Share on other sites
For heaven''s sake, read the docs.

use Blt().

    
DDBLTFX ddbltfx;
memset(&ddbltfx, 0, sizeof(ddbltfx));
ddblfx.dwSize = sizeof(ddbltfx);
ddbltfx.dwFillColor = 0; // black = 0

lpDDSBack->Blt(NULL, NULL, NULL, DDBLT_WAIT | DDBLT_COLORFILL, &ddbltfx);


That fills black.



Please state the nature of the debugging emergency.


sharewaregames.20m.com

Share this post


Link to post
Share on other sites
how does one clear the colour to black in dx8?
in gl its

glClearColor(0,0,0,0);
glClear( GL_COLOR_BUFFER_BIT );

ive heard so many things about dx8 , its become somuch like gl (simple to usde etc ) but have not seen facts so how do u do clear in dx8
i aint flaming (just seeing if its worth while to take a looksy into dx8 or not)


http://members.xoom.com/myBollux

Share this post


Link to post
Share on other sites
quote:
Original post by zedzeek

how does one clear the colour to black in dx8?
in gl its

glClearColor(0,0,0,0);
glClear( GL_COLOR_BUFFER_BIT );

ive heard so many things about dx8 , its become somuch like gl (simple to usde etc ) but have not seen facts so how do u do clear in dx8
i aint flaming (just seeing if its worth while to take a looksy into dx8 or not)


http://members.xoom.com/myBollux


DX8 isn''t public yet, and it is not a new version of OpenGL. It is still the good old DirectX, it still uses COM. The new D3DX is looking quite similar to OpenGL, but Direct3D will be using the left handed system for coordinates and will default to counter-clockwise backface culling. It will also most likely not support quads, and from what I know it is still DrawPrimitive based. (Filling in large structures and passing them in one function call). So it will not be OpenGL.



Please state the nature of the debugging emergency.


sharewaregames.20m.com

Share this post


Link to post
Share on other sites