gba-x3dtest

view src/palman.c @ 20:2e903e27e35a

fixed x3d_disable_texture added runtime teture checks in the rasterizer
author John Tsiombikas <nuclear@member.fsf.org>
date Tue, 01 Jul 2014 23:23:37 +0300
parents
children
line source
1 #include "gbasys.h"
2 #include "palman.h"
4 void palman_init(void)
5 {
6 int i;
8 for(i=0; i<255; i++) {
9 int r = GET_R_PAL(i);
10 int g = GET_G_PAL(i);
11 int b = GET_B_PAL(i);
13 set_palette(i, r, g, b);
14 }
15 set_palette(255, 255, 255, 255);
16 }