None. |
This is a value usually used with dxSetBuffer to denote the secondary non-visible drawing buffer called the Back Buffer. In MOST gaming situations, you will want to be using the dxBackBuffer() for drawing operations then using dxFlip to bring that buffer to the dxFrontBuffer() where it can be seen. There are other uses for the command, but this is the biggie. See dxSetBuffer for more info, and check out the example. Once again - if you set drawing operations to the dxBackBuffer() you will NOT see any of them until you call dxFlip. |
; dxFlip/dxBackBuffer()/dxRect Example ; Set Graphics Mode Graphics 640,480 ; Go double buffering dxSetBuffer dxBackBuffer() ; Setup initial locations for the box box_x = -20 ; negative so it will start OFF screen box_y = 100 While Not dxKeyHit(1) dxCls ; Always clear screen first dxRect box_x,box_y,20,20,1 ; Draw the box in the current x,y location dxFlip ; dxFlip it into view box_x = box_x + 1 ; Move the box over one pixel If box_x = 640 Then box_x=-20 ; If it leaves the Right edge, reset its x location Wend |