[gameprogrammer] Re: [SDL, OpenGL and SDL_ttf] Need help

On Sun, 2004-11-28 at 03:54, Mister wrote:
> Hi,
> I'm making a program that use multitextures. I'm using OpenGL that's
> initialized with SDL (SDL_SetVideoMode). My video card supports
> multitexturing and I'm using VC++ .NET.
> 
> Problems:
> 1.) when I call glActiveTextureARB(), the compiler says "undeclared
> identifier" though I already included glext.h
> 2.) I want to write to the screen using SDL_ttf. Failed.Is SDL_ttf
> compatible with SDL that uses OpenGL 'screen'? Because there's no problem
> when I first tried to use SDL_ttf in a very small program.

SDL_TTF converts strings into bitmaps. You can convert those to OpenGL
textures and then draw with the textures to draw the text. It is pretty
easy to generate a texture for each character in the font and then
render any string using the the textures. That is what I do most of the
time. I also have a library
(http://gameprogrammer.com/polyfonts/polyfonts.html) where I have
converted a large number of fonts to geometry so they can be drawn
without using textures. 

And, if you are working in C++ there is a great library called FTGL
(http://homepages.paradise.net.nz/henryj/code/) that converts ttf fonts
to OpenGL geometry and lets you do some very interesting things with it.

                Bob Pendleton


> 
> Please help me. What may be the problems in my code?
> Thanks in advance.
> 
> 
> 
> 
> ---------------------
> To unsubscribe go to http://gameprogrammer.com/mailinglist.html
> 
-- 
+--------------------------------------+
+ Bob Pendleton: writer and programmer +
+ email: Bob@xxxxxxxxxxxxx             +
+ blog:  www.Stonewolf.net             +
+ web:   www.GameProgrammer.com        +
+--------------------------------------+



---------------------
To unsubscribe go to http://gameprogrammer.com/mailinglist.html


Other related posts: