Hi :)
I searched (maybe not as much as you did) but couldn't find an C sample code of QBlit/QSBlit usage...
It isn't used neither in AROS source code (even if there is some sort of reimplementation of these two functions).
My own guess would be that both could accept a pointer to a C function, as stated by the struct they take as parameter :
/* stuff for blit qeuer */
struct bltnode
{
struct bltnode *n;
int (*function)();
char stat;
short blitsize;
short beamsync;
int (*cleanup)();
};
function is prolly a function pointer, so at a certain point you should have something like :
void my_blit(void)
{
// do my blitting stuff here
}
then, in the same scope :
{
struct bltnode *my_node;
my_node = (struct bltnode *)malloc(sizeof(struct bltnode));
my_node->function = &my_blit;
// ... more init of my_node
// then ...
QSBlit(my_node);
}
/! I have 0% guarantee of the above being correct in any way, however :D
You might want to have a look at Krabob's experiments, here. He seemed to stumble on the same lack of proper documentation, but he found out a way to use QSBlit :)
http://eab.abime.net/showthread.php?t=75065hope this helps :)