What is MSXgl?

From MSX Game Library

(Redirected from What is MSX-GL?)

MSXGL is a free and open source Game Library wrote in C and targeting MSX computers.

The goal of this library is to offer to C programmers, the whole set of functionalities to create a game with high performances.
Even if a C program can never be as efficient as a program written entirely in assembler, the goal is to try to get as close as possible.

To achieve this goal, the library is dynamically compiled to allow the user to configure the functionalities to best suit his needs.
Also, the most expensive features are written in assembler.

The other goal was to create a library that can be totally independent of the BIOS. This makes it much easier to use the 16K of page 0.
The library also provides interrupt handling code to create ROMs that always remain on page 0.

Many sample programs are available to demonstrate the different features of the library.

The Build Tool allows in 1 click to create a final program for a large number of target formats:

  • Plain ROM from 8K to 64K (interrupt handler can be install in page 0),
  • Mapped ROM from 64K to 4096K (ASCII-8, ASCII-16, Konami and Konami SCC mappers),
  • MSX-DOS 1 or 2 binary program,
  • BASIC binary program.

The library supports the following devices:

  • Video: MSX1 (TMS9918), MSX2 (V9938), MSX2+ (V9958) and V9990.
  • Audio: PSG (AY-3-8910), MSX-Music (OPLL), MSX-Audio and Konami SCC/SCC+.
  • Input: Keyboard, Joystick, Mouse, Paddle and Ninja Tap.
  • ROM mapper, slot manager, Real Time Clock (RP-5C01), ...

Here are also the supported audio formats:

Many thanks to the members of the MSX Ressource Center, MSX Village and all the Discord Logo.png Discord server members who have been very helpful.

The library is distribute under Creative Commons BY-SA license. Tools or sources from other authors could use other free license.


Directories

πŸ“ MSXgl
β”œβ”€πŸ“ engine          | MSXgl library
β”‚ β”œβ”€πŸ“ content       | Data ready to include (font, math table)
β”‚ β”œβ”€πŸ“ datasrc       | Data source
β”‚ β”œβ”€πŸ“ doc           | Documentation
β”‚ β”œβ”€πŸ“ lib           | Static library binaries (perhaps one day...)
β”‚ β”œβ”€πŸ“ script        | Build Tool scripts
β”‚ β””β”€πŸ“ src           | Library sources (.c and .h)
β”œβ”€πŸ“ projects        | Programs (this is where you will create your own project)
β”‚ β”œβ”€πŸ“ example       | Example game
β”‚ β”œβ”€πŸ“ samples       | Sample programs (VDP, PSG, Sprite, ...)
β”‚ β”œβ”€πŸ“ targets       | Samples to test all target (ROM, DOS)
β”‚ β”œβ”€πŸ“ template      | MSX 1 template sample (can be use as base to create a new program)
β”‚ β””β”€πŸ“ template_msx2 | MSX 2 template sample (can be use as base to create a new program)
β””β”€πŸ“ tools           | Tools
  β”œβ”€πŸ“ MSXtk         | MSX tool kit utilities (MSXhex is used in the build process)
  β”œβ”€πŸ“ audio         | Tools used with audio 
  β”œβ”€πŸ“ build         | Tools used by the Build tool
  β”œβ”€πŸ“ compress      | Tools used to compress data
  β””β”€πŸ“ sdcc          | SDCC (binaries for Windows and Linux, and z80 lib)

How to...