Humphrey Shotton
3be890ea80
Use JoystickLast instead of Joystick16
2019-01-22 21:48:24 +00:00
Humphrey Shotton
a46f6f6cf4
Correctly index joysticks in internal state
2019-01-22 21:37:15 +00:00
Stephen Michaelis
8d20deea05
update MouseEntered to MouseInsideWindow
2019-01-21 17:13:51 -05:00
Stephen Michaelis
4c817d7c20
adding mouse operations
2019-01-19 10:24:01 -05:00
Humphrey Shotton
026878de07
Mark API as experimental
2019-01-10 19:25:55 +00:00
Humphrey Shotton
52b4384240
Removed JoystickLast
2019-01-09 21:07:46 +00:00
Humphrey Shotton
676509d856
Added joystick input
2018-12-30 18:42:02 +00:00
Magnus
c18b8f1c29
Added position as out variable from vertex shader.
...
Adding the position out form vertex shader makes us skip computation of position in the fragment shader based on gl_FragCoord.
2018-12-11 09:24:17 +01:00
Brandon
dc545043c1
lowercased SetUniform arguments
2018-10-07 12:28:20 -06:00
Brandon
f4edf628b1
standardized glsl variable naming
2018-10-07 08:33:37 -06:00
Brandon
e9dfd22ffa
pr 141 review #3 changes, see https://github.com/faiface/pixel/pull/141#pullrequestreview-162261776
2018-10-06 10:27:47 -06:00
Brandon
fa10844351
pr 141 review #2 changes, see https://github.com/faiface/pixel/pull/141#pullrequestreview-162259357
2018-10-06 10:01:05 -06:00
Brandon
a25a444cbf
pr 141 review #1 changes, see https://github.com/faiface/pixel/pull/141#pullrequestreview-161208458
2018-10-03 13:02:10 -06:00
Brandon
45642083a2
renamed file shader.go to glshader.go
2018-10-03 09:37:10 -06:00
Brandon
55d3a6ab00
implemented custom fragment shader support
2018-10-02 08:59:37 -06:00
David Linus Briemann
446247e369
adjusts VideoMode and associated function to pull request change requests.
2018-05-04 18:03:25 +02:00
David Linus Briemann
2a1ab90ad5
adds a community example for the usage of video modes
2018-05-03 20:52:42 +02:00
faiface
3cf59b1044
fix #100
2018-02-26 18:38:12 +01:00
mewmew
98be0b43c8
pixelgl: clarify UpdateInput docs
2018-01-04 19:23:53 +01:00
mewmew
6c69d9b06b
pixelgl: export UpdateInput
2018-01-01 21:04:56 +01:00
ALex Ogier
3c78161418
add GetPos function to window
2017-11-20 13:37:22 +13:00
faiface
e554b1e3c1
dirty fix #58 (panic on minimizing windows)
2017-11-08 22:28:32 +01:00
Sander Schobers
48e37828c8
Added SetPos to pixelgl.Window
2017-10-27 20:35:45 +02:00
faiface
12df203229
Merge branch 'dev'
2017-06-11 01:19:57 +02:00
Seebs
f68301dcd8
don't call Len() when it can't change
...
updateData()'s loops checking gt.Len() turns out to have been costing
significant computation, not least because each call then in turn
called gt.vs.Stride().
2017-06-10 10:47:18 -05:00
faiface
cfdc8beb81
switch back to OpenGL 3.3 (OS X issues)
2017-06-10 15:11:45 +02:00
faiface
1fd110ce4c
optimize GLTriangles SetLen and Update
2017-06-10 01:10:59 +02:00
faiface
3665eaf702
Merge branch 'master' into gl2.1
2017-06-09 19:26:14 +02:00
faiface
c0766504e3
minor, mostly stylistic, changes
2017-06-09 18:13:05 +02:00
Seebs
ce8687b80f
Don't duplicate computations in gltriangles.go
...
The computation including a call to Stride() can't be optimized away
safely because the compiler can't tell that Stride() is effectively
constant, but we know it won't change so we can make a slice pointing
at that part of the array.
CPU time for updateData goes from 26.35% to 18.65% in my test case.
2017-06-09 10:37:47 -05:00
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
faiface
793d1e6a9a
fix typo in doc
2017-05-28 18:50:56 +02:00
faiface
f0c42c6e56
add Canvas.Frame method
2017-05-28 18:44:30 +02:00
faiface
fa2c741fcf
switch to OpenGL 2.1
2017-05-27 13:14:13 +02:00
faiface
fcfeb200b6
replace complex128 Vec with a struct
2017-05-21 19:25:06 +02:00
faiface
6735475b44
change Sprite.Draw and Canvas.Draw signatures (include Matrix)
2017-05-17 23:45:22 +02:00
faiface
be2434cfa8
add Window.Repeat
2017-05-10 23:54:06 +02:00
faiface
9062f1eae9
fix and simplify input handling in Window
2017-05-10 21:22:47 +02:00
faiface
c9319763d7
add Window.Typed
2017-05-10 21:10:10 +02:00
faiface
650263a314
fix creating window with no icon
2017-05-01 12:18:23 +02:00
faiface
4de5df6980
just align doc comment to 100 chars per line
2017-05-01 01:38:57 +02:00
Michal Štrba
a730295ce8
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
4e7e3956db
Set value rather than append
2017-04-30 19:30:11 -04:00
Ousmane Traore
ac4239754f
Address review comments
2017-04-30 18:43:05 -04:00
Ousmane Traore
8ae8551fda
Add Icons paramter to window config
2017-04-30 17:19:51 -04:00
faiface
2c1528a927
fix Window.CursorVisible intial value (was false)
2017-04-30 20:42:25 +02:00
Ousmane Traore
b6620c9775
Address review comments
2017-04-30 12:33:27 -04:00
Ousmane Traore
2fa80f7d42
Add ability to hide the cursor
2017-04-30 10:40:31 -04:00
faiface
c12d22757d
add Canvas.SetPixels and Canvas.Pixels methods
2017-04-28 13:24:30 +02:00
Paul Ivanov
8643f6d0d0
fix for 'texture' as a variable error, closes #4
2017-04-26 08:35:10 -07:00