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
Current revision (18:05, 16 April 2008) (edit) (undo)
Sandman (Talk | contribs)
m (Notes)
 
(One intermediate revision not shown.)
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 ==

Current revision


Contents

[edit] Definition

INT clear_screen ( )

Clears the background of the screen.

[edit] Returns

INT : true

[edit] 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.

[edit] 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