Click to See Complete Forum and Search --> : draw image in c++


erickd00sway
December 9th, 2005, 10:13 AM
Hi, i have the following couple of lines of code to draw a rectangle on the screen on my game, I am really new to this. I can see how I can change the image into another basic shape. But I want to draw something a little more complex than a basic shape, does anyone know how to do this, or where I could find a tutorial or something.

D3DRECT Rect = { GridTopLeftX+8 + row*20, GridTopLeftY+8 + column*20,GridTopLeftX+14 + row*20, GridTopLeftY+14 + column*20};
Rectangle32Fast( &Rect, D3DCOLOR_XRGB( 0, 0, 0 ), g_pDevice );

Thanks

Erick

Mike Harnad
December 9th, 2005, 01:59 PM
Since you're using DirectX, have you taken a look at the Samples Browser?

erickd00sway
December 10th, 2005, 07:10 AM
no...?

Mitsukai
December 10th, 2005, 03:59 PM
no...?
to bad

erickd00sway
December 11th, 2005, 09:35 AM
can you tell me what that is?

please

Mitsukai
December 11th, 2005, 11:41 AM
when you dl dx sdk you can install the samples and sample browser look in the DX menu.