Homebrew Displaying images (JPEGs)

  • Thread starter Deleted User
  • Start date
  • Views 1,725
  • Replies 4
D

Deleted User

Guest
OP
Lorem Ipsum is slechts een proeftekst uit het drukkerij- en zetterijwezen. Lorem Ipsum is de standaard proeftekst in deze bedrijfstak sinds de 16e eeuw, toen een onbekende drukker een zethaak met letters nam en ze door elkaar husselde om een font-catalogus te maken.
 
Last edited by ,

pembo

Well-Known Member
Member
Joined
Jun 1, 2009
Messages
105
Trophies
1
XP
131
Country
diego_pmc said:
I've been trying to figure this out for quite some time, but I always got to a dead end. I tried using the method described at the CodeMii tutorial, but it's not a very nice way to do it; I've tried using several third-party libraries, including GRRLIB, but this one's not good for me either. Images are very easy to display with GRRLIB, but I also have a lot of text in my game, and it's very hard to work with text (the way I need it) in GRRLIB.

So my question is, what is the optimal way to display images, keeping in mind that these are my requirements:
  • If it's a library it must not be in conflict wih 'printf' (GRRLIB, for example, is);
  • I need to be able to specify its position (this will probably not be a problem
    smile.gif
    );
  • I need to be able to stretch the image on the whole screen;
  • I need to be able to remove the image;
  • I need to be able to print text over the image.
So can anyone help me with a recommendation, and perhaps a template? (libjpeg maybe?)

it's not particularly easy to mix images in with a console mode application.

If you want to use images, I'd recommend using GRRLib as a starter, though you can't then use console text, so you have to use the GRRLib commands to put text onto the screen, i.e.

CODEGRRLIB_Printf(380,370, tex_font, 0xFFFFFFFF, 1, "This is some text!");

where tex_font is the image file containing the font.
 
D

Deleted User

Guest
OP
Lorem Ipsum is slechts een proeftekst uit het drukkerij- en zetterijwezen. Lorem Ipsum is de standaard proeftekst in deze bedrijfstak sinds de 16e eeuw, toen een onbekende drukker een zethaak met letters nam en ze door elkaar husselde om een font-catalogus te maken.
 
Last edited by ,

pembo

Well-Known Member
Member
Joined
Jun 1, 2009
Messages
105
Trophies
1
XP
131
Country
diego_pmc said:
GRRLIB is the first thing I've tried, but it is not very good at doing what I need in terms of text. When I call GRRLIB_Render(), the library renders everything I've told it to render until that point, then if I try to add something to the screen I have to call GRRLIB_Render() again, which will remove what's already present on the screen — this makes GRRLIB not the best choice for me.

you really have to run GRRLib in a loop where each iteration you draw the images, the text, etc, then call render when you want to show these to the screen.
Just put the render at the end of the loop once only.

Almost all graphical libraries work in a similar way.
 

giantpune

Well-Known Member
Member
Joined
Apr 10, 2009
Messages
2,860
Trophies
1
XP
213
Country
United States
look at any of wanin's apps or even cfg loader. there really isnt a library that uses a console and shows images. why do you want to keep the console so bad? being able to show text in any font is better than being stuck with the same small, ugly font. check the source for my brawl+updatifier. i made a console in libwiigui

it doesnt act exactly like the traditional one, but it can be changed around however you like it.
 

Similar threads

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • Veho @ Veho:
    And who's supposed to go to court over it?
  • SylverReZ @ SylverReZ:
    Should be TikTok, they're responsible for what they control with most of the platform. In recent times, they got banned for a short while because the US doesn't like China holding personal data of US citizens. Not sure how the progress of that is going.
  • Veho @ Veho:
    They banned it for two hours and then brought it back.
  • SylverReZ @ SylverReZ:
    Exactly. But then they extended the period to 75 days, giving them enough time to sell ByteDance to the US. Something along those lines.
  • Veho @ Veho:
    I don't think any of that is going to happen.
  • False_Hope @ False_Hope:
    how did the go from go fund me to OF?
  • SylverReZ @ SylverReZ:
    @Veho, It's always never going to happen. They'll constantly go back-and-forth until they give up trying to ban it.
  • Veho @ Veho:
    They gave up trying to ban it because the law or bill or edict or dictum or whatever it's called in US politics, was brought by a Democrat majority and Republicans have no intention of enforcing it. At the moment, nobody is trying to ban it.
    +1
  • BigOnYa @ BigOnYa:
    China told Putin to tell Trump to allow it.
    +1
  • Kirbydogs @ Kirbydogs:
    you know I just realized the main difference between old meme culture and new meme culture is cringe, crudeness in particular
  • Kirbydogs @ Kirbydogs:
    take Peanut Butter Jelly Time and Skibidi Toilet as examples; they're both dancing creatures, just one is a banana dancing to Peanut Butter and Jelly, while the other is a head in a toilet dancing to "Skibidi Toilet song"
  • Kirbydogs @ Kirbydogs:
    what's depressing is that there are 13-year-olds laughing about potty humor
  • BigOnYa @ BigOnYa:
    Yea that's shitty
  • Veho @ Veho:
    Crappy memes are crappy.
    +1
  • Veho @ Veho:
    Toilet humor didn't exist back in my day. We were all high brow and sophisticated as fuuuck.
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Skibidi toilet?
  • Kirbydogs @ Kirbydogs:
    @Psionic Roshambo what the kids speak of
  • Psionic Roshambo @ Psionic Roshambo:
    Toilets are the shit yo....
    +2
  • Xdqwerty @ Xdqwerty:
    I cant find my SUP M3 and I wanted to install Miyoo CFW on it
  • Xdqwerty @ Xdqwerty:
    damnit
  • Kirbydogs @ Kirbydogs:
    @Xdqwerty woah looks cool
  • Psionic Roshambo @ Psionic Roshambo:
    Life is like a mystery everyone must stand alone
  • Xdqwerty @ Xdqwerty:
    @Kirbydogs, Well I found a retroid pocket at the mall but its like 200$
  • Xdqwerty @ Xdqwerty:
    and those are usd, not pesos
    Xdqwerty @ Xdqwerty: and those are usd, not pesos