Can I do a non-destructive cursor with RGB?

If I’ve RGB pixel data (an image), can I create a colored cursor that I can move around without destructively writing the pixel data underneath the cursor? I’m trying to avoid calling glPixelDraw() to redraw the pixels after the cursor has moved.

It depends on how you draw the cursor.
If you do it using Windows cursor then data is not destroyed at all, the cursor is overlayed and GL does not “see” it.

If you want to make it trasparent, the most obvious way is to use a billboarded quad with alpha-blended texture. This is what I do in my embedded user interface and it works pretty nicely. Hovever, having a transparent cursor will obviously modify FB’s contents.

What do you mean exactly by non-destructive?

[This message has been edited by Obli (edited 02-13-2004).]

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.