Về Việc: [SDL] SDL Surfaces and OpenGL

dunk dunk at dunkfordyce.co.uk
Sun Nov 13 09:29:58 PST 2005


for opengl text the library ftgl is very good:
http://homepages.paradise.net.nz/henryj/code/#FTGL



On Sunday 13 November 2005 08:19, Olivier Delannoy wrote:
> You should not mix OpenGL and SDL_Surface. You should render your text to a
> surface and copy this surface to an OpenGL Texture.
>
> On 11/13/05, danhchitu <danhchitu at yahoo.com.vn> wrote:
> > My English is bad (i hope so you understand me)
> > I'm using SDL with openGL to develop a 3D game and I see:
> > IF i use SDL_ttf for draw text on SDL Screen: not problem.
> > If my text is the same position with OpenGL's object: text is behind
> > OGL's Object.
> > I don't know why.
> > I you know why, please send me your solution. Thanks
> >
> > *Curly <sircurl at gmail.com>* đã viết:
> >
> > We're using SDL with openGL to develop a 3D game and I'm tasked with
> > getting
> > text to appear on the screen. I want to use the SDL_ttf add-on, but I
> > can't
> > tell if this is even possible. So I guess my real question is, is it
> > possible
> > to mix SDL surface drawing with openGL rendering? If so, how?
> >
> >
> > _______________________________________________
> > SDL mailing list
> > SDL at libsdl.org
> > http://www.libsdl.org/mailman/listinfo/sdl
> >
> >
> > __________________________________________________
> > Bạn Có Sử Dụng Yahoo! Không?
> > Mệt mỏi vì thư rác? Yahoo! Thư có chương trình bảo vệ chống thư rác hữu
> > hiệu nhất trên mạng
> > http://vn.mail.yahoo.com
> >
> > _______________________________________________
> > SDL mailing list
> > SDL at libsdl.org
> > http://www.libsdl.org/mailman/listinfo/sdl




More information about the SDL mailing list