I have found on vazGames site this main things about DC and GDI..Is that proper way ?
I mean it looks that for each bitmap i need to create separate DC like
bmp1dc , bmp_2dc ..etc
is that right?
vaz code :
// go full screen
ChangeDisplaySettings(&game_screen, CDS_FULLSCREEN);
// get the GDI device context
game_dc = GetDC(game_window);
// select an object (such as white brush)
SelectObject(back_dc, white_brush);
// plot a single pixel with color c
SetPixel(back_dc, xi, yi, c);
// fill rectangle (erase the back buffer)
FillRect(back_dc, &back_rect, black_brush);
// draw an ellipse (circular) to back buffer
Ellipse(back_dc, x1, y1, x2, y2);
// draw a polygon (9 points) to back buffer
Polygon(back_dc, points, 9);
// blit (bit block transfer) or copy back buffer to front buffer
BitBlt(game_dc, 0, 0, WINDOW_WIDTH, WINDOW_HEIGHT, back_dc, 0, 0, SRCCOPY);
// blit a single sprite or block of pixels (no transparency)
BitBlt(back_dc, x, y, BLOCK_SIZE, BLOCK_SIZE, bmp_dc, 0, 0, SRCCOPY);
// blit a single sprite with transparent background color (bug in Win98, only Win ME/XP work)
TransparentBlt(back_dc, Vaz.x, Vaz.y, BLOCK_SIZE, BLOCK_SIZE, bmp_dc, 0, 0, BLOCK_SIZE, BLOCK_SIZE, RGB(0,0,0));