dxEndGraphics()

Parameters

None.

Description

Returns a program to a non-Graphics mode state. This is the same state that a program starts up in, before the Graphics command is used.

One possible use for dxEndGraphics is to switch between full-screen and windowed states.

See also: Graphics.

Example

Graphics 640,480,0,1
dxSetBuffer dxBackBuffer()

dxText 0,0,"dxEndGraphics Example Stage 1/2"
dxText 0,20,"Currently in Graphics mode"
dxText 0,40,"Press a key to deactive Graphics mode with dxEndGraphics command"

dxFlip

dxWaitKey()

dxEndGraphics

dxPrint "dxEndGraphics Example Stage 2/2"
dxPrint "Currently in non-Graphics mode"

dxWaitKey()

End

Index