PicoVGA  1.0-cmake
VGA/TV display on Raspberry Pico
sLayer Struct Reference

Layer screen descriptor (on change update SLAYER_* in define.h) More...

#include <vga_layer.h>

Data Fields

const u8 * img
 Pointer to image in current layer format, or sprite list.
 
const void * par
 Additional parameter (RLE index table, integer transformation matrix)
 
u32 init
 Init word sent on start of scanline (start X coordinate)
 
u32 keycol
 Key color.
 
u16 trans
 Trans count.
 
s16 x
 Start X coordinate.
 
s16 y
 Start Y coordinate.
 
u16 w
 Width in pixels.
 
u16 h
 Height.
 
u16 wb
 Image width in bytes (pitch of lines)
 
u8 mode
 Layer mode.
 
s8 horiz
 Horizon of perspective projection/4 (only with LAYERMODE_PERSP* modes, 0=no perspecitve, <0 ceilling)
 
u8 xbits
 Number of bits of width of source image (only with LAYERMODE_PERSP* modes)
 
u8 ybits
 Number of bits of height of source image (only with LAYERMODE_PERSP* modes)
 
u16 spritenum
 Number of sprites.
 
Bool on
 Layer is ON.
 
u8 cpp
 Current clock pulses per pixel (used to calculate X coordinate)
 

Detailed Description

Layer screen descriptor (on change update SLAYER_* in define.h)


The documentation for this struct was generated from the following file: