Screen put

From Bennu Wiki
Jump to: navigation, search


Definition

INT screen_put ( <INT fileID> , <INT graphID> )

Clears and draws (blits) a graph onto the background in the center.

For more advanced blitting, see:

Also called put_screen().

Parameters

INT fileID - The file that holds the graph.
INT graphID - The graph to draw with.

Returns

INT

0 - Invalid map.
1 - Success.

Notes

The center of the specified graph influences its placement.

The following codes are equivalent:

screen_put(f,g);
screen_clear();
put(f,g,graphic_info(0,BACKGROUND,G_WIDTH)/2,graphic_info(0,BACKGROUND,G_HEIGHT)/2);

See screen_clear(), put() and map_info().

Errors

Invalid map - The specified map is invalid.
Unsupported color depth - The origin graph's color depth is greater than the destination graph'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()