Thomas Friedel
|
3a51ce9843
|
more clipping fixes
|
2018-04-30 11:25:25 +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
|
b32f7eeafc
|
measuring text width no longer renders the text
|
2018-04-14 11:20:54 +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
|
13127f2816
|
added MeasureText method
|
2018-03-28 12:42:50 +02:00 |
|
Thomas Friedel
|
dfba64a1fd
|
fixed some bugs from the float32->float64 conversion
|
2018-03-21 15:51:07 +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
|
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
|
2da1a4363a
|
bugfix, uninitialized uniform
|
2018-02-15 10:33:51 +01:00 |
|
Thomas Friedel
|
5175b1ba73
|
images and fonts can now be optionally named for later access; DrawImage and SetFont can now accept file names directly and will cache using the path
|
2018-02-15 10:12:32 +01:00 |
|
Thomas Friedel
|
2de2dd26a4
|
moved the canvas to gl coordinate transformation to the shaders; fixed some bugs along the way
|
2018-02-08 11:53:32 +01:00 |
|
Thomas Friedel
|
9ed7a36cbc
|
changed gl color from four floats to a struct type
|
2018-02-07 11:37:08 +01:00 |
|
Thomas Friedel
|
395ef95009
|
added transformations, translate, scale, rotate
|
2018-01-29 16:04:56 +01:00 |
|
Thomas Friedel
|
6480345a60
|
added save and restore functions for draw state
|
2018-01-29 15:32:17 +01:00 |
|
Thomas Friedel
|
8a66ff2166
|
moved a freetype source file into the project and optimized it for the given purpose, only upload rendered text rectangle to the texture
|
2018-01-29 13:14:42 +01:00 |
|
Thomas Friedel
|
0715639ad2
|
rearranged things a bit
|
2018-01-25 15:50:05 +01:00 |
|
Thomas Friedel
|
85667e8f57
|
added support for loading fonts and rendering text (highly unoptimized so far)
|
2018-01-25 15:08:03 +01:00 |
|