summaryrefslogtreecommitdiff
path: root/lib/nes/app/graphics/mask-tile.hh
blob: deb750a2e140a666d0316320eaeff72501df0d0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#pragma once

#include "nes/common/types.hh"

namespace nes::app
{
	/// An 8x8 tile without intrinsic coloring, only providing the alpha mask.
	///
	/// The tile is stored as an array of 8 8-bit integers, where each bit represents a horizontal pixel in the
	/// integer's row.
	struct mask_tile
	{
		u8 data[8]{};
	};

	namespace tiles
	{
		inline constexpr auto letter_a = mask_tile
		{
			0b00111000,
			0b01101100,
			0b11000110,
			0b11000110,
			0b11111110,
			0b11000110,
			0b11000110,
			0b00000000,
		};
	} // namespace tiles
} // namespace nes::app