forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

font displaying suggestions?

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
ruspa



Joined: 13 Sep 2007
Posts: 19
Location: Gorizia, ITALY

PostPosted: Mon Sep 17, 2007 8:47 am    Post subject: font displaying suggestions? Reply with quote

After trying to use freetype and similar libs to displaying fonts in opengl, all failed because of the "ERROR: Install autoconf before continuing." under cygwin (I do have autoconf automake installed plus sources via the cygwin setup that shows you the packages already installed...I doublechecked many times and the shell still keeps saying "autoconf: command not found" .. mistery!) so I gave up and made a simple call in my code to
Code:
int x,y=0;
        while (x < 38) {
            while (y < 64) {
                blitAlphaImageToScreen(0 ,0 ,38 , 64, img_font1, x, y);
                y += 64;
            }
            x += 32;
            y = 0;
        }
        flipScreen();


(38 and 64 are the font monospaced size inside a font_grid.png I did)

where img_font1 is an Image* type with a png loaded in it the same way I load other textures in my program.

But fonts do not show up.. just my textured, filtered polygons: I inserted this piece of code in the gl draw cycle, so I suppose these functions are not compatible in some way (gl mode vs. no gl mode).
What do you suggest me to do to get through this? Making a set of mini-polygons each of them carrying one-font texture? (seems painful) or there's another call I can do different from blitAlphaImageToScreen to have this displayed in gl mode?
Thanks!

p.s. I do not have the text and fancytext examples in "samples" directory, just have a text sample which I cannot compile since it includes a "font.c" which I do not have.
Back to top
View user's profile Send private message
KickinAezz



Joined: 03 Jun 2007
Posts: 328

PostPosted: Mon Sep 17, 2007 9:07 am    Post subject: Reply with quote

nvm
Back to top
View user's profile Send private message
ruspa



Joined: 13 Sep 2007
Posts: 19
Location: Gorizia, ITALY

PostPosted: Mon Sep 17, 2007 9:10 am    Post subject: Reply with quote

nvm?
Back to top
View user's profile Send private message
AllSystemGo



Joined: 02 Jun 2007
Posts: 26

PostPosted: Mon Sep 17, 2007 10:20 pm    Post subject: Reply with quote

I guess he figured out his problem...
Back to top
View user's profile Send private message
ruspa



Joined: 13 Sep 2007
Posts: 19
Location: Gorizia, ITALY

PostPosted: Mon Sep 17, 2007 11:06 pm    Post subject: Reply with quote

is this some kind of joke? :\
Back to top
View user's profile Send private message
quadrizo



Joined: 23 Aug 2007
Posts: 21

PostPosted: Tue Sep 18, 2007 2:18 am    Post subject: Reply with quote

if you take a look to the function blitAlphaImageToScreen you'll see that it do a textured rectangle with ths gu engine... if you want that works with opengl you can do the same: make a textured rectangle with an ortho projection.

you can search the nehe tutorials ported to psp with the pspgl modified version, you'll found a fontEngine with List that works great
Back to top
View user's profile Send private message
ruspa



Joined: 13 Sep 2007
Posts: 19
Location: Gorizia, ITALY

PostPosted: Tue Sep 18, 2007 3:13 am    Post subject: Reply with quote

thanks, this was crisp clear :D
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group