libwwcl libwwcl
WWitch compatibility layer for the Wonderful toolchain
Loading...
Searching...
No Matches
disp.h File Reference
#include "types.h"

Go to the source code of this file.

Macros

#define SCREEN1   0
 
#define SCREEN2   1
 
#define DCM_SCR1   0x0001
 
#define DCM_SCR2   0x0002
 
#define DCM_SPR   0x0004
 
#define DCM_SPR_WIN   0x0008
 
#define DCM_SCR2_WIN_INSIDE   0x0020
 
#define DCM_SCR2_WIN_OUTSIDE   0x0030
 
#define DCM_BORDER_COLOR   0x0700
 
#define SCREEN_CHAR_WIDTH   32
 
#define SCREEN_CHAR_HEIGHT   32
 
#define SCREEN_PIXEL_WIDTH   (SCREEN_CHAR_WIDTH * 8)
 
#define SCREEN_PIXEL_HEIGHT   (SCREEN_CHAR_HEIGHT * 8)
 
#define LCD_CHAR_WIDTH   28
 
#define LCD_CHAR_HEIGHT   18
 
#define LCD_PIXEL_WIDTH   (LCD_CHAR_WIDTH * 8)
 
#define LCD_PIXEL_HEIGHT   (LCD_CHAR_HEIGHT * 8)
 
#define CFSFT_PALETTE   9
 
#define CFM_SPR_UPPER   0x2000
 
#define CFM_FLIP_H   0x4000
 
#define CFM_FLIP_V   0x8000
 
#define LCDSEG_SLEEP   0x01
 
#define LCDSEG_VERTICAL   0x02
 
#define LCDSEG_HORIZONTAL   0x04
 
#define LCDSEG_AUX1   0x08
 
#define LCDSEG_AUX2   0x10
 
#define LCDSEG_AUX3   0x20
 

Functions

void display_control (uint16_t dcm)
 
uint16_t display_status (void)
 
void font_set_monodata (uint16_t start, uint16_t count, const uint8_t __far *data)
 
void font_set_colordata (uint16_t start, uint16_t count, const uint8_t __far *data)
 
void font_get_data (uint16_t start, uint16_t count, uint8_t __far *data)
 
void font_set_color (uint16_t color)
 
uint16_t font_get_color (void)
 
void screen_set_char (uint8_t screen_id, uint8_t x, uint8_t y, uint8_t width, uint8_t height, const uint16_t __far *tiles)
 
void screen_get_char (uint8_t screen_id, uint8_t x, uint8_t y, uint8_t width, uint8_t height, uint16_t __far *tiles)
 
uint16_t screen_get_char1 (uint8_t screen_id, uint8_t x, uint8_t y)
 
void screen_fill_char (uint8_t screen_id, uint8_t x, uint8_t y, uint8_t width, uint8_t height, uint16_t tile)
 
void screen_fill_attr (uint8_t screen_id, uint8_t x, uint8_t y, uint8_t width, uint8_t height, uint16_t tile, uint16_t mask)
 
void sprite_set_range (uint16_t first, uint16_t count)
 
void sprite_set_char (uint16_t id, uint16_t tile)
 
uint16_t sprite_get_char (uint16_t id)
 
void sprite_set_location (uint16_t id, uint8_t x, uint8_t y)
 
void sprite_set_char_location (uint16_t id, uint16_t tile, uint8_t x, uint8_t y)
 
uint32_t sprite_get_char_location (uint16_t id)
 
void sprite_set_data (uint16_t start, uint16_t count, const uint8_t __far *data)
 
void screen_set_scroll (uint8_t screen_id, uint8_t x, uint8_t y)
 
uint16_t screen_get_scroll (uint8_t screen_id)
 
void screen2_set_window (uint8_t screen_id, uint8_t x, uint8_t y, uint8_t width, uint8_t height)
 
void sprite_set_window (uint8_t screen_id, uint8_t x, uint8_t y, uint8_t width, uint8_t height)
 
void palette_set_color (uint16_t id, uint16_t pal)
 
uint16_t palette_get_color (uint16_t id)
 
void lcd_set_color (uint16_t low, uint16_t high)
 
uint32_t lcd_get_color (void)
 
void lcd_set_segments (uint16_t flags)
 
uint16_t lcd_get_segments (void)
 
void lcd_set_sleep (uint16_t on)
 
uint16_t lcd_get_sleep (void)
 

Detailed Description

FreyaBIOS display calls.

Definition in file disp.h.