• LalSalaamComrade@lemmy.ml
    link
    fedilink
    English
    arrow-up
    10
    ·
    edit-2
    11 months ago

    Printing a gradient triangle using C, in OpenGL, takes about a few 100-130 lines - it could be lesser, I think. In Vulkan, it takes about a thousand lines.

    Source: I wrote a “simple” gradient triangle in Vulkan, using C during my free time. Created the gradient triangle in C as a part of my university coursework.

    • kingthrillgore@lemmy.ml
      link
      fedilink
      arrow-up
      5
      ·
      11 months ago

      It takes 75 lines to draw a blank window. It takes like three in CoreAnimation in macOS. We really need an OSS take on CoreAnimation but I’m also fine leaving the graphics work to a game engine.