aboutsummaryrefslogtreecommitdiff
path: root/examples/sdltest.tcl
AgeCommit message (Collapse)AuthorFilesLines
2021-01-01sdl: Add basic text supportSteve Bennett1-11/+30
Requires a truetype font file Signed-off-by: Steve Bennett <steveb@workware.net.au>
2021-01-01sdl: convert to using jim-subcmdSteve Bennett1-20/+38
And add: - poll ?script? - optional window title Signed-off-by: Steve Bennett <steveb@workware.net.au>
2021-01-01sdl: Add support for SDL2Steve Bennett1-0/+28
Now we only support using pkg-config to find SDL, and prefer SDL2 over SDL. For compatibility between versions, the render surface is now cleared on flip. And closing the window now results in a JIM_EXIT return code from flip. Also supports [sdl clear] to clear the background to a given colour. Signed-off-by: Steve Bennett <steveb@workware.net.au>