go-opengl-pixel/pixelgl
Seebs c321515d3c Simplify Matrix math, use 6-value affine matrixes.
It turns out that affine matrices are much simpler than the 3x3 matrices
they imply, and we can use this to dramatically streamline some code.
For a test program, this was about a 50% gain in frame rate just from
the cost of the applyMatrixAndMask calls in imdraw, which were calling
matrix.Project() many times. Simplifying matrix.Project, alone, got a
nearly 50% frame rate boost!

Also modify pixelgl's SetMatrix to copy the six values of a 3x2
Affine into the corresponding locations of a 3x3 matrix.
2017-06-09 10:37:43 -05:00
..
canvas.go Simplify Matrix math, use 6-value affine matrixes. 2017-06-09 10:37:43 -05:00
doc.go add pixelgl package doc 2017-04-21 17:00:18 +02:00
glframe.go replace complex128 Vec with a struct 2017-05-21 19:25:06 +02:00
glpicture.go replace complex128 Vec with a struct 2017-05-21 19:25:06 +02:00
gltriangles.go replace complex128 Vec with a struct 2017-05-21 19:25:06 +02:00
input.go replace complex128 Vec with a struct 2017-05-21 19:25:06 +02:00
monitor.go stop using mainthread.CallVal 2017-02-24 15:45:32 +01:00
run.go fix two misspells 2017-03-16 00:45:04 +01:00
util.go replace complex128 Vec with a struct 2017-05-21 19:25:06 +02:00
window.go replace complex128 Vec with a struct 2017-05-21 19:25:06 +02:00