just a quick, basic question about SDL

Whether you're a newbie or an experienced programmer, any questions, help, or just talk of any language will be welcomed here.

Moderator: Coders of Rage

Post Reply
User avatar
Donutslayer7
Chaos Rift Newbie
Chaos Rift Newbie
Posts: 16
Joined: Tue Aug 18, 2009 5:16 pm
Current Project: Map-Editor
Favorite Gaming Platforms: N64, SNES, anything Nintendo
Programming Language of Choice: C++
Location: U.S.

just a quick, basic question about SDL

Post by Donutslayer7 »

I just starting shifting from Allegro to SDL, and I know you can use the SDL_ttf lib to print true type fonts to the screen, but does SDL have any functions to render text natively, I mean without the extra libs? :|
User avatar
lotios611
Chaos Rift Regular
Chaos Rift Regular
Posts: 160
Joined: Sun Jun 14, 2009 12:05 pm
Current Project: Game engine for the PC, PSP, and maybe more.
Favorite Gaming Platforms: Gameboy Micro
Programming Language of Choice: C++

Re: just a quick, basic question about SDL

Post by lotios611 »

No.
"Why geeks like computers: unzip, strip, touch, finger, grep, mount, fsck, more, yes, fsck, fsck, fsck, umount, sleep." - Unknown
XianForce
Chaos Rift Devotee
Chaos Rift Devotee
Posts: 767
Joined: Wed Oct 29, 2008 8:36 pm

Re: just a quick, basic question about SDL

Post by XianForce »

Natively, SDL lacks quite a bit. You may want to try your hand at SFML, which supports most of the things natively that SDL itself does not.

(Note: I have never personally used SFML... I guess I'm just an SDL fanboy haha)
User avatar
Ginto8
ES Beta Backer
ES Beta Backer
Posts: 1064
Joined: Tue Jan 06, 2009 4:12 pm
Programming Language of Choice: C/C++, Java

Re: just a quick, basic question about SDL

Post by Ginto8 »

Donutslayer7 wrote:I just starting shifting from Allegro to SDL, and I know you can use the SDL_ttf lib to print true type fonts to the screen, but does SDL have any functions to render text natively, I mean without the extra libs? :|
sorta... take a look at this page.

Basically, you can do bitmap fonts, but if you want a truetype font, you'd want to use SDL_ttf.
Quit procrastinating and make something awesome.
Ducky wrote:Give a man some wood, he'll be warm for the night. Put him on fire and he'll be warm for the rest of his life.
Post Reply