- This wiki is out of date, use the continuation of this wiki instead
Put screen
From FenixWiki
(Difference between revisions)
Revision as of 01:05, 25 August 2008 (edit) Zigo (Talk | contribs) (New page: Category:functions Category:screen ==Definition== '''INT''' put_screen ( <'''INT''' fileID> , <'''INT''' graphID> ) Draws (blits) a graph onto the background. For more a...) ← Previous diff |
Current revision (14:43, 28 August 2008) (edit) (undo) Sandman (Talk | contribs) |
||
(2 intermediate revisions not shown.) | |||
Line 5: | Line 5: | ||
'''INT''' put_screen ( <'''INT''' fileID> , <'''INT''' graphID> ) | '''INT''' put_screen ( <'''INT''' fileID> , <'''INT''' graphID> ) | ||
- | + | Clears and draws ([[blit]]s) a [[graph]] onto the [[background]] in the center. | |
For more advanced blitting, see: | For more advanced blitting, see: | ||
Line 19: | Line 19: | ||
== Returns == | == Returns == | ||
- | '''INT''' | + | '''INT''' |
+ | {| | ||
+ | | 0 || - Invalid map. | ||
+ | |- | ||
+ | | 1 || - Success. | ||
+ | |} | ||
== Notes == | == Notes == | ||
+ | The center of the specified graph influences its placement. | ||
+ | The following codes are equivalent: | ||
+ | <pre> | ||
+ | put_screen(f,g); | ||
+ | </pre> | ||
+ | <pre> | ||
+ | clear_screen(); | ||
+ | put(f,g,graphic_info(0,BACKGROUND,G_WIDTH)/2,graphic_info(0,BACKGROUND,G_HEIGHT)/2); | ||
+ | </pre> | ||
+ | See [[clear_screen]](), [[put]]() and [[graphic_info]](). | ||
== Errors == | == Errors == | ||
- | + | {| | |
+ | | Invalid map || - The specified map is invalid. | ||
+ | |- | ||
+ | | Unsupported color depth || - The origin graph's color depth is greater than the destination graph's. | ||
+ | |} | ||
{{Funcbox | {{Funcbox | ||
| category = Screen | | category = Screen | ||
}} | }} |
Current revision
Contents |
[edit] Definition
INT put_screen ( <INT fileID> , <INT graphID> )
Clears and draws (blits) a graph onto the background in the center.
For more advanced blitting, see:
[edit] Parameters
INT fileID | - The file that holds the graph. |
INT graphID | - The graph to draw with. |
[edit] Returns
INT
0 | - Invalid map. |
1 | - Success. |
[edit] Notes
The center of the specified graph influences its placement.
The following codes are equivalent:
put_screen(f,g);
clear_screen(); put(f,g,graphic_info(0,BACKGROUND,G_WIDTH)/2,graphic_info(0,BACKGROUND,G_HEIGHT)/2);
See clear_screen(), put() and graphic_info().
[edit] Errors
Invalid map | - The specified map is invalid. |
Unsupported color depth | - The origin graph's color depth is greater than the destination graph's. |
Screen Functions | |
• Clear_screen() • Get_screen() • Put() • Put_screen() • Xput() • |