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

    tall-teacher-57409

    05/07/2023, 4:13 AM
    hm I can't find a glGenTextures alternative in lime docs
  • b

    bulky-insurance-39338

    05/07/2023, 4:14 AM
    do you use of this: ?
  • t

    tall-teacher-57409

    05/07/2023, 4:15 AM
    yep
  • t

    tall-teacher-57409

    05/07/2023, 4:15 AM
    I just looked in GL.hx
  • b

    bulky-insurance-39338

    05/07/2023, 4:16 AM
    so no abstract wrappers there anymore into holy 🍝 source (^_^)=?
  • t

    tall-teacher-57409

    05/07/2023, 4:17 AM
    I guess :/
  • b

    bulky-insurance-39338

    05/07/2023, 4:17 AM
    (around the gl-
    context
    .. cant find it anymore .)
  • t

    tall-teacher-57409

    05/07/2023, 4:18 AM
    yeah same
  • b

    bulky-insurance-39338

    05/07/2023, 4:20 AM
    wow -> sourcecode about looks really cleaned up into the devel-trunk
  • b

    bulky-insurance-39338

    05/07/2023, 4:20 AM
    \o/
  • t

    tall-teacher-57409

    05/07/2023, 4:22 AM
    wait I found
    gl.createTexture
  • t

    tall-teacher-57409

    05/07/2023, 4:23 AM
    and then I can use
    gl.bindTexture
    to bind the texs
  • b

    bulky-insurance-39338

    05/07/2023, 4:24 AM
    yep (take care what you
    active
    textures is per shader-pass )
  • t

    tall-teacher-57409

    05/07/2023, 4:25 AM
    alrr 👍
  • b

    bulky-insurance-39338

    05/07/2023, 4:34 AM

    https://www.youtube.com/watch?v=owLY5Nc7P1Q▾

  • t

    tall-teacher-57409

    05/07/2023, 6:37 AM
    https://gist.github.com/bwkam/943031c75eb72d3987803d1af6ca4c01 no idea where's that coming from

    https://cdn.discordapp.com/attachments/769686258049351722/1104658205386231848/image.png▾

  • t

    tall-teacher-57409

    05/07/2023, 6:40 AM
    the js points to this, so something looks wrong with my
    srcOffset
    param in
    bufferData
    , or actually no its deffo something else

    https://cdn.discordapp.com/attachments/769686258049351722/1104659097686642688/image.png▾

  • t

    tall-teacher-57409

    05/07/2023, 12:48 PM
    update to this: i was dumbass and didn't even create the ebo buffer 💀
  • t

    tall-teacher-57409

    05/07/2023, 12:59 PM
    bruh what

    https://cdn.discordapp.com/attachments/769686258049351722/1104754504819277926/image.png▾

  • t

    tall-teacher-57409

    05/07/2023, 1:03 PM
    if it was really done asynchronously as the error says, then I'd expect getImage to return a promise/future.
  • t

    tall-teacher-57409

    05/07/2023, 1:11 PM
    wait I just looked at SimpleImage, and they did it like that

    https://cdn.discordapp.com/attachments/769686258049351722/1104757375501606922/image.png▾

  • h

    hallowed-ocean-84954

    05/07/2023, 1:17 PM
    yeah that's what i do - I've never seen the "exists asynchronously" message. But you're doing your primary debugging on HTML5 whereas I did mine on HL.
  • t

    tall-teacher-57409

    05/07/2023, 1:18 PM
    yep
  • t

    tall-teacher-57409

    05/07/2023, 1:19 PM
    yay

    https://cdn.discordapp.com/attachments/769686258049351722/1104759369104642109/image.png▾

  • t

    tall-teacher-57409

    05/07/2023, 1:21 PM
    but something im confused about, why the tex coordinates aren't the same as the rec coordinates?

    https://cdn.discordapp.com/attachments/769686258049351722/1104759937852244000/image.png▾

  • t

    tall-teacher-57409

    05/07/2023, 1:21 PM
    (that's how they did in the chapter)
  • t

    tall-teacher-57409

    05/07/2023, 1:24 PM
    I mean

    https://cdn.discordapp.com/attachments/769686258049351722/1104760729762025553/image.png▾

  • t

    tall-teacher-57409

    05/07/2023, 1:24 PM
    that's how I think it looks like :P
  • t

    tall-teacher-57409

    05/07/2023, 1:25 PM
    (I know the rectangle is two triangles but just drew it as a rectangle for the sake of simplicity)
  • t

    tall-teacher-57409

    05/07/2023, 1:25 PM
    the black is supposed to be the rectangle, and the texture is the purple
1...108109110...138Latest