Homebrew Question I dont understand this in the Switch Homebrew Example

xXxSwagnemitexXx

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
OP
Member
Joined
Dec 7, 2016
Messages
674
Trophies
0
Age
27
Location
New Donk City
XP
1,003
Country
United Kingdom
In editing the main.c file for examples/switch/graphics/simplegfx i found this
upload_2018-6-26_8-6-26.png

how do i get an RGB888 .bin file?
 

xXxSwagnemitexXx

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
OP
Member
Joined
Dec 7, 2016
Messages
674
Trophies
0
Age
27
Location
New Donk City
XP
1,003
Country
United Kingdom
Make an array of unsigned bytes 1280*720*3 elements long named "imageptr". Each pixel is represented by 3 bytes, first the R value, then G value, then B value. Every 3840 bytes represent one row starting from the top of the image.
thanks
There are many converters on the internet that support png to rgb888 or jpg to rgb888.

Just use google.
i thought i had to convert from jpg/png to bin, thanks for clarification.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • K3Nv2 @ K3Nv2:
    Temp is back back again
    +1
  • Xdqwerty @ Xdqwerty:
    why were servers down?
  • K3Nv2 @ K3Nv2:
    Because it was telling a friend
    +1
  • Xdqwerty @ Xdqwerty:
    @K3Nv2, telling what?
  • SylverReZ @ SylverReZ:
    @Xdqwerty, Maintenance most likely.
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, understandable
  • SylverReZ @ SylverReZ:
    Hopefully it wasn't a DDoS attack.
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, i was already believing that was the reason it was down
  • SylverReZ @ SylverReZ:
    @Xdqwerty, The response from the page said it had too many connections. So perhaps, flooded traffic?
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, it didnt say that for me
  • SylverReZ @ SylverReZ:
    @Xdqwerty, It only shows that if you do 'View Source', right below that it'll tell you the SQL response query. I feel like a nerd lol.
  • SylverReZ @ SylverReZ:
    But for everyone, it said unexpected database error.
    +1
  • BigOnYa @ BigOnYa:
    Just said database error for me
    +2
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, she said it only said "too many connections" when you view the source
    +1
  • Xdqwerty @ Xdqwerty:
    btw gonna try to actually beat touhou 6
    +1
  • SylverReZ @ SylverReZ:
    @Xdqwerty, Have fun.
    +1
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, i recall playing some hard undertale fangames way before playing touhou, like the genocide asgore fangame or the mettaton neo 2.0 one
  • Xdqwerty @ Xdqwerty:
    so atleast im already kinda used to bullet hell games
  • Xdqwerty @ Xdqwerty:
    and yea i played both undertale and deltarune too although those are a piece of cake compared to any touhou game
  • Xdqwerty @ Xdqwerty:
    aaaaaaannnnnnd i already lost all my continues
  • Xdqwerty @ Xdqwerty:
    I only set three default lives btw
  • Xdqwerty @ Xdqwerty:
    cuz of score
  • Xdqwerty @ Xdqwerty:
    i think i first should focus more on beating the game rather than obtaining a high score
  • Xdqwerty @ Xdqwerty:
    good night
    Xdqwerty @ Xdqwerty: good night