Screen put

From Bennu Wiki
Jump to navigation Jump to 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
Functions Put()Regiondefine()Regionout()Screenclear()Screenget()Screenput()Xput()