https://linen.dev logo
Join Discord
Powered by
# openfl
  • b

    billowy-train-84579

    01/21/2023, 10:45 AM
    wait no, we probably cannot launch a web browser in a seperate android process
  • b

    billowy-train-84579

    01/21/2023, 10:54 AM
    it doesnt look like we can 😦
  • p

    powerful-morning-89

    01/21/2023, 11:02 AM
    Are you still trying to do that Cppia host in seperate process Android thing? I've told you a number of times what the approach I would take is. What are you stuck on?
  • b

    billowy-train-84579

    01/21/2023, 11:25 AM
    i cant seem to find a way to do this in android using android's own SDK
  • p

    powerful-morning-89

    01/21/2023, 11:58 AM
    And of course you'll need to fork SDL and Lime and make them support running in a service and all the GL sharing stuff etc
  • p

    powerful-morning-89

    01/21/2023, 11:59 AM
    (And I suggest making a PoC in Java/Kotlin before trying to do it in Haxe)
  • b

    billowy-train-84579

    01/22/2023, 1:10 AM
    @powerful-morning-89 cppia can crash natively, right?
  • p

    powerful-morning-89

    01/22/2023, 7:00 AM
    "crash natively" you mean segfault (instead of an ordinary NPE)? Sure, just pass null to some std lib api that does not do null-checks internally.
  • b

    billowy-train-84579

    01/22/2023, 8:56 AM
    Alright
  • f

    full-journalist-82607

    01/22/2023, 10:09 AM
    @big-angle-82801 @best-agent-85158 Here the new cleaner PR with better text alignment https://github.com/openfl/openfl/pull/2614
  • b

    bright-restaurant-79188

    01/22/2023, 11:16 AM
    How can I build a native linux or mac executable from Windows with openfl? Every time I do "haxelib run open fl build "PROJECTXMLFILE" linux" or "haxelib run open fl build "PROJECTXMLFILE" mac", it spits out a neko executable instead of a native one. I don't know how to tell it to NOT compile to neko, since it seems to be some kind of default
  • p

    powerful-morning-89

    01/22/2023, 11:21 AM
    You don't, cross-compiling from Windows to Linux or macOS is complicated and not supported in the tooling.
  • p

    powerful-morning-89

    01/22/2023, 11:22 AM
    So you're stuck with Neko. (and you can't use hashlink either, but that's a bug with an open PR to fix it)
  • b

    big-angle-82801

    01/22/2023, 12:40 PM
    thanks, that works really well!
  • b

    bright-restaurant-79188

    01/23/2023, 12:31 AM
    Oh ok. So to get native binaries I would need to compile the code on the target operating system?
  • e

    elegant-twilight-61392

    01/23/2023, 1:14 AM
    to compile for macos, you need to be on a mac. to compile for linux, you need to be running linux (or in wsl)
  • b

    bright-restaurant-79188

    01/23/2023, 1:16 AM
    alright thanks for the info 👍
  • b

    billowy-train-84579

    01/24/2023, 4:58 AM
    does openfl support running in lua
  • b

    billowy-train-84579

    01/24/2023, 4:58 AM
    specifically LuaJIT
  • l

    late-australia-6304

    01/24/2023, 10:32 PM
    can someone help me out with shader buffers?
  • l

    late-australia-6304

    01/24/2023, 10:33 PM
    im just using it with a array so it can be a dynamic array which i want
  • l

    late-australia-6304

    01/24/2023, 10:33 PM
    also im using a struct in glsl with it, but i dont know how to pass it in
  • l

    late-australia-6304

    01/24/2023, 10:35 PM
    bassicly im trying to use one shader and apply effects to parts of the screen with an array and a struct
  • l

    late-australia-6304

    01/24/2023, 10:35 PM
    but i dont know how i would pass in the data
  • l

    late-australia-6304

    01/24/2023, 10:36 PM
    (this is one attempt i tried)
  • l

    late-australia-6304

    01/24/2023, 10:36 PM
    (i thought this would create one struct)
  • l

    late-australia-6304

    01/24/2023, 10:38 PM
    (i dont even know how to compile this with correct syntax)
  • b

    bright-restaurant-79188

    01/24/2023, 10:44 PM
    I don't know if this belongs in openfl or lime, since my project seems to use both, but how can I disable antialiasing?
  • e

    elegant-twilight-61392

    01/24/2023, 10:55 PM
    openfl is built on lime
  • a

    able-action-74275

    01/24/2023, 10:55 PM
    looks like it's
    window.context.attributes.antialiasing
    and normally set in window element but possibly available at run time too, just seeing if I can spot a difference when changing it
1...323334...57Latest