Commit Graph

29 Commits

Author SHA1 Message Date
Sasha Koshka ef5a811140 Loading of multiple fonts for bold and italic 2022-11-29 02:36:24 -05:00
Sasha Koshka e588d7d791 Modifier states returned from x backend should be 100% correct now 2022-11-24 22:16:22 -05:00
Sasha Koshka 941a78eaf1 THE DRAGON HAS BEEN SLAIN
Numlock is fully supported, as well as shift lock. Of course, I
cannot properly test shift lock or caps lock because I have neither
of those things, but I assume they work as well as num lock does.
2022-11-24 22:02:32 -05:00
Sasha Koshka 81a0c60943 Added simpler method of detecting window bounds change on draw 2022-11-16 11:14:30 -05:00
Sasha Koshka e030f8632b Overhauled event system 2022-11-16 00:29:23 -05:00
Sasha Koshka de3e4b528b Redid color system 2022-11-15 11:16:29 -05:00
Sasha Koshka 79d8891c5b Added some stuff to draw debug bounding boxes 2022-11-14 23:32:05 -05:00
Sasha Koshka 82caf1efd8 Split X backend into multiple files 2022-11-13 22:44:19 -05:00
Sasha Koshka 5a0e0cd49b Set minimum window dimensions 2022-11-13 15:39:33 -05:00
Sasha Koshka 636e5ce7e7 Sus. Sus amongus.
amoogoos.
2022-11-12 22:43:36 -05:00
Sasha Koshka 48510db209 Added mouse button press input 2022-11-12 19:02:24 -05:00
Sasha Koshka 47ee6545cb X backend only sends what it needs to 2022-11-11 23:46:46 -05:00
Sasha Koshka e4f97a918a Application must now manually call application.Draw in all cases
This behavior is way more consistent, and it makes the drawing code
a bit simpler.
2022-11-11 23:24:20 -05:00
Sasha Koshka c865f7146a Buffer is now reallocated on window size change 2022-11-11 22:46:07 -05:00
Sasha Koshka 05c448f058 Applications can now manually call a screen redraw in a way that I think is thread safe 2022-11-11 22:30:59 -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 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