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 20:09, 25 February 2008 (edit)
85.144.194.29 (Talk)
(Note about clear_screen() vs map_clear().)
← Previous diff
Revision as of 09:02, 16 April 2008 (edit) (undo)
87.127.178.49 (Talk)

Next diff →
Line 12: Line 12:
== Notes == == Notes ==
'''clear_screen'''() is recommended over using [[map_clear]]() to clear the screen background as it is a little bit faster. '''clear_screen'''() is recommended over using [[map_clear]]() to clear the screen background as it is a little bit faster.
 +
 +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 09:02, 16 April 2008


Contents

Definition

INT clear_screen ( )

Clears the background of the screen.

Returns

INT : true

Notes

clear_screen() is recommended over using map_clear() to clear the screen background as it is a little bit faster.

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

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


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