Forums > Jitter

Reuse opengl commands

March 20, 2009 | 6:28 am

I am using following set of opengl commands to draw a square using jit.gl.sketch
I provide location and orientation to this message

reset, glmatrixmode modelview, glpushmatrix, glcolor 1 0 0 1, glscale $4 $5, gltranslate $1 $2, glrotate $3 0 0 1, glbegin tri_strip, glvertex -1. -1., glvertex -1. 1., glvertex 1. -1., glvertex 1. 1., glend, glpopmatrix

I can draw one square using this but how do I reuse this commands and draw many squares in different locations?


March 20, 2009 | 8:05 pm

jit.gl.multiple is one possibility, probably many others.


Viewing 2 posts - 1 through 2 (of 2 total)