Texturing with PSPGL (and SDL)

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
gambiting
Posts: 154
Joined: Thu Aug 17, 2006 5:39 pm

Texturing with PSPGL (and SDL)

Post by gambiting »

Hi! I'm using PSPGL,and I want to texture a wall - to build it I use GL_QUADS,but as we all know, GL_QUADS is mapped to GL_TRIANGLE_FAN - when I treat it like normal gl_quad it's just blurred,no real texture at all.So my question is - how can I texture GL_TRIANGLE_FAN so it will look normally? Thx.
gambiting
Posts: 154
Joined: Thu Aug 17, 2006 5:39 pm

Post by gambiting »

Ok,solved,it was my fault - first of all,bmp loaded for texture had to be 24bit(without alpha channel),and in BGR color format(I used irfanview to convert my textures to this format).Other that that everything is working just fine :D
Post Reply