Commit Graph

497 Commits

Author SHA1 Message Date
faiface e1dba0eb54 add Atlas doc 2017-05-09 15:25:08 +02:00
faiface e7a7ac4026 don't cache kerning in Atlas (too expensive and no benefit) 2017-05-09 15:10:35 +02:00
faiface 847b48292b improve Atlas creation, atlas is now square picture (was one row of characters) 2017-05-09 14:20:34 +02:00
faiface cfa9180bb7 fix PictureDataFromImage (wrong bounds when Min not (0, 0)) 2017-05-09 01:04:04 +02:00
faiface 6ce4094935 rename Text.LineHeight(scale) -> height, since now it's absolute height 2017-05-07 22:03:56 +02:00
faiface c0378a703e rename Glyph.Orig -> Dot 2017-05-07 21:49:26 +02:00
faiface b41a436dce minor change 2017-05-07 21:12:48 +02:00
faiface 68008f163a improve Text code 2017-05-07 21:08:10 +02:00
faiface 75d68a6963 add Text.BoundsOf 2017-05-07 21:00:19 +02:00
faiface ad606d2d0a restructure Text writing for more flexibility and consistency 2017-05-07 20:59:56 +02:00
faiface a5414dbb55 add Atlas.DrawRune 2017-05-07 20:59:41 +02:00
faiface f52e3db155 Merge branch 'dev' into text 2017-05-06 22:58:36 +02:00
faiface b333cd2e0b IMDraw: change default point color to (1, 1, 1, 1) (was (0, 0, 0, 0)) 2017-05-06 22:57:55 +02:00
faiface 8797440f38 fix Text.Bounds 2017-05-05 16:42:40 +02:00
faiface 75a25a0df6 remove Batch from Text and optimize it 2017-05-05 16:13:26 +02:00
faiface af0330d453 add Text.Bounds, Atlas.Ascent, Atlas.Descent 2017-05-05 16:02:47 +02:00
faiface 1619373062 add Rect.Union 2017-05-05 15:43:24 +02:00
faiface 1bb5353ec7 fix Text.Color 2017-05-04 22:30:18 +02:00
faiface 7dc94990e4 move Atlas type to a separate file 2017-05-03 23:59:37 +02:00
faiface 91448dcd68 change Text.LineHeight to use actual units instead of scale (such as 1.5) 2017-05-03 23:57:09 +02:00
faiface 48f3d5cb3e add Text.Atlas (Atlas has some useful stuff, e.g. line height) 2017-05-03 23:55:44 +02:00
faiface e112598b5c add Text.WriteByte 2017-05-03 23:55:10 +02:00
faiface 0d3fd03a40 export Atlas from text package + add Text.WriteRune and Text.WriteString 2017-05-03 23:54:24 +02:00
faiface 2a060fe944 add Text.SetMatrix and Text.SetColorMask 2017-05-03 21:48:05 +02:00
faiface 5f24ce9ccb add Text.LineHeight and text.TabWidth 2017-05-03 21:04:18 +02:00
faiface 90b9fcbf23 add Text.Orig (start of the text) 2017-05-03 20:56:06 +02:00
faiface e3632860b0 optimize Text.Write (remove one allocation) 2017-05-03 00:13:39 +02:00
faiface b463f91a6f add incomplete Text type in text package 2017-05-02 22:46:51 +02:00
faiface a9d735dafe optimize Drawer.Dirty (defer the hard part until drawing) 2017-05-02 22:46:27 +02:00
faiface ec4f5e3663 strikethrough advanced window manipulation mssing feature 2017-05-02 01:15:33 +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
Michal Štrba ce6b0a47c5 Merge pull request #13 from otraore/hide-cursor
Add ability to hide the cursor
2017-04-30 18:50:43 +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
faiface 31e5a6ad34 merge dev branch 2017-04-26 23:16:34 +02:00
faiface b7f67ee1f5 fix link in readme 2017-04-26 23:15:08 +02:00
faiface cadd699cf5 add note to readme about macOS, go 1.8 and xcode problems 2017-04-26 23:14:01 +02:00
Michal Štrba 5545a9cecc Merge pull request #6 from faiface/dev
merge shader error fix
2017-04-26 18:01:45 +02:00
Michal Štrba b991a8267d Merge pull request #5 from ivanov/fix-4
fix "Attempt to use 'texture' as a variable" shader compiler error
2017-04-26 17:58:39 +02:00
Paul Ivanov 8643f6d0d0 fix for 'texture' as a variable error, closes #4 2017-04-26 08:35:10 -07:00
faiface ca86b961f2 fix compiler error (ouch) 2017-04-26 15:11:12 +02:00
faiface 4cff721955 remove PictureData.SetColor
was confusing since Pictures in e.g. Sprites are not really updatable
2017-04-26 15:04:46 +02:00
faiface 5371f8a2dc add a note about memory leaks to Drawer and Sprite docs 2017-04-26 14:28:25 +02:00