|
|
cf38d160d5
|
minor optimisation (do not have to branch on NO_TRIANGLE | FIRST | SECOND twice in update function; update function was branching on this itself, and call to 'getTriangleStageVector' was branching again which was redundant)
|
2024-07-31 21:21:45 +01:00 |
|
|
|
6e6de41889
|
keep triangle stages (clicked positions) drawn on screen, until triangle stages resets to NO_TRIANGLE
|
2024-07-31 21:15:39 +01:00 |
|
|
|
bd41e7d24d
|
code function to turn work-in-progress triangle (of triangle_stage of) into a square, so user can see where they have already clicked
|
2024-07-31 20:58:33 +01:00 |
|
|
|
087998ac6b
|
return normalised device coordinates together with vector, from getClickPos function
|
2024-07-31 14:52:12 +01:00 |
|
|
|
a2c499c933
|
a bit of fiddling to support different resolutions (as long as aspect ratio of window is 1:1)
|
2024-07-31 14:02:23 +01:00 |
|
|
|
d90ed8afa2
|
minor improvement (using vector literals in 'helpGetTrianglesVector', which is in functional-core/app-update.sml
|
2024-07-31 13:34:10 +01:00 |
|
|
|
95345131ab
|
refinements to 'getClickPos' function (and helper functions) in app-update.sml
|
2024-07-31 13:32:22 +01:00 |
|
|
|
6a2fe3ed18
|
a bit of formatting (no other changes in this commit)
|
2024-07-31 12:30:12 +01:00 |
|
|
|
d18e6f105d
|
additional scaffolding
|
2024-07-31 12:27:11 +01:00 |
|
|
|
29793cccbe
|
refactoring and scaffolding
|
2024-07-31 12:00:07 +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 |
|
|
|
b1b929e055
|
add function which generates a drawable vector given a mouse position
|
2024-07-30 19:30:59 +01:00 |
|
|
|
b8ab605c90
|
code function that indicates which area, if any, was clicked
|
2024-07-30 19:04:36 +01:00 |
|
|
|
e97768b18a
|
add callbacks for mouse movement and mouse clicking
|
2024-07-30 17:10:48 +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 |
|
|
|
6d5ce4cbf6
|
remove unused constant values from constants.sml
|
2024-07-29 22:54:40 +01:00 |
|
|
|
438f6458a0
|
create constant vector that looks like graph paper (grid for clicking points later)
|
2024-07-29 22:45:10 +01:00 |
|
|
|
228902297d
|
replace with bland readme
|
2024-07-28 14:23:54 +01:00 |
|
|
|
8b09209d0f
|
first commit
|
2024-07-28 14:22:47 +01:00 |
|
|
|
319ba58b3e
|
init
|
2024-07-28 14:22:17 +01:00 |
|