Colin McMillen mcmillen
mcmillen pushed to main at semicolin/totte 2023-07-07 16:01:17 -04:00
72e65b912c fix letterboxing calculation & use new UiGeometry
mcmillen pushed to main at semicolin/totte 2023-07-07 14:52:49 -04:00
b41321b0c7 move more calculations into UiGeometry
mcmillen pushed to main at semicolin/totte 2023-07-07 14:25:16 -04:00
6812699401 pull some calculations into a new UiGeometry class
mcmillen pushed to main at semicolin/totte 2023-07-07 02:33:15 -04:00
6670b358c0 add black border on the drawn box
mcmillen pushed to main at semicolin/totte 2023-07-07 01:45:03 -04:00
eff73b2ced make glClearColor actually black
mcmillen pushed to main at semicolin/totte 2023-07-07 01:08:18 -04:00
5c2b831ced send Color4 to GL.Uniform4
mcmillen pushed to main at semicolin/totte 2023-07-06 23:48:24 -04:00
5b135bc889 use Box2i instead of Rectangle
mcmillen pushed to main at semicolin/totte 2023-07-06 23:37:06 -04:00
c7bb0deb0c use Color4 constants
mcmillen pushed to main at semicolin/totte 2023-07-06 23:15:19 -04:00
cadc8e4779 Draw{Texture,Box}: allow passing in a different draw color
mcmillen pushed to main at semicolin/totte 2023-07-06 22:33:33 -04:00
dd7c3f6615 rm unused imports
mcmillen pushed to main at semicolin/totte 2023-07-06 22:13:40 -04:00
ca4ea40916 remove non-Rect versions of Draw{Texture,Box}
mcmillen pushed to main at semicolin/totte 2023-07-06 22:00:12 -04:00
cb3994a378 rm borderWidth constant, box thickness 2->3
mcmillen pushed to main at semicolin/totte 2023-07-06 21:56:06 -04:00
4ed9ed0796 make Draw{Box,Texture} take a Rectangle
mcmillen pushed to main at semicolin/totte 2023-07-06 21:27:05 -04:00
536abbf2b4 add DrawTexture() and DrawBox() functions
mcmillen pushed to main at semicolin/totte 2023-07-06 19:19:25 -04:00
4e0a15e3a0 move TEXTURE_WHITE loading; rm shader.Use() from OnRenderFrame()
mcmillen pushed to main at semicolin/totte 2023-07-06 18:39:27 -04:00
a94a3938dc add blank white texture
mcmillen pushed to main at semicolin/totte 2023-07-06 18:34:47 -04:00
ab9d9a0709 remove frameCount for now
mcmillen pushed to main at semicolin/totte 2023-07-06 18:32:18 -04:00
855c97241b add CameraInfo class; load textures from Image rather than a pathname
mcmillen pushed to main at semicolin/totte 2023-06-29 22:58:05 -04:00
904726aba6 SetVertices() now takes in a width and height instead of right and bottom
mcmillen pushed to main at semicolin/totte 2023-06-29 22:53:07 -04:00
0625040304 letterbox the image so that the aspect ratio is right