SDL backend for BlitzMax

#blitzmax

Brucey 1baef7a017 Merge pull request #68 from bmx-ng/task/event-callbacks пре 1 месец
d3d9sdlgraphics.mod 1b0416ee42 Fix: [Brl.D3D9xxx] Reapplied SuperStrict-corrections пре 3 година
d3d9sdlmax2d.mod 361cff5c90 Cleanup DestroyRenderImage() пре 2 година
gl2sdlmax2d.mod 5a90ce9a74 Fix: Defer FBO-Deletion to main thread пре 5 месеци
glsdlgraphics.mod 5df4e8a2fc [Misc] Replace shorthand codes ($, %...) with their long versions пре 2 година
glsdlmax2d.mod 5a90ce9a74 Fix: Defer FBO-Deletion to main thread пре 5 месеци
macosmfi.mod 6619eae008 Disable dynapi. пре 3 година
sdl.mod 347575c94e Cast to new thread type. пре 8 месеци
sdlfreeaudio.mod 5df4e8a2fc [Misc] Replace shorthand codes ($, %...) with their long versions пре 2 година
sdlgamecontroller.mod 4a471c5bae Added to APIs. пре 3 година
sdlgraphics.mod 06e39cae0d Added support for event callbacks. пре 1 месец
sdlhaptic.mod dc8959eeec Updated to SDL 2.0.21.8ce003 пре 3 година
sdlhints.mod b5b19915eb Updated to SDL 2.26.0.5129a0 пре 2 година
sdljoystick.mod 5df4e8a2fc [Misc] Replace shorthand codes ($, %...) with their long versions пре 2 година
sdlrender.mod 06e39cae0d Added support for event callbacks. пре 1 месец
sdlrendermax2d.mod 06e39cae0d Added support for event callbacks. пре 1 месец
sdlsensor.mod dc8959eeec Updated to SDL 2.0.21.8ce003 пре 3 година
sdlsurface.mod 06e39cae0d Added support for event callbacks. пре 1 месец
sdlsystem.mod 06e39cae0d Added support for event callbacks. пре 1 месец
sdltimer.mod 5df4e8a2fc [Misc] Replace shorthand codes ($, %...) with their long versions пре 2 година
sdlvideo.mod 59dce2b650 Updated to SDL 2.28.0 пре 2 година
virtualjoystick.mod 5df4e8a2fc [Misc] Replace shorthand codes ($, %...) with their long versions пре 2 година
.gitignore 211441a164 Ignore .DS_Store files. пре 3 година
README.md 1f354a21bf Fixed include path. пре 6 година

README.md

A libSDL backend for BlitzMax

SDL.mod leverages libSDL as a replacement for some of the core BlitzMax modules that drive the events and graphics subsystems.

The SDL modules allow for improved graphics window management, more consistent cross-platform events, and extra functionality such as touch and haptic support, as well as acting as a base for taking BlitzMax to new platforms such as Android and iOS.

How Does it Work?

SDL.mod

Installation

Clone or download the repository source, and extract into your BlitzMax/mod folder. The main folder will be called sdl.mod and will contain each of the SDL modules.

You can then optionally build the modules, or have them automatically compiled when your application builds (bmk understands whenever dependent modules require compilation, and will add them to the build).

Requirements

Depending on which platform you are targeting, you may be required to install extra libraries as part of the compilation process.

Linux

As well as the usual packages required to build BlitzMax, the following developer packages are required for building the libSDL sources with SDL.mod :

Debian (Ubuntu, Mint, etc)


#### Fedora

nas-devel dbus-devel libudev-devel libXScrnSaver-devel```

openSUSE

libudev-devel libXss-devel

Although these are required for compilation, the runtime requirements for specific audio libraries are optional.

Windows

Doesn't require anything extra to build or run.

macOS

Doesn't require anything extra to build or run.