Skip to content

Instantly share code, notes, and snippets.

View datee's full-sized avatar

Datee datee

  • Logic Interactive
  • Oslo, Norway
  • X @d0oo0p
View GitHub Profile
@datee
datee / HL-C_compilation.md
Last active October 10, 2024 09:33
HL/C compilation (OpenFL devlog)

OpenFL devlog: HashLink/C compilation | Josh Tynjala

I thought I’d share another update about the new features that I’ve been working on recently for the next versions of OpenFL and Lime. In today’s post, I’m going to talk a bit about expanding OpenFL’s HashLink target to support not just HashLink/JIT, as it has for a while, but also add support for HashLink/C on Windows, macOS, and Linux.

If you’re not familiar, OpenFL is an implementation of the APIs available in Adobe Flash Player (and Adobe AIR) using the Haxe programming language. Projects built with Haxe can be cross-compiled to JavaScript, C++, and many other targets — making it available on the web, desktop apps, mobile apps, game consoles, and more. No browser plugins required, and fully native C++ performance.

HL/JIT vs HL/C

HashLink is a virtual machine for the Haxe programming language. As I understand it

@datee
datee / KhaRoundedRect.hx
Last active January 26, 2021 15:06
Kha rounded rectangle
/**
* Draws a quadratic curve.
* @param x1 X start.
* @param y1 Y start.
* @param x2 X control point, used to determine the curve.
* @param y2 Y control point, used to determine the curve.
* @param x3 X finish.
* @param y3 Y finish.
* @param segments Increasing will smooth the curve but takes longer to render. Must be a value greater than zero.
*/
@datee
datee / HaxePiSetup.md
Created January 10, 2021 11:43
Install and setup Ocaml, download, build and setup Haxe + Neko on debian (Raspberry Pi)

Haxe 4.1.4 from source on Debian:

sudo apt-get update

sudo apt-get upgrade

sudo apt-get install git

Install Ocaml / Opam :