Xput

From Bennu Wiki
Jump to: navigation, search


Definition

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

Draws (blits) a graphic onto the background.

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

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.

Returns

INT : true

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.

Errors

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


Mod_screen
Globals None
Imported:
DumptypeFadingFpsFrametimeFullscreenGraphmodeM7RestoretypeScalemodeScaleresolutionScaleresolutionaspectratioScaleresolutionorientation
Constants None
Imported:
BACKGROUNDBABLENDBALPHABHMIRRORBNOCOLORKEYBSBLENDBTRANSLUCENTBVMIRRORCOMPLETEDUMPCOMPLETERESTORECSCREENDOUBLEBUFFERHWSURFACEM1024X768M1280X1024M320X200M320X240M320X400M360X240M376X282M400X300M512X384M640X400M640X480M800X600MODE16BITSMODE16BPPMODE2XSCALEMODE8BITSMODE8BPPMODEDOUBLEBUFFERMODEFRAMELESSMODEFULLSCREENMODEHARDWAREMODEMODALMODEWAITVSYNCMODEWINDOWNORESTOREPARTIALDUMPPARTIALRESTORESCALEHQ2XSCALENOFILTERSCALENONESCALENORMAL2XSCALESCALE2XSCALESCANLINE2XSCREEN
Locals None
Imported:
AngleCnumberCtypeSpecial:Badtitle/NS108:FileFlagsHeightRegionResolutionSizeSizexSizeyXXgraphYZ
Functions Put()Regiondefine()Regionout()Screenclear()Screenget()Screenput()Xput()