Commit graph

13 commits

Author SHA1 Message Date
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