aboutsummaryrefslogtreecommitdiff
path: root/jim-sdl.c
AgeCommit message (Collapse)AuthorFilesLines
2021-01-10package: add ABI version checkingSteve Bennett1-3/+1
jim.h now includes JIM_ABI_VERSION that should be incremented whenever the ABI changes. Then all loadable modules should call Jim_CheckAbiVersion() to make sure they are loaded against the correct version. Add Jim_PackageProvideCheck() that does both Jim_CheckAbiVersion() and Jim_PackageProvide() to simplify the implementation of loadable extensions. Also rename the "big" sqlite3 extension to just sqlite to avoid a naming conflict with the smaller jim-sqlite3 extension. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2021-01-01sdl: Add basic text supportSteve Bennett1-2/+95
Requires a truetype font file Signed-off-by: Steve Bennett <steveb@workware.net.au>
2021-01-01sdl: convert to using jim-subcmdSteve Bennett1-152/+282
And add: - poll ?script? - optional window title Signed-off-by: Steve Bennett <steveb@workware.net.au>
2021-01-01sdl: Add support for SDL2Steve Bennett1-32/+105
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>
2020-06-05update all extensions for new Jim_DeleteCommand() APISteve Bennett1-1/+1
Now argument is Jim_Obj *, not const char * Signed-off-by: Steve Bennett <steveb@workware.net.au>
2016-08-28configure: Use pkg-config if possibleSteve Bennett1-2/+2
Use the new pkg-config support in autosetup to search for certain packages such as sqlite3 and sdl
2013-12-09Fix aio close from non-global namespaceSteve Bennett1-1/+1
aio [open], as well as similar commands return the name of the created command. If this is done in the non-global namespace, the returned name is implicitly scoped to the current namespace while the actual command is created in the global namespace. Thus [close] does not work when invoked in that namespace. The solution is to return a fully qualified name, such as ::aio.handle3 Note that this may also be a problem for similar command such as [proc] and [alias] that return command names. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-11-24Create build-jim-ext for building extensionsSteve Bennett1-2/+1
Simplifies the process of building loadable extensions Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-10-21Update source files to reflect FreeBSD licenceSteve Bennett1-13/+27
Some files still indicated the older Apache licence. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-09-26Get the SDL extension working againSteve Bennett1-2/+2
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-07-22Help Jim Tcl build on HaikuSteve Bennett1-1/+1
Don't use -Werror Prefer user CFLAGS over default options Haiku needs -lnetwork for networking functions Haiku does not have -lm Haiku does not have SIGIO Silence some warnings Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-06-01Add Jim_String() macroSteve Bennett1-1/+1
It is very common to get the string value without the length. Jim_String() is a macro which does that. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-12-21All Jim source should include jimautoconf.hSteve Bennett1-1/+1
This ensures that everything picks up the autoconf settings
2010-10-15Ensure that Tcl extensions can be built-in or externalSteve Bennett1-0/+3
All C extensions must call Jim_PackageProvide() make-c-ext ensures that Tcl extensions call Jim_PackageProvide() if compiled in. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-10-15Clean up the indentation messSteve Bennett1-61/+58
Use 'indent'. Not perfect, but at least consistent. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-10-15Make static extensions buildSteve Bennett1-2/+1
Also clean up some white space
2010-10-15Cutover to new workware fork of Jim TclSteve Bennett1-23/+14
Note that this commit removes some files and undoes some commits which will be reapplied later. This is the easiest way to switch across. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-02-01Bring corrected license as mentioned in freebsd/...Wojciech A. Koszek1-14/+23
Remove "FreeBSD license" statements, since it's not a correct term I believe. Small cleanup while being here.
2010-02-01Revert "Bring correct license -- I think freebsd/ directory has an agreements"Wojciech A. Koszek1-23/+14
This reverts commit 1e2fdd7d9e877fbe2c88a4c32f098ce1e575dc1d.
2010-02-01Bring correct license -- I think freebsd/ directory has an agreementsWojciech A. Koszek1-14/+23
for relicensing all files within Jim project. "FreeBSD license" isn't correct term, so basically remove it. Try to make the whole place consistent.
2008-06-16 * retire CVS keyword expansion. Plays havoc with patches.oharboe1-2/+0
2005-03-31Implemented the C API "background" for the packages system of Jim.antirez1-3/+4
2005-03-26some GFX primitive to SDL extension. Minor changes to jim.cantirez1-80/+86
2005-03-24A simple SDL extension for Jim.antirez1-0/+230