GsBGBackground picture handler | |||||||||||||||||||
Members
ExplanationGsBG is a structure used to describe a background.A background (BG) consists of a large rectangle drawn from GsMAP data based upon a combination of small rectangles defined by GsCELL data. Every background has an associated GsBG structure. The background may be manipulated via this structure. To enter a GsBG object in an ordering table, use GsSortBg(). x, y specify the screen display position. w, h specify the BG display size in pixels, and are not dependent on cell size or map size. If the display area is larger than the map, the content of the map is repeatedly displayed (this is referred to as tiling). scrollx, scrolly specify the offset from the map display position in dots. r, g, b specify the brightness values for red, green, and blue. The allowed range is 0 to 255. 128 is the brightness of the original pattern; 255 represents a two-fold increase in brightness. map is a pointer to the start of the map data. Map data is represented by the GsMAP structure. mx, my specify the center of rotation and scaling as relative coordinates. The upper left-hand point of the BG is the point of origin. For example, if rotation is around the center of the BG, these values should be specified as w/2 and h/2, respectively. scalex, scaley specify enlargement/reduction values in the x and y directions. These values represent units of 4096 (which is equivalent to a fixed point value of 1.0). scalex and scaley can be set up to 8 times the original size. rotate specifies the amount of rotation around the Z-axis (4096 = 1°). |