Two languages, one opengl context

Поделиться
HTML-код
  • Опубликовано: 19 июн 2024
  • Stream from May 15, 2024 at / sphaerophoria
    00:00 Intro
    09:10 Call any opengl call from zig
    25:20 Shader compilation
    56:20 Some visible progress
    01:03:05 OpenGL callbacks for every function we use
    01:32:45 Render frame from zig
    01:51:45 Video playback!

Комментарии • 17

  • @sphaerophoria
    @sphaerophoria  Месяц назад +1

    See updated code at github.com/sphaerophoria/video-editor/commit/641284a023b714494d07334ed27a610e42bb5953
    Reminder that you ware watching me discover what I think is a good way to structure things :)
    In this case I think using "callbacks" here for opengl was a mistake. I was originally thinking about having multiple GUI implementations, and thought that since there are multiple impls, we need runtime adjusted function pointers. This is NOT true. If we swap the GUI, we swap it at link time. In fact in the current implementation there is a version of that with the mock ui and the real ui. See new gui.h for more context

  • @Ubervisor_
    @Ubervisor_ Месяц назад +6

    the title gave me shivers

  • @Dje4321
    @Dje4321 Месяц назад +2

    This sounds like hell on earth but cool none the less

  • @aidennwitz
    @aidennwitz Месяц назад

    holy shit, so much boilerplate, such patience, wow. i would just decide to not use a gui library at all if it involved this much preparation, so mad props

  • @_bradleystrider
    @_bradleystrider Месяц назад +2

    39:15 the lsp wasn't slow, you were recording a macro for like 5 minutes lol

  • @nikkbronx
    @nikkbronx Месяц назад

    Came here from Twitter

  • @cherkim
    @cherkim Месяц назад +1

    When did you decide to become smart enough to create something like this?

    • @sphaerophoria
      @sphaerophoria  Месяц назад +14

      I think it's more about exposure than intelligence :). If you try to make stuff, and keep saying "what's that do?", eventually you end up with lots of context that helps you make connections. And once you have context, things that used to seem hard become simple

    • @dev-mantas
      @dev-mantas Месяц назад

      @@sphaerophoria sounds like something an ai would say

  • @pietraderdetective8953
    @pietraderdetective8953 Месяц назад

    I just want to know who won?

    • @sphaerophoria
      @sphaerophoria  Месяц назад +2

      They learned to work together and now they're friends

    • @Dje4321
      @Dje4321 Месяц назад

      ​@@sphaerophoriabut who's topping?

    • @creator-link
      @creator-link Месяц назад

      @@Dje4321I think it’s obvious that rust is a bottom

    • @sphaerophoria
      @sphaerophoria  Месяц назад

      When I drew them I thought they were children :\