Files
BlitzNext/_release/help/commands/2d_commands/EndGraphics.htm
T

60 lines
1.3 KiB
HTML
Raw Normal View History

2014-12-08 12:43:20 +13:00
<html>
<head>
<title>Blitz3D Docs</title>
<link rel=stylesheet href=../css/commands.css type=text/css>
</head>
<body>
<h1>EndGraphics</h1>
<h1>Parameters</h1>
<table>
<tr>
<td>
None.
</td>
</tr>
</table>
<h1>Description</h1>
<table>
<tr>
<td>
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.
<br />
2014-02-26 16:08:39 +13:00
<br />
2014-12-08 12:43:20 +13:00
One possible use for EndGraphics is to switch between full-screen and windowed states.
<br>
<br>
See also: <a class=small href=Graphics.htm>Graphics</a>.
</td>
</tr>
</table>
<h1><a href=../2d_examples/EndGraphics.bb>Example</a></h1>
<table>
<tr>
<td>
Graphics 640,480,0,1
<br />
SetBuffer BackBuffer()
<br />
<br />
Text 0,0,"EndGraphics Example Stage 1/2"
<br />
Text 0,20,"Currently in Graphics mode"
<br />
Text 0,40,"Press a key to deactive Graphics mode with EndGraphics command"
<br />
<br />
Flip
<br />
<br />
WaitKey()
2014-02-26 16:08:39 +13:00
<br />
2014-12-08 12:43:20 +13:00
2014-02-26 16:08:39 +13:00
<br />
2014-12-08 12:43:20 +13:00
EndGraphics
2014-02-26 16:08:39 +13:00
<br />