Commit Graph

40 Commits

Author SHA1 Message Date
Sasha Koshka ea32b7899b Remove pixel backend 2022-11-11 20:27:51 -05:00
Sasha Koshka 38f7185be2 Draw the actual buffer text on screen 2022-11-11 18:14:43 -05:00
Sasha Koshka 85b6e5495e Fonts now render properly with a baseline and all that 2022-11-11 17:25:17 -05:00
Sasha Koshka 8ef81ecc7f Implemented some shape drawing functions to debug character positioning 2022-11-11 15:20:52 -05:00
Sasha Koshka cc498fa89c Find and load any font 2022-11-11 15:01:36 -05:00
Sasha Koshka ed5c6829d4 Remove fakeImage struct and replace with image.Uniform 2022-11-11 14:51:08 -05:00
Sasha Koshka 93b02b4628 We have text 2022-11-10 21:32:02 -05:00
Sasha Koshka d26845a4d6 Draw background color in window 2022-11-10 20:43:27 -05:00
Sasha Koshka 1afbcdb6bc Load an actual font 2022-11-10 12:38:02 -05:00
Sasha Koshka 23a04a9cdb Added icon setting 2022-11-10 02:02:08 -05:00
Sasha Koshka 4536932dde Resize canvas when the window is resized 2022-11-10 01:00:47 -05:00
Sasha Koshka f807c8df35 Handle actual X events 2022-11-09 22:33:18 -05:00
Sasha Koshka 01f43a03a4 A canvas is now created 2022-11-09 19:07:40 -05:00
Sasha Koshka acbf2a3954 Merge pull request 'redo-event-system' (#1) from redo-event-system into main
Reviewed-on: #1
2022-11-09 23:54:10 +00:00
Sasha Koshka c93ca17fe5 x backend has an event loop 2022-11-09 18:53:14 -05:00
Sasha Koshka 0c5118b59a Added X backend stub 2022-11-09 15:52:49 -05:00
Sasha Koshka e7b5136ea6 Return channel from run method 2022-11-09 01:18:56 -05:00
Sasha Koshka 11bdae78a0 Add icon setter to backend 2022-11-09 01:13:44 -05:00
Sasha Koshka 60269d554c Updated backend interface to use new event interface 2022-11-09 01:12:55 -05:00
Sasha Koshka b60d7518e0 Add new event interface 2022-11-09 01:12:47 -05:00
Sasha Koshka 3456d4e862 Got rid of old event getters 2022-11-09 01:04:53 -05:00
Sasha Koshka 7a6be48cb8 Added some documentation 2022-11-09 01:01:13 -05:00
Sasha Koshka 509c6f0bc6 Characters are now rendered with their proper descent 2022-11-06 16:35:16 -05:00
Sasha Koshka 3a879d9a5f Mouse input works 2022-11-06 15:59:06 -05:00
Sasha Koshka f3d0bad959 Create readme 2022-11-06 15:37:33 -05:00
Sasha Koshka 3abba9d69b Don't even bother with text wrapping
This is a pretty useless feature, all things considered. It should
be the job of the application to figure that out.
2022-11-06 15:26:50 -05:00
Sasha Koshka f98b551ba2 Added bounds checking to buffer 2022-11-06 15:25:55 -05:00
Sasha Koshka ff7240d553 Pass keyboard events through application 2022-11-06 15:12:44 -05:00
Sasha Koshka f6b8d9903b Return err from Application.Run 2022-11-06 14:47:37 -05:00
Sasha Koshka b773ba6fc6 Cells get cleared properly (lol) 2022-11-06 14:44:09 -05:00
Sasha Koshka 4b129a8391 Buffer, DamageBuffer, and Application are io.Writers 2022-11-06 14:17:43 -05:00
Sasha Koshka 18ea5681de Buffer is now drawn in the screen center (similar to kitty) 2022-11-06 12:42:22 -05:00
Sasha Koshka 6e5cbd50f5 Fixed coordinate system 2022-11-05 18:56:56 -04:00
Sasha Koshka d739c0a6ed Cells are now drawn 2022-11-05 18:43:57 -04:00
Sasha Koshka 11cab091dc Individually clear dirty cells 2022-11-05 18:08:00 -04:00
Sasha Koshka e12fb3d7db Window resizing 2022-11-02 18:51:33 -04:00
Sasha Koshka fa72865465 Downgrade to go 1.18 2022-11-02 16:31:20 -04:00
Sasha Koshka 32e30440f7 Add input state queries 2022-11-02 15:14:59 -04:00
Sasha Koshka ce6a108d27 input.go no longer depends on glfw 2022-11-02 15:14:26 -04:00
Sasha Koshka fea20558ac Initial commit 2022-10-31 15:51:28 -04:00