Need help with nGc "gui_gc_Sprite" structure

Dear All,
I am in the process of writing a kind of universal renderer for the TI nSpire (for the GUI Toolkit NF) and then I need to write some methods able to translate the drawcalls either to SDL or to nGc.
Most of the primitives are now working great (pixels (read/write) / main blitting functions / line, rectangle, circle ...).
I need to create a function for sprites and hence try to understand the data structure of gui_gc_Sprite.
I know there are 3 members :
short width;
short height;
char * pixels;
but what is the convention used for the "pixels" member ?
On the CX/CX-II, the color screen uses 16bits (565 coding) so a pixel color should be coded on a short rather than on a char. Looking at some example in the ndless_sdk, it does not seem to use 3 values per pixel (there are not 3 char per actual pixel). It does not seem either to be using a palette (or I do not know where it is defined).
Right now I have my raw data in a table of unsigned short, each pixel coded on a 16bit value as per the 565 convention, How can I make it compatible with gui_gc_Sprite ?
I hope someone will be able to help.
BR
Sly
I am in the process of writing a kind of universal renderer for the TI nSpire (for the GUI Toolkit NF) and then I need to write some methods able to translate the drawcalls either to SDL or to nGc.
Most of the primitives are now working great (pixels (read/write) / main blitting functions / line, rectangle, circle ...).
I need to create a function for sprites and hence try to understand the data structure of gui_gc_Sprite.
I know there are 3 members :
short width;
short height;
char * pixels;
but what is the convention used for the "pixels" member ?
On the CX/CX-II, the color screen uses 16bits (565 coding) so a pixel color should be coded on a short rather than on a char. Looking at some example in the ndless_sdk, it does not seem to use 3 values per pixel (there are not 3 char per actual pixel). It does not seem either to be using a palette (or I do not know where it is defined).
Right now I have my raw data in a table of unsigned short, each pixel coded on a 16bit value as per the 565 convention, How can I make it compatible with gui_gc_Sprite ?
I hope someone will be able to help.
BR
Sly