hashlink
hashlink copied to clipboard
Improved documentation for embedding HL
This is very cool tech and the Embedding Hashlink wiki page needs a lot of love. "HashLink can be easily embedded into any application" is not really true when the knowledge needed to bootstrap it is distributed across a non-trivial C project with few if any comments.
I'm not sure what there is to say more. You have a full 160 lines C code example (which is not much) available here:
https://github.com/HaxeFoundation/hashlink/blob/master/src/main.c
What else would be required ?
it's seem there are no api about haxe in hl call native c api ?
@sonygod no, you can't directly call C api for now
@ncannasse because current I want to embed into Unity and call unity api in hl.
@sonygod atm the best way is to write wrappers like we do for directx/sdl/etc.
@ncannasse how to invoke hl static function from c++? can you give a small example?
I can't understand from here your description
class Main
{
static function main()
{
}
public static function start(){
Debug.Log("hl realy startnow ");
}
}