Original Post
I'm trying to draw a shape using an alpha map. The shape can be filled with a color a gradient or anything else. In order to do this I'm using a custom buffer X * Y (RGBA). In order to draw on it I'm currently using direct pixel acces, but I'd prefer to use Opengl to draw on it. This way I won't have to create two seperate draw-functions for each kind of graphic I want to fill the buffer with. So my question is: how?