#include <nds.h>
#include "types.h"
#include "graphics.h"
#include "kanji_bg.h"
#include "goi_bg.h"
#include "splash_main_bg.h"
#include "cards_options_sub_bg.h"
#include "kanji_choose_options_sub_bg.h"
#include "vertical_textboxes_choose_options_bg.h"
#include "main_menu_bg.h"
#include "options_grade_strokes_romaji_sub_bg.h"
#include "options_romaji_sub_bg.h"

Go to the source code of this file.
Functions | |
| u8 | red_color (u16 color) |
| Get the red component of the color. | |
| u8 | green_color (u16 color) |
| Get the green component of the color. | |
| u8 | blue_color (u16 color) |
| Get the blue component of the color. | |
| u16 | convert_color (u8 incolor, Screen::selector screen) |
Variables | |
| static const u16 | rmask = BIT(0) | BIT(1) | BIT(2) | BIT(3) | BIT(4) |
| Red color bit mask. | |
| static const u16 | gmask = BIT(5) | BIT(6) | BIT(7) | BIT(8) | BIT(9) |
| Green color bit mask. | |
| static const u16 | bmask = BIT(10) | BIT(11) | BIT(12) | BIT(13) | BIT(14) |
| Blue color bit mask. | |
| static const u16 | TRANSPARENT_COLOR = 32768 |
| Transparent color not to print it. | |
| u16 | black_color_main |
| Black color palette index in the main screen. | |
| u16 | gray_color_main |
| Gray color palette index in the main screen. | |
| u16 | black_color_sub |
| Black color palette index in the sub screen. | |
| u16 | gray_color_sub |
| Gray color palette index in the sub screen. | |
Definition in file graphics.cpp.
| u16 convert_color | ( | u8 | incolor, | |
| Screen::selector | screen | |||
| ) | [inline] |
Converts a color in [0-255] range to the black, grey and white palette indexes
Definition at line 74 of file graphics.cpp.
Referenced by Graphics::PrintBitmap().
1.5.8