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.

Obli

02-13-2004, 11:00 AM

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.