A89: Sprites with ti-gcc


[Prev][Next][Index][Thread]

A89: Sprites with ti-gcc




How do I make a sprite for the ti-gcc compiler?  I read through the 
documentation but I don't know how to define a sprite.  What I have is:

static unsigned int sprite[8][8] = {{0,1,1,1,1,1,1,0},
                                {1,1,0,1,1,0,1,1},
                                {0,1,1,1,1,1,1,0},
                                {0,0,0,1,1,0,0,0},
                                {0,0,0,1,1,0,0,0},
                                {0,0,0,1,1,0,0,0},
                                {0,0,0,1,1,0,0,0},
                                {0,0,0,1,1,0,0,0}};

But when I use this it just gives me a 1pixel thick line?  The sprite routine 
I'm using is:

Sprite16 (30, 30, 8, sprite, LCD_MEM, SPRT_OR);

How do I make a sprite that I want to use?

THANX
Dan



Follow-Ups: