libwwcl libwwcl
WWitch compatibility layer for the Wonderful toolchain
Loading...
Searching...
No Matches
libwwc.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2022 Adrian "asie" Siekierka
3 *
4 * This software is provided 'as-is', without any express or implied
5 * warranty. In no event will the authors be held liable for any damages
6 * arising from the use of this software.
7 *
8 * Permission is granted to anyone to use this software for any purpose,
9 * including commercial applications, and to alter it and redistribute it
10 * freely, subject to the following restrictions:
11 *
12 * 1. The origin of this software must not be misrepresented; you must not
13 * claim that you wrote the original software. If you use this software
14 * in a product, an acknowledgment in the product documentation would be
15 * appreciated but is not required.
16 *
17 * 2. Altered source versions must be plainly marked as such, and must not be
18 * misrepresented as being the original software.
19 *
20 * 3. This notice may not be removed or altered from any source distribution.
21 */
22
27#ifndef __WF_LIBWW_LIBWWC_H__
28#define __WF_LIBWW_LIBWWC_H__
29
30#include "types.h"
31
37#define HARDARCH_WS 0
38#define HARDARCH_WSC 1
39
41
42#define COLOR_MODE_GRAYSCALE 0x00
43#define COLOR_MODE_4COLOR 0x80
44#define COLOR_MODE_16COLOR 0xC0
45#define COLOR_MODE_16PACKED 0xE0
46
47void wwc_set_color_mode(uint8_t color_mode);
48void wwc_palette_set_color(uint8_t idx, uint8_t sub_idx, uint16_t color);
49uint16_t wwc_palette_get_color(uint8_t idx, uint8_t sub_idx);
50void wwc_font_set_colordata(uint16_t start, uint16_t count, const void __far* data);
51void wwc_clear_font(void);
52
55#endif /* __WF_LIBWW_LIBWWC_H__ */
uint8_t wwc_get_hardarch()
void wwc_clear_font(void)
void wwc_palette_set_color(uint8_t idx, uint8_t sub_idx, uint16_t color)
void wwc_set_color_mode(uint8_t color_mode)
void wwc_font_set_colordata(uint16_t start, uint16_t count, const void __far *data)
uint16_t wwc_palette_get_color(uint8_t idx, uint8_t sub_idx)