https://linen.dev logo
Join Discord
Powered by
# haxe-ui
  • a

    ambitious-knife-25690

    01/12/2023, 8:52 PM
    neat!
  • h

    happy-agent-4114

    01/12/2023, 9:29 PM
    Dying™️
  • h

    happy-agent-4114

    01/12/2023, 9:30 PM
    hi ian
  • b

    bright-gpu-74537

    01/12/2023, 9:30 PM
    very cool 🙂 Look forward to hearing more about it, seeing some screens 🙂
  • m

    melodic-advantage-23638

    01/12/2023, 11:56 PM
    Hi guys, if I wanted to make my own backend basically using Lime GL calls, what would be the best existing backend to base it off of?
  • a

    ambitious-knife-25690

    01/12/2023, 11:56 PM
    Probably openfl
  • h

    hallowed-ocean-84954

    01/13/2023, 12:02 AM
    sounds like a load of work to go that low level - openfl backend just maps haxeui widgets to openfl widgets as far as I know. Going to GL you have to implement you're own widgets right ? or maybe I'm not understanding what you mean ?
  • a

    ambitious-knife-25690

    01/13/2023, 12:03 AM
    i was looking at the haxeui skeleton earlier and components and rendering logic are separate
  • a

    ambitious-knife-25690

    01/13/2023, 12:03 AM
    I think Ian does reuse components that do exist, if they exist
  • a

    ambitious-knife-25690

    01/13/2023, 12:03 AM
    but i'm not sure what happens if they don't
  • a

    ambitious-knife-25690

    01/13/2023, 12:04 AM
    like if lime doesn't have a textbox, is there a textbox fallback that haxeui runs
  • h

    hallowed-ocean-84954

    01/13/2023, 12:05 AM
    yeah the if-it-doesn't-have-one case I don't know
  • h

    hallowed-ocean-84954

    01/13/2023, 12:07 AM
    but writing a backend I thought was mostly about picking up some widget library that exists - that said you could do a low level thingo just you'd end up writing a widget lib in GL (in this case) - which sounds like a lot of work
  • m

    melodic-advantage-23638

    01/13/2023, 12:08 AM
    So the bank ends are given certain types of drawing commands, such as draw a line or fill a rectangle, and display text. The drawing and font and text handling is done by the underlying backend.
  • m

    melodic-advantage-23638

    01/13/2023, 12:08 AM
    Err Backends
  • a

    ambitious-knife-25690

    01/13/2023, 12:08 AM
    yeah looks like it
  • a

    ambitious-knife-25690

    01/13/2023, 12:08 AM
  • a

    ambitious-knife-25690

    01/13/2023, 12:08 AM
    the skeleton
  • a

    ambitious-knife-25690

    01/13/2023, 12:09 AM
    for flixel imagedata was something like
    typedef ImageData = Frame
  • m

    melodic-advantage-23638

    01/13/2023, 12:35 AM
    I've been looking at the backends for a couple days now. The heaps backend makes the most sense to me, since I can tell exactly what the code is doing, drawing lines and building polygons to be filled. Some of the others I'm having a hard time finding what they're doing since the drawing code for saw OpenFL is buried deep in the engine.
  • h

    hallowed-ocean-84954

    01/13/2023, 12:39 AM
    it sounds like you want to create your own unique hand drawn widgets - I guess I'm not sure what you are trying to do
  • m

    melodic-advantage-23638

    01/13/2023, 12:45 AM
    I want to create a backend using a lime rendercontext to draw the controls. I'm pretty sure that a backend doesn't need to have an existing library of controls. It can if it maps to native controls like the windows target, but in the case of game engines, haxeui issues draw commands to the backend like LineTo, Circle, MoveTo, etc.
  • h

    hallowed-ocean-84954

    01/13/2023, 12:46 AM
    you could I think yes
  • m

    melodic-advantage-23638

    01/13/2023, 12:46 AM
    Yeah so I was wondering which backend would be the best to use as a guide for low level rendering like that.
  • m

    melodic-advantage-23638

    01/13/2023, 12:50 AM
    I'm thinking it's the heaps backend.
  • h

    hallowed-ocean-84954

    01/13/2023, 12:52 AM
    well like you say openfl basically works with openfl widget - like the haxeui textfield has a openfl textfield under it - so that's too highlevel I would think. I think heaps would be closer but even there things like textinput map to a hxd textinput.
  • h

    hallowed-ocean-84954

    01/13/2023, 12:53 AM
    I guess if I were doing this I'd try to do like a label implementation first - something really simple
  • h

    hallowed-ocean-84954

    01/13/2023, 12:54 AM
    mind you that's a component so I'm not sure how simple that is
  • m

    melodic-advantage-23638

    01/13/2023, 12:58 AM
    Yeah I think the font and text handling is going to be tricky. I'm thinking I get the basic set of low level drawing commands working to draw the basic shapes. What I am thinking of trying next is getting a sample haxeui-heaps app running and just put a breakpoint in and start looking at how it all works.
  • h

    hallowed-ocean-84954

    01/13/2023, 12:58 AM
    yep that's a good approach I think
1...137113721373...1687Latest