This wiki is out of date, use the continuation of this wiki instead

Clear screen

From FenixWiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 09:02, 16 April 2008 (edit)
87.127.178.49 (Talk)

← Previous diff
Revision as of 18:05, 16 April 2008 (edit) (undo)
Sandman (Talk | contribs)
(map_clear(0,BACKGROUND) does the same)
Next diff →
Line 11: Line 11:
== Notes == == Notes ==
-'''clear_screen'''() is recommended over using [[map_clear]]() to clear the screen background as it is a little bit faster.+This is the same as <code>'''map_clear'''(0,[[BACKGROUND]])</code>. When the background is cleared in either way, Fenix knows the background is empty and will take advantage of this knowledge.
- +
-It is important to use this function instead of other possibilities (like using MAP_CLEAR) as Fenix will then know that there is no background left and will use a faster version of the routine that begins to write frames.+
== Errors == == Errors ==

Revision as of 18:05, 16 April 2008


Contents

Definition

INT clear_screen ( )

Clears the background of the screen.

Returns

INT : true

Notes

This is the same as map_clear(0,BACKGROUND). When the background is cleared in either way, Fenix knows the background is empty and will take advantage of this knowledge.

Errors

Unsupported color depth - The specified graph has a not supported color depth.


Screen Functions
Clear_screen() • Get_screen() • Put() • Put_screen() • Xput() •
Personal tools