[SDL] Problems with text rendering using TTF

Nuno Santos developer at imaginando.net
Sun Dec 3 13:20:45 PST 2006


Hi,

This is how i define the list:

		glNewList(images[i] = glGenLists(1), GL_COMPILE);
			glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT);
			glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT);
			glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
			glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);

			glPixelStorei(GL_UNPACK_ALIGNMENT, 4);
			glPixelStorei(GL_UNPACK_ROW_LENGTH, 0);
			glPixelStorei(GL_UNPACK_SKIP_ROWS, 0);
			glPixelStorei(GL_UNPACK_SKIP_PIXELS, 0);
		
			glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, w,h, 0, GL_RGB,  
GL_UNSIGNED_BYTE,imageData);
		glEndList();

I cant put to much in just one email because it gets blocked,  
awaiting for admin permission.

If you need more information please just tell me.

Thx,

Best regards,

Nuno

Em Dec 3, 2006, às 7:41 PM, Christian Walther escreveu:

> Nuno Santos wrote:
>> Here it goes, a little bit in the render function;
>>
>> ...
>
> I can't see anything wrong with that, but that's not your whole code.
> How are you generating the textures, and what's in that display list?
>
>   -Christin
>
>
> _______________________________________________
> 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/20061203/05e42b4d/attachment.htm 


More information about the SDL mailing list