https://linen.dev logo
Join Discord
Powered by
# lime
  • s

    square-angle-35096

    01/16/2023, 5:22 PM
    where if it's disabled, some files in the source don't get compiled at all?
  • s

    square-angle-35096

    01/16/2023, 5:22 PM
    ik there's compiler checks like
    #if windows
  • e

    elegant-twilight-61392

    01/16/2023, 5:23 PM
    just put those in a
    #if thing
  • s

    square-angle-35096

    01/16/2023, 5:24 PM
    no other way?
  • s

    square-angle-35096

    01/16/2023, 5:24 PM
    like
  • e

    elegant-twilight-61392

    01/16/2023, 5:24 PM
    it can be whatever you want
  • s

    square-angle-35096

    01/16/2023, 5:24 PM
    an specific folder in source isn't included in compilation
  • s

    square-angle-35096

    01/16/2023, 5:24 PM
    for example
  • e

    elegant-twilight-61392

    01/16/2023, 5:24 PM
    no
  • s

    square-angle-35096

    01/16/2023, 5:24 PM
    ok then
  • e

    elegant-twilight-61392

    01/16/2023, 5:25 PM
    the closest thing is per-haxe-target files
  • s

    square-angle-35096

    01/16/2023, 5:25 PM
    guess i'll just use the compiler checks then
  • e

    elegant-twilight-61392

    01/16/2023, 5:26 PM
    these are per-haxe-target, not lime targets, and not custom defines
  • e

    elegant-twilight-61392

    01/16/2023, 5:27 PM
    so you can do File.cpp.hx that will only be used if the haxe compiler is targeting cpp (so windows, mac, linux, and maybe android in lime)
  • s

    square-angle-35096

    01/16/2023, 5:27 PM
    yea i wanted to do an custom define
  • s

    square-angle-35096

    01/16/2023, 5:27 PM
    but thanks anyways
  • h

    hallowed-ocean-84954

    01/16/2023, 7:48 PM
    I do something like this in parasol. Check out and see the examples and the tests dirs are not included unless defines are set.
  • h

    hallowed-ocean-84954

    01/17/2023, 4:18 PM
    Lime's WebGLRenderContext only supports a subset of the GL blending options. And while some obscure ones missing wouldn't be an issue but the ONE_MINUS family of constants is missing. Anyone know if this will be address at some point ? Curiously working around with Context3DBlendFactor I see that there are other omissions though the coverage is a lot better.
  • b

    brief-account-34985

    01/17/2023, 8:08 PM
    They exist though? Context3D boils down to GL after all, if Context3D.setBlendFactors() works on web then so does pure GL
  • h

    hallowed-ocean-84954

    01/17/2023, 8:37 PM
    So is it just that they are not exposed higher up ? What file is that that you are quoting above ?
  • b

    brief-account-34985

    01/17/2023, 9:53 PM
    What do you mean what file? It's just a variable
  • h

    hallowed-ocean-84954

    01/17/2023, 11:14 PM
    sorry - read that on my phone while in a mtg - ok I don't see that
  • h

    hallowed-ocean-84954

    01/17/2023, 11:15 PM
    oh I see now
  • h

    hallowed-ocean-84954

    01/17/2023, 11:16 PM
    I assumed because the others were BLEND_* that these would be too and even the doc didn't make that clear
  • h

    hallowed-ocean-84954

    01/17/2023, 11:17 PM
    Actually are the BLEND_* constants something else ? I see there are non-BLEND constants for DST_ALPHA and so on so now I wonder if I was just looking in the wrong place
  • b

    brief-account-34985

    01/17/2023, 11:57 PM
    The haxe docs are extremely lacking on OpenGL. If you want to learn, follow this instead: https://learnopengl.com/Advanced-OpenGL/Blending
  • b

    brief-account-34985

    01/17/2023, 11:57 PM
    (And if your only goal is to learn OpenGL, consider switching to C/C++)
  • h

    hallowed-ocean-84954

    01/18/2023, 12:09 AM
    That's what I'm using. In case your interested . C++ maybe. Haxe for now anyway
  • h

    hallowed-ocean-84954

    01/18/2023, 12:10 AM
    Thanx for the help on these constants
  • s

    square-angle-35096

    01/18/2023, 3:03 AM
    for some reason i got this linking error after compiling my project using the
    -final
    tag
    Copy code
    bat
    obj\msvc1964-nc\b1dac711_TextEngine.obj : fatal error LNK1136: invalid or corrupt file
1...515253...138Latest