View Full Version : can I do a non-destructive cursor with RGB?
02-12-2004, 11:53 AM
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).]
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.