Homebrew GRRLIB help

  • Thread starter Deleted User
  • Start date
  • Views 1,614
  • Replies 3
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 ,

usptactical

Well-Known Member
Member
Joined
Apr 7, 2009
Messages
317
Trophies
0
XP
49
Country
United States
diego_pmc said:
I have some questions about GRRLIB_Printf():

• How can I use one of the default fonts? For example, when I use the standard Printf(), the font used is Lucida Console; how can I use this in GRRLIB_Printf()?
• How can I make GRRLIB_Printf() print the text after the text that is already present on the screen? In other words, if here already is some text present on the screen, how can I make GRRLIB_Printf() know which are the x and y coordinates it should use to print the piece of text I give it?

You have to create a tilemap image of the font - WiiBuilder can do this for you. There's also a width limit on the image (1024, if I recall) so depending on font size chosen, you need to split that into 2 (or more) lines. It might be easier for you to just use FreeTypeGX instead.

If you want to print after that line, you need to keep track of the total width/height of the previous word/line based on the sum of it's tiles.
 
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 ,

usptactical

Well-Known Member
Member
Joined
Apr 7, 2009
Messages
317
Trophies
0
XP
49
Country
United States
diego_pmc said:
Aha, thanks.
smile.gif

I want to ask another question: where can I get RGBA color codes that I can use with the GRRLIB functions? I've Googled (of course) but was not able to find any table that would give the the RGBA codes in the same format as the ones used in Sand Traps, for example, a game that also uses GRRLIB (e.g.: 0x0f0c03FF).

The colors are just basic hex codes plus alpha stored in a u32:

0xRRGGBBAA -> Red Green Blue Alpha

so 0x0f0c03FF would be Red 15 Green 12 Blue 3 Alpha 255
 

Similar threads

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • Xdqwerty @ Xdqwerty:
    It has the Google play store
  • BigOnYa @ BigOnYa:
    there you go then, get it from there, its free
  • Xdqwerty @ Xdqwerty:
    I downloaded it from there like thrice and it never worked
  • Xdqwerty @ Xdqwerty:
    I already told you
  • BigOnYa @ BigOnYa:
    I don't know then, maybe that stick just not compatible. Just use stand alone emulators, like Nestopia, Snes9x EX,etc
  • Xdqwerty @ Xdqwerty:
    *sigh* alright
  • Xdqwerty @ Xdqwerty:
    Though most Android emulators don't have retroachievements or netplay
  • BigOnYa @ BigOnYa:
    Start saving your money to buy something better then. Birthday, Xmas monies, or find some odd jobs to earn some money.
  • Xdqwerty @ Xdqwerty:
    I don't have time for that
  • Xdqwerty @ Xdqwerty:
    I have school y'know
  • Xdqwerty @ Xdqwerty:
    And I was never paid for my birthday or christmas
  • BigOnYa @ BigOnYa:
    After school. I see you on here plenty, you can make time instead of being on here all the time. I'm not trying to be mean, just saying, you can reach out to people and ask, and try to work for things. When you get older, in real life, no one will just give you anything for free.
  • Xdqwerty @ Xdqwerty:
    Then i'm just a lazy guy
  • BigOnYa @ BigOnYa:
    No I'm not saying that, I'm saying if you want something better to game on, and your parents won't buy it for you, then earn some money and buy it yourself.
  • Xdqwerty @ Xdqwerty:
    Most people in my country are poor and I believe i will not get paid well
  • BigOnYa @ BigOnYa:
    You never know til you try. If it's something you don't think is fair, then stop doing it and find something else.
  • Xdqwerty @ Xdqwerty:
    Too lazy to try
  • Xdqwerty @ Xdqwerty:
    And before you say i may have a ko-fi or Patreon or something, i'm too young for that
  • BigOnYa @ BigOnYa:
    In USA you can start working normal jobs at age 15, not sure about Vena but i'm sure the laws are simular to age.
  • Xdqwerty @ Xdqwerty:
    Lemme show you something
  • BigOnYa @ BigOnYa:
    At 15, I used to wash dishes and take out garbage at a restaraunt, then wash cars on weekends, just to save money to buy a car when I turned 16
  • Xdqwerty @ Xdqwerty:
    You may need Google translate tho
  • BigOnYa @ BigOnYa:
    Doesn't mean it has to be that way with you. I looked it up and yea at 15 you can get a real job
    +1
  • Xdqwerty @ Xdqwerty:
    Gonna wait 2 months and 27 days then
    +1
    Xdqwerty @ Xdqwerty: Gonna wait 2 months and 27 days then +1