setbuffer
BlitzMax Forums/BlitzMax Programming/setbuffer
| ||
Is there a way to have graphics commands, other then writepixel, work directly on an image or pixmap? I know I could draw to the backbuffer and then do grabimage but I'm a lazy slob... I was also wondering if the drawoval can draw just the outline and not have it filled in. |
| ||
I haven't seen anything to replace SetBuffer, so I think GrabImage is the only way to do it now, but I could be wrong. As for drawing the oval's outline only, you can just set the glPolygonMode to GL_LINE, and it will be rendered as a line rather than a filled polygon. You should also set it back to GL_FILL when you're through. For example: Function DrawOvalOutline(x#, y#, w#, h#) glPolygonMode GL_FRONT_AND_BACK, GL_LINE DrawOval x, y, w, h glPolygonMode GL_FRONT_AND_BACK, GL_FILL End Function |
| ||
Thanks! I wasn't even thinking of looking at the gl commands. |