TURBO MODE To use: Remove the "on flag clicked" demo script, and copy sprite ScratchGL_main into backpack. Documentation: Start up the library with gl_init(). Use gl_rgb(r,g,b) to set variable gl_rgbset to the equivalent color. To draw a line set, you must create a wind, which is a set of points that connect. You can add a wind vertex with gl_pushWindVertex(x coord, y coord), and you can close it with gl_closeWind(). Use gl_drawWind(relative x, relative y) to draw a wind, and gl_drawPolygon(relative x, relative y) to draw a wind completed as a polygon. You can use gl_pushCircle(radius) to add a circle to the circle buffer, and gl_drawCircle(relative x, relative y) to draw a circle. In ScratchGL, all winds, and circles are stored in a shape-specific buffer, or list, where the shapes are drawn from the top, but new shapes are added at the bottom. All buffers have operations that you can perform on them to edit their contents. For the wind buffer, use gl_removeWind() to remove the next wind drawn, but use gl_removeAllWinds() to remove all winds from the wind buffer. For the circle buffer, use removeCircle() to remove the next circle drawn, but use removeAllCircles() to remove all circles from the circle buffer. To draw a bordered circle, there is gl_drawBorderedCircle(x, y, bordersize).To add something to the next shape that will be drawn, use gl_unshiftOntoWind(vertex x, vertex y) or gl_unshiftOntoCircleBuffer(radius r). To remove the bottom element of the buffer(the end wind command is a single element), use gl_popWindBuffer() or gl_popCircleBuffer().
This library was made so others could link extensions to it. I'll put some in these notes here, or maybe even add them to the library. I'll also be adding more stuff regardless.