done converting coordinates to triangles for exporting (but I still need header and footer for that)
This commit is contained in:
@@ -12,14 +12,14 @@ struct
|
||||
, right, top
|
||||
]
|
||||
|
||||
fun ltrbToVertexRgb (left, top, right, bottom, r, g, b) =
|
||||
#[ left, bottom, r, g, b
|
||||
, right, bottom, r, g, b
|
||||
, left, top, r, g, b
|
||||
fun ltrbToVertexRgb (startX, startY, endX, endY, r, g, b) =
|
||||
#[ startX, endY, r, g, b
|
||||
, endX, endY, r, g, b
|
||||
, startX, startY, r, g, b
|
||||
|
||||
, left, top, r, g, b
|
||||
, right, bottom, r, g, b
|
||||
, right, top, r, g, b
|
||||
, startX, startY, r, g, b
|
||||
, endX, endY, r, g, b
|
||||
, endX, startY, r, g, b
|
||||
]
|
||||
|
||||
fun fromPixelX (xpos, windowWidth, windowHeight) =
|
||||
|
||||
Reference in New Issue
Block a user