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

Xput

From FenixWiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 20:28, 30 November 2007 (edit)
Sandman (Talk | contribs)
(New page: Category:functions Category:maps ==Definition== '''INT''' xput ( <'''INT''' fileID> , <'''INT''' destinationGraphID> , <'''INT''' originGraphID> , <'''INT''' x> , <'''INT''' y> , ...)
← Previous diff
Current revision (15:19, 25 February 2008) (edit) (undo)
85.144.194.29 (Talk)
(Category changed to "screen".)
 
(One intermediate revision not shown.)
Line 1: Line 1:
[[Category:functions]] [[Category:functions]]
-[[Category:maps]]+[[Category:screen]]
==Definition== ==Definition==
Line 25: Line 25:
| '''INT''' blitflags || - What [[blit flags]] to draw the graphic with. | '''INT''' blitflags || - What [[blit flags]] to draw the graphic with.
|- |-
-| '''INT''' region || - The region in which the graphic is only allowed to be drawn.+| '''INT''' regionID || - The [[regionID]] of the [[region]] in which the graphic is only allowed to be drawn.
|} |}
Line 42: Line 42:
{{Funcbox {{Funcbox
- | category = Maps+ | category = Screen
}} }}

Current revision


Contents

[edit] Definition

INT xput ( <INT fileID> , <INT destinationGraphID> , <INT originGraphID> , <INT x> , <INT y> , <INT angle> , <INT size> , <INT blitflags> , <INT region> )

Draws (blits) a graphic onto the background graphic.

If the advanced parameters aren't needed, put() can be used.

[edit] Parameters

INT fileID - The fileID of the file that holds the graphics.
INT graphID - The graphID of the graphic to draw with.
INT x - Where on the background graphic's x-axis to put the graphic.
INT y - Where on the background graphic's y-axis to put the graphic.
INT angle - What angle to draw the graphic at.
INT size - What size to draw the graphic at.
INT blitflags - What blit flags to draw the graphic with.
INT regionID - The regionID of the region in which the graphic is only allowed to be drawn.

[edit] Returns

INT : true

[edit] Notes

The x and y parameters denote where to draw the graphic, that is, where the center of the to be drawn graphic will be. Blit flags can be used to give the drawing (blitting) a special effect.

When angle is 0 and size is 100, the speed is greater, because the graph doesn't need rotating or scaling.

[edit] Errors

Unsupported color depth - The graphic's color depth is greater than the background graphic's.


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