Skip to content

The core backend library used to power Vortex. The library is designed to abstract GL rendering into easier to understand classes/functions.

License

Notifications You must be signed in to change notification settings

vortex-haxe/canvas2d

Repository files navigation

Canvas2D

The core backend library used to power Vortex, designed to abstract lower level parts of an application/game engine into friendlier classes/functions.

The library is meant to feel like lime and openfl combined into one whole library, with fresh backends pulled away from Flash!

You setup your Canvas2D projects with config.xml files! These files configure things such as window title, framerate, etc.

Refer to the wiki for an explanation on what config.xml files do.

Testing your project is as simple as one command:

haxelib run canvas2d test

Important

Canvas2D requires Haxe 4.3+ to compile, it will not work on anything below.

🖥 Platforms

Canvas2D can natively compile to the following platforms via hxcpp:

  • Windows 8.0+
  • macOS Ventura+
  • Linux (Ubuntu, Debian, Fedora, openSUSE, Arch)

🧱 Libraries

Canvas2D uses a few other libraries to work, such as:

  • hxsdl

    • 🪟 Spawns the main game window
    • 🖱️ Handles input for keyboard, mouse and controllers.
  • 🖼️ hxstb_image

    • 🖥 Responsible for loading the data of PNG, JPG, BMP, and HDR files
  • hxglad

    • 🖼️ Renders textures to the game window
    • 📷 Allows shaders to be applied to textures
  • 🎵 hxdr_mp3

    • 🖥 Responsible for loading the data of MP3 files
  • 🎵 hxdr_wav

    • 🖥 Responsible for loading the data of WAV files
  • 🎵 hxstb_vorbis

    • 🖥 Responsible for loading the data of OGG files
  • hxal

    • 🔊 Responsible for playing back the data of compatible audio files

About

The core backend library used to power Vortex. The library is designed to abstract GL rendering into easier to understand classes/functions.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages