Question Switch Homebrew Development Documentation?

Discussion in 'Switch - Emulation, Homebrew & Software Projects' started by Tmsrise, Jun 4, 2018.

  1. Tmsrise
    OP

    Tmsrise Newbie

    Newcomer
    1
    Jun 3, 2018
    United States
    I apologize if this post is breaking any rules/goes against guidelines, first time posting.

    Anyway, I'm a novice coder that really only has experience creating terminal applications with C. Some of these applications go over ~1000 lines, if that is any indication of my current proficiency

    I've set up a simple development environment with devkit, yuzu, Msys2, and the like and have been able to run simple printf applications on my switch using ftpd to transfer the nro to the sd card without removing it, re-exploiting, and the like.

    However, I'm kinda stuck in terms of how to go forward. There's a lot of needed functions like

    gfxInitDefault();
    consoleInit(NULL);
    gfxFlushBuffers();
    gfxSwapBuffers();
    gfxWaitForVsync();

    that I can intuitively guess the purpose of, but I'd rather have full written explenations so I know I'm using them correctly.

    Really I just want documentation/information on the capabilities and limitations of what I can do now. For example, can I use ncurses.h to create ui? or is there a better method? What about actual graphics, sounds, images, and videos?

    Can anyone give me a basic rundown or point me in the right direction? Thanks
     
  2. waywardson07

    waywardson07 Member

    Newcomer
    2
    May 12, 2018
    United States
    https://switchbrew.github.io/libnx/gfx_8h.html

    thats the documentation for libnx... there's good info there but not really enough. if you want to understand something a little better that isn't documented well you can just look at the source: here and see whats going on.

    I have a very crude lib I wrote in C to simplify certain things like loading .jpg files... drawing shapes, etc. If you want to check it out let me know. It's nothing special but it may shed some light on how things work. It definitely took me a lot of trial and error to figure out how things work with libnx and I'm still not that great with it due to the lack of documentation.
     
    the_leg, machine69_420 and Tmsrise like this.
  3. HHM-Hugo

    HHM-Hugo Member

    Newcomer
    1
    Jul 30, 2019
    Netherlands
    i know it is a year ago but that lib sound very handy where can i find it?
     
  4. Manurocker95

    Manurocker95 Game Developer & Pokémon Master

    Member
    7
    May 29, 2016
    Spain
    Madrid
  5. HHM-Hugo

    HHM-Hugo Member

    Newcomer
    1
    Jul 30, 2019
    Netherlands
  6. Manurocker95

    Manurocker95 Game Developer & Pokémon Master

    Member
    7
    May 29, 2016
    Spain
    Madrid
    well, my examples have full game examples and SDL2 usage for image and audio rendering lol
     
Loading...