Commit Graph

16 Commits

Author SHA1 Message Date
43eb5f4448 add [r, g, b] field to triangle, so we can draw coloured objects (next: add ability to change current colour) 2024-12-29 20:18:29 +00:00
6fa88769aa add modal text draw object to imperative shell, for drawing text like file browser 2024-09-27 09:08:19 +01:00
30dd9de17a rename 'button' (the coloured square that appears over a clickpoint) to 'dot' throughout codebase, because I may want actual buttons later 2024-08-14 21:24:46 +01:00
dd9ecfcbe5 delete shaders after linking them in program, which reduces memory by like 0.1 MB (very minor) 2024-08-14 01:44:30 +01:00
c740e5d751 delete shaders after linking them in program, which reduces memory by like 0.1 MB (very minor) 2024-08-14 01:43:53 +01:00
0d1ea9444b refactor to allow graph lines to be shown at start up 2024-08-03 06:05:26 +01:00
ee2274ffbc improve generated graph lines, so it aligns perfectly with clickPoints (but there are two 'todo' notes: one when the height is greather than the width, and also the constant vector when the program starts is an empty vector) 2024-08-03 04:40:53 +01:00
b01637ba3b a little refactoring 2024-08-02 00:05:24 +01:00
16fa1e49af get drawing of triangles implemented 2024-07-31 22:25:15 +01:00
6a2fe3ed18 a bit of formatting (no other changes in this commit) 2024-07-31 12:30:12 +01:00
94611eceee a little refactoring 2024-07-31 10:03:30 +01:00
6edb4f2556 remove hardcoded buttonVec, so later I can upload new vector data programmatically 2024-07-31 08:44:14 +01:00
5525725ef3 add buttonDrawObject and calls to successfully draw button 2024-07-31 08:41:19 +01:00
75b82fd888 a bit of refactoring (move 'graphLines' constant vector to imperative-shell/constants.sml), and get graphLines background drawn to the screen 2024-07-30 11:17:19 +01:00
d726823249 add function to assist in getting vertex/fragment buffers and shaders, to help with drawing 2024-07-30 10:48:46 +01:00
438f6458a0 create constant vector that looks like graph paper (grid for clicking points later) 2024-07-29 22:45:10 +01:00