Thomas Friedel
|
6b36b47b0c
|
added an example for using SDL directly
|
2018-04-30 12:02:26 +02:00 |
|
Thomas Friedel
|
05a7355a7f
|
fixed closed paths
|
2018-04-30 11:34:33 +02:00 |
|
Thomas Friedel
|
3a51ce9843
|
more clipping fixes
|
2018-04-30 11:25:25 +02:00 |
|
Thomas Friedel
|
48a2c698df
|
added an example
|
2018-04-30 11:18:58 +02:00 |
|
Thomas Friedel
|
616ddaded0
|
fixed some clipping bugs
|
2018-04-30 11:01:31 +02:00 |
|
Thomas Friedel
|
0489833474
|
implemented textAlign; unknown characters now act like a space
|
2018-04-19 17:02:28 +02:00 |
|
Thomas Friedel
|
30c6c8a270
|
text rendering now works on the string rather than individual characters
|
2018-04-17 11:06:17 +02:00 |
|
Thomas Friedel
|
0913a92782
|
don't draw text that is outside the screen bounds
|
2018-04-14 11:59:09 +02:00 |
|
Thomas Friedel
|
489a758c3c
|
also close window on quit event
|
2018-04-14 11:21:37 +02:00 |
|
Thomas Friedel
|
b32f7eeafc
|
measuring text width no longer renders the text
|
2018-04-14 11:20:54 +02:00 |
|
Thomas Friedel
|
8507e9ed71
|
added documentation
|
2018-04-11 17:40:39 +02:00 |
|
Thomas Friedel
|
e75355ac37
|
implemented globalAlpha
|
2018-04-09 17:39:26 +02:00 |
|
Thomas Friedel
|
3fcf95cc86
|
fixed cache bug
|
2018-04-05 20:13:17 +02:00 |
|
Thomas Friedel
|
1699257f6d
|
removed the name parameter from LoadImage as well; fixed a bug if the image finalizer is called after explicitly deleting
|
2018-04-05 18:54:14 +02:00 |
|
Thomas Friedel
|
ad16b6fee2
|
removed the name parameter from LoadFont
|
2018-04-04 17:27:04 +02:00 |
|
Thomas Friedel
|
db1797c19a
|
the first loaded font is now used as the default font
|
2018-04-04 17:22:03 +02:00 |
|
Thomas Friedel
|
3854f40898
|
arcs are now marked as convex to optimize performance
|
2018-04-04 17:12:57 +02:00 |
|
Thomas Friedel
|
8502818b6f
|
clipping with the rect function now uses scissor test instead of stencil
|
2018-04-04 17:10:36 +02:00 |
|
Thomas Friedel
|
d5a4c0b4bb
|
use bit flags instead of booleans for more compact storage
|
2018-04-04 16:37:46 +02:00 |
|
Thomas Friedel
|
f0d9b83afb
|
moved FillRect into paths.go
|
2018-04-04 16:15:54 +02:00 |
|
Thomas Friedel
|
ef652e17ba
|
added StrokeRect function
|
2018-04-04 16:15:39 +02:00 |
|
Thomas Friedel
|
c1dce1c12a
|
fill fix
|
2018-04-04 16:05:38 +02:00 |
|
Thomas Friedel
|
d08eb63181
|
added rect function
|
2018-04-04 16:01:26 +02:00 |
|
Thomas Friedel
|
7be3a4383c
|
paths with sub-paths fixed
|
2018-04-04 16:01:11 +02:00 |
|
Thomas Friedel
|
34ceb96676
|
fallback to no msaa
|
2018-03-28 18:58:07 +02:00 |
|
Thomas Friedel
|
13127f2816
|
added MeasureText method
|
2018-03-28 12:42:50 +02:00 |
|
Thomas Friedel
|
5f3b74834b
|
added BSD license
|
2018-03-28 11:33:15 +02:00 |
|
Thomas Friedel
|
1703c1a8fd
|
added documentation; added input event functions
|
2018-03-28 11:30:46 +02:00 |
|
tfriedel6
|
95e59ccb5f
|
Update README.md
|
2018-03-27 16:16:25 +02:00 |
|
Thomas Friedel
|
df650c6113
|
deduplicated some code
|
2018-03-27 16:03:02 +02:00 |
|
Thomas Friedel
|
37767fa86f
|
more documentation; renamed W/H to Width/Height on Image type
|
2018-03-27 15:57:01 +02:00 |
|
Thomas Friedel
|
a9aa15d1d6
|
nested clipping now works with save/restore
|
2018-03-25 15:48:26 +02:00 |
|
Thomas Friedel
|
649cffa1e3
|
clipping fixed
|
2018-03-25 15:42:23 +02:00 |
|
Thomas Friedel
|
f57765cdc5
|
split main loop for manual main loop support
|
2018-03-24 19:20:30 +01:00 |
|
Thomas Friedel
|
385a230aa6
|
removed commented lines since they otherwise appear as documentation
|
2018-03-22 17:47:58 +01:00 |
|
Thomas Friedel
|
ff4fba4c33
|
reduced the opengl interface to only the used functions
|
2018-03-22 17:45:52 +01:00 |
|
Thomas Friedel
|
72a7cbd2ed
|
renamed the W and H function; added documentation
|
2018-03-22 17:27:23 +01:00 |
|
Thomas Friedel
|
888c667a36
|
miter line join fix
|
2018-03-21 16:04:52 +01:00 |
|
Thomas Friedel
|
dfba64a1fd
|
fixed some bugs from the float32->float64 conversion
|
2018-03-21 15:51:07 +01:00 |
|
Thomas Friedel
|
e138d853c6
|
stencil buffer usage bugfix
|
2018-03-21 15:45:19 +01:00 |
|
Thomas Friedel
|
26d11865b5
|
switched from float32 to float64 for better compatibility with the default go math package; moved vector and matrix code into package
|
2018-03-21 12:45:32 +01:00 |
|
Thomas Friedel
|
d0dc6c1f5c
|
removed log message
|
2018-03-21 12:09:10 +01:00 |
|
Thomas Friedel
|
075abc4f03
|
bugfix for an edge case
|
2018-03-14 15:37:01 +01:00 |
|
tfriedel6
|
b7af1ad3a4
|
Create README.md
|
2018-03-12 12:42:41 +01:00 |
|
Thomas Friedel
|
caa356aa12
|
added quadratic and bezier curves
|
2018-03-08 16:42:16 +01:00 |
|
Thomas Friedel
|
21d14699ec
|
font rendering fix
|
2018-02-26 16:53:34 +01:00 |
|
Thomas Friedel
|
da6538b1e3
|
shaders are now in their own file; text fill now uses font rendering more directly and supports fill styles
|
2018-02-26 15:40:48 +01:00 |
|
Thomas Friedel
|
d509a6f86d
|
gradients and texture patterns are now transformed according to the current matrix
|
2018-02-26 12:29:21 +01:00 |
|
Thomas Friedel
|
efafa0f6f7
|
fixed a problem with miter joints if the lines are parallel
|
2018-02-22 14:19:47 +01:00 |
|
Thomas Friedel
|
2da1a4363a
|
bugfix, uninitialized uniform
|
2018-02-15 10:33:51 +01:00 |
|