i also kno that the logo fiel is in rgb array i cant find anythgin or kno how to amke anythign to convert an image to the rgb array liek that
here's what the stuff isnide teh main.c shows to load for it
Code: Select all
void DrawSplashLogo()
{
PACKET packet;
int x, y, i, r, g, b;
dma_initialize();
graph_initialize();
packet_allocate(&packet, 1024);
graph_set_mode(GRAPH_MODE_AUTO, GRAPH_PSM_32, GRAPH_PSM_32);
graph_set_displaybuffer(0);
graph_set_drawbuffer(0);
graph_set_zbuffer(graph_get_width() * graph_get_height() * (graph_get_bpp() >> 3));
graph_set_clearbuffer(0, 0, 0);
graph_wait_vsync();
i = 0;
for (x = 0; x < 600; x += 1)
{
for (y = 0; y < 100; y += 1)
{
r = logomesh[i];
i += 1;
g = logomesh[i];
i += 1;
b = logomesh[i];
i += 1;
packet_reset(&packet);
packet_append_64(&packet, GIF_SET_TAG(4, 1, 0, 0, 0, 1));
packet_append_64(&packet, 0x0E);
packet_append_64(&packet, GIF_SET_PRIM(6, 0, 0, 0, 0, 0, 0, 0, 0));
packet_append_64(&packet, GIF_REG_PRIM);
packet_append_64(&packet, GIF_SET_RGBAQ(r, g, b, 0x80, 0x3F800000));
packet_append_64(&packet, GIF_REG_RGBAQ);
packet_append_64(&packet, GIF_SET_XYZ((1740 + x) << 4, (1990 + y) << 4, 0));
packet_append_64(&packet, GIF_REG_XYZ2);
packet_append_64(&packet, GIF_SET_XYZ((1740 + (x + 1)) << 4, (1990 + (y + 1))<< 4, 0));
packet_append_64(&packet, GIF_REG_XYZ2);
packet_send(&packet, DMA_CHANNEL_GIF, DMA_FLAG_NORMAL);
}