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

Olivier Delannoy olivier.delannoy at gmail.com
Sun Nov 13 00:19:09 PST 2005


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
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20051113/653b2210/attachment-0008.htm>


More information about the SDL mailing list