libmsx
C library for MSX
Loading...
Searching...
No Matches
sprite_color.h
Go to the documentation of this file.
1// -*- coding: utf-8-unix -*-
2/*
3 * Copyright (c) 2021-2024 Daishi Mori (mori0091)
4 *
5 * This software is released under the MIT License.\n
6 * See https://github.com/mori0091/libmsx/blob/main/LICENSE
7 *
8 * GitHub libmsx project\n
9 * https://github.com/mori0091/libmsx
10 */
17#pragma once
18
19#ifndef SPRITE_COLOR_H
20#define SPRITE_COLOR_H
21
22#include <stdint.h>
23
24#include "sprite.h"
25#include "vmem.h"
26
40
52void vmem_set_sprite_color(vmemptr_t base, uint8_t plane,
53 const struct sprite_color* sprite_color);
54
66void vmem_set_sprite_color_s(vmemptr_t base, uint8_t plane,
67 const tagged_color_t tagged_color);
68
82void vmem_set_sprite_color_m(vmemptr_t base, uint8_t plane, uint8_t n,
83 const tagged_color_t* tagged_colors);
84
87#endif
uint8_t tagged_color_t
Color code with tags of sprite attribute table.
Definition sprite.h:50
tagged_color_t tagged_colors[16]
EC | CC | IC | 0 | Color Code
void vmem_set_sprite_color(vmemptr_t base, uint8_t plane, const struct sprite_color *sprite_color)
MSX2 Set sprite color table element (tagged color for each scanlines) of a sprite.
void vmem_set_sprite_color_m(vmemptr_t base, uint8_t plane, uint8_t n, const tagged_color_t *tagged_colors)
MSX Set sprite color (tagged color) of some sprites.
void vmem_set_sprite_color_s(vmemptr_t base, uint8_t plane, const tagged_color_t tagged_color)
MSX Set sprite color (tagged color) of a sprite.
MSX2 Element of sprite color table (for sprite mode 2).
uint32_t vmemptr_t
Type for VRAM address.
Definition vmem.h:42
Sprites.
Data types and functions for VRAM access.