src/graphics.cpp File Reference

Graphics functions. More...

#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"

Include dependency graph for graphics.cpp:

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.


Detailed Description

Graphics functions.

Definition in file graphics.cpp.


Function Documentation

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().


Generated on Fri Oct 2 10:25:28 2009 for DSMemorizer by  doxygen 1.5.8