Homebrew Question Switch Homebrew Development Documentation?

Tmsrise

Member
OP
Newcomer
Joined
Jun 3, 2018
Messages
9
Trophies
0
Age
24
XP
95
Country
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
 

waywardson07

Member
Newcomer
Joined
May 12, 2018
Messages
12
Trophies
0
XP
161
Country
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.
 

HHM-Hugo

Member
Newcomer
Joined
Jul 30, 2019
Messages
10
Trophies
0
Age
42
XP
58
Country
Netherlands
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.
i know it is a year ago but that lib sound very handy where can i find it?
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    SylverReZ @ SylverReZ: Hello @realtimesave.