gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS development > liblobby & printf & PAlib...question...

#152854 - SnakerDLK - Fri Mar 21, 2008 7:43 pm

Well...
Im experimenting with liblobby, which is used in the same way as libnds...
and I want to use both screens as text output...how do I do that ?
(without having to manually set the pixels on the upper screen...)

PAlib has this option, but I have no idea how to put liblobby to work with PAlib.. the arm7 and arm9 builds from liblobby confuse me...

and it would be nice if libnds and liblobby were better documented or the documentations better accessible...

thanks

#152858 - SnakerDLK - Fri Mar 21, 2008 8:45 pm

hmmm... apparently PAlib BETA Community Release 080203 does support liblobby...

gonna try it out...

but still, how DO you print text on the 'main' screen... ?

#152863 - tepples - Fri Mar 21, 2008 10:34 pm

SnakerDLK wrote:
but still, how DO you print text on the 'main' screen... ?

how do i wrote text

What is text? Text is a string of objects called characters that convey meaning. When they are fixed on a page or screen, the characters are represented as lines of graphic shapes called glyphs. To learn how to draw these glyphs, see Graphics: How do I write text? in the FAQ, and see TONC. I could walk you through doing all this in libnds, but you're using PAlib.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#152878 - SnakerDLK - Sat Mar 22, 2008 2:24 am

yes, I know what text is...
yes, I know how to print to the main screen on PAlib, since its frigging documented
and no, you still haven't answered how to write to the main screen using a predefined function like printf or iprintf (libnds) instead of doing it manually ??
(and no, I dont care about your ancient links do GBA development..)

#152886 - tepples - Sat Mar 22, 2008 3:56 am

If you know how to puts() to both screens, have you considered using siprintf() followed by some device-specific puts() workalike?

And there was a reason that I linked to GBA stuff: over 90 percent of the video-related concepts still apply.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#152911 - SnakerDLK - Sat Mar 22, 2008 2:34 pm

thanks

but still, no I have no idea how do use puts to write to the upper screen, perhaps writing to a specific stream 'related' to the upper screen.. like stdout on linux...

but..sorry, google didn't help...

and as for the GBA links... I know the same principles apply, but when it comes to printing to dual screens...which GBA didn't have.. I guess the GBA dev won't help (unless I know what is diferent in the two devs..which I don't..)

and Ive searched for the prototypes of the output related functions in the libnds include folder...but nada...

#152914 - M3d10n - Sat Mar 22, 2008 3:29 pm

There's a post where some dude got printf() working for both screens, by using the advanced consoleInit() functions to setup the console to use a different screen map and char addresses. Keep searching the dev forum and you'll find it.

But it was using libnds's console stuff, I don't know how that'll apply to PAlib, nor if PAlib allows you to choose which BG the console text will be printed to.

#152915 - SnakerDLK - Sat Mar 22, 2008 4:47 pm

oh well...since it is that dificult or obscure...
PAlib it is....