switchbrew / switch-examples

Switch examples for devkitA64 and libnx.
https://devkitpro.org/viewforum.php?f=42
569 stars 101 forks source link

Trying to run simplegfx #14

Closed wgcv closed 6 years ago

wgcv commented 6 years ago

When i try to compile and run simplegfx give me a black screen in the emulator, I put the RGB888 image.bin in .data/image.bin also in ./source/data/image.bin. I don't have now a Nintendo switch, but the hello world work fine. I'm using nightly-mingw emulator untitled

WinterMute commented 6 years ago

image.bin only needs to be in data/image.bin

You also need to enable DISPLAY_IMAGE :- see https://github.com/switchbrew/switch-examples/blob/master/graphics/simplegfx/source/main.c#L5 & https://github.com/switchbrew/switch-examples/blob/master/graphics/simplegfx/source/main.c#L57

Just add #define DISPLAY_IMAGE to the top of main.c

yellows8 commented 6 years ago

AFAIK yuzu is broken for libnx-doublebuffering.

wgcv commented 6 years ago

@WinterMute I add #define DISPLAY_IMAGE but nothing, i think that is the emulator like yellows8 says. @yellows8 You knwo some emulator that i can use?

yellows8 commented 6 years ago

https://github.com/gdkchan/Ryujinx

wgcv commented 6 years ago

Solved @yellows8 thanks