HashLink

HashLink is a virtual machine for the Haxe programming language. By targeting HashLink you are also able to generate Native C code for your project.

Heaps is able to support both SDL and DirectX. In order to specify which you’d like to use, you simple need to include the appropriate library when compiling your project.

For DirectX

  1. -lib hldx

For SDL

  1. -lib hlsdl

To compile for HashLink use the following example.

  1. # class paths
  2. -cp src
  3. # entry point
  4. -main Main
  5. # libraries
  6. -lib heaps
  7. -lib hldx
  8. #-lib hlsdl
  9. # output
  10. -hl bin/game.hl