Seebs
34cdd8729b
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
faiface
3706d040ce
fix typo in doc
2017-05-28 18:50:56 +02:00
faiface
4749e3ee7e
add Canvas.Frame method
2017-05-28 18:44:30 +02:00
faiface
ecdd8462bb
replace complex128 Vec with a struct
2017-05-21 19:25:06 +02:00
faiface
b832e83517
change Sprite.Draw and Canvas.Draw signatures (include Matrix)
2017-05-17 23:45:22 +02:00
faiface
cce26f0a51
add Window.Repeat
2017-05-10 23:54:06 +02:00
faiface
b15c10298e
fix and simplify input handling in Window
2017-05-10 21:22:47 +02:00
faiface
3a14aae310
add Window.Typed
2017-05-10 21:10:10 +02:00
faiface
3b5bfa90e6
fix creating window with no icon
2017-05-01 12:18:23 +02:00
faiface
dff622523b
just align doc comment to 100 chars per line
2017-05-01 01:38:57 +02:00
Michal Štrba
51a9702fc8
Merge pull request #14 from otraore/set-icon
...
Add support for setting an icon of a window
2017-05-01 01:33:59 +02:00
Ousmane Traore
f7bb304b92
Set value rather than append
2017-04-30 19:30:11 -04:00
Ousmane Traore
5efd04b420
Address review comments
2017-04-30 18:43:05 -04:00
Ousmane Traore
ea7bc5aff9
Add Icons paramter to window config
2017-04-30 17:19:51 -04:00
faiface
7b8a0c152e
fix Window.CursorVisible intial value (was false)
2017-04-30 20:42:25 +02:00
Ousmane Traore
dc745825d6
Address review comments
2017-04-30 12:33:27 -04:00
Ousmane Traore
29fe3b16ca
Add ability to hide the cursor
2017-04-30 10:40:31 -04:00
faiface
85ba21a2f4
add Canvas.SetPixels and Canvas.Pixels methods
2017-04-28 13:24:30 +02:00
Paul Ivanov
ff64cf248b
fix for 'texture' as a variable error, closes #4
2017-04-26 08:35:10 -07:00
faiface
080735510c
temporarily fix issue #1
2017-04-22 13:15:57 +02:00
faiface
3e493c13e1
remove debug print
2017-04-21 23:10:02 +02:00
faiface
f9f61911a7
fix Canvas drawing when bounds don't start at (0, 0)
2017-04-21 23:07:48 +02:00
faiface
4aea56198f
add pixelgl package doc
2017-04-21 17:00:18 +02:00
faiface
10684b6add
minor change
2017-04-13 20:30:32 +02:00
faiface
b5a2c12175
remove a bunch of unnecessary Window control methods
2017-04-13 15:03:13 +02:00
faiface
c61b677fa9
fix Canvas.Draw
2017-04-12 16:02:39 +02:00
faiface
c9e0f7262d
add Canvas.Draw
2017-04-12 16:00:56 +02:00
faiface
a2499cf90d
remove accidentaly kept updateLock field from GLTriangles
2017-04-12 11:25:11 +02:00
faiface
f2a0a19f6e
fix race condition in GLTriangles
2017-04-11 15:02:58 +02:00
faiface
a555999120
adopt RGB and Alpha
2017-04-10 17:25:56 +02:00
faiface
aa2c560d4c
rename ComposeDst* -> ComposeR* + add ComposePlus, ComposeCopy
2017-04-10 13:59:16 +02:00
faiface
4eca5f2d1e
fix compile error
2017-04-10 00:48:17 +02:00
faiface
4374bb7be1
remove smooth argument from Canvas constructor
2017-04-10 00:47:06 +02:00
faiface
3fa31cdab5
fix drawing onto Canvas
2017-04-10 00:41:56 +02:00
faiface
219559cf20
add Window.SetComposeMethod
2017-04-10 00:41:48 +02:00
faiface
3d3f1c6e11
add Canvas.SetComposeMethod
2017-04-10 00:30:50 +02:00
faiface
134fe2bf7b
use glhf.BlendFunc
2017-04-09 23:16:34 +02:00
faiface
32ae09e1e5
replace NRGBA to RGBA because Porter-Duff (!!!)
2017-04-09 22:00:26 +02:00
faiface
9cbce8f638
fix typo in Window doc
2017-04-08 18:05:50 +02:00
faiface
e3f7901f2c
adjust WindowConfig doc, more consistent with the rest
2017-04-07 12:34:16 +02:00
faiface
ee19c6b361
fix GLFrame.SetBounds to not reallocate when not necessary
2017-04-05 23:20:55 +02:00
faiface
2155babc5d
add Window.Color
2017-04-02 19:08:48 +02:00
faiface
79f7f4fb42
split Canvas into Canvas+GLFrame + add GLPicture
2017-04-01 21:54:44 +02:00
faiface
2562f6b754
remove Slice and Original from Canvas
2017-03-31 15:03:06 +02:00
faiface
15a270e689
remove Slice and Original from Picture interface
2017-03-30 23:34:07 +02:00
faiface
379b4df667
adopt new ToNRGBA function
2017-03-23 23:07:49 +01:00
faiface
4b17773a1a
fix bug in Canvas.MakeTriangles
2017-03-20 23:11:50 +01:00
faiface
4c526867a4
heavily optimize Canvas.MakePicture with PictureData
2017-03-20 19:54:59 +01:00
faiface
8625586bee
fix two misspells
2017-03-16 00:45:04 +01:00
faiface
19ba78bb0c
minor changes
2017-03-16 00:15:39 +01:00