SDL2 bindings for SwiftForth
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
tutorial
LICENSE
README.md
SDL2.dll
SDL2.so
SDL2_image.dll
SDL2_image.so
libjpeg-9.dll
libpng16-16.dll
libtiff-5.dll
libwebp-4.dll
sdl.f
sdl_audio.f
sdl_clipboard.f
sdl_controller.f
sdl_cpuinfo.f
sdl_error.f
sdl_events.f
sdl_filesystem.f
sdl_haptic.f
sdl_hints.f
sdl_image.f
sdl_joystick.f
sdl_keyboard.f
sdl_loadso.f
sdl_log.f
sdl_main.f
sdl_messagebox.f
sdl_mouse.f
sdl_mutex.f
sdl_pixels.f
sdl_power.f
sdl_rect.f
sdl_render.f
sdl_rwops.f
sdl_scancode.f
sdl_shape.f
sdl_std.f
sdl_surface.f
sdl_system.f
sdl_timer.f
sdl_touch.f
sdl_version.f
sdl_video.f
zlib1.dll

README.md

SDL2 Forth

This repository contains bindings for the SDL2 library for SwiftForth. With it you can create games, interactive novels, multimedia apps, etc from within Forth.

Currently most of SDL2 is supported, but there are a few rough edges.

The tutorials can be run as:

sf tutorial/01_hello_world.f

under Linux. Under Windows, you can:

cd c:\path\to\sdlforth
include tutorial/01_hello_world.f

and get the same result. I have not yet tested this on Mac OS X, but it should run same as Linux with the appropriate .so file.

Currently most OSes ship with 64 bit builds of SDL2, but SwiftForth is still just a 32 bit application. This can result in a failure to launch. This repository contains 32 bit .so and .dll files locally so that it can run on Linux and Windows resprectively. For your application, you will need to make sure that they're in a path that SwiftForth can find.

Enjoy,

Dave Goehrig dave@dloh.org