0
0

Sorry for the Ot, but i don’t now where i do this question..

someone use glpng?

how i can map a glutSolidSphere?

for glBegin and glEnd:

[code:1mfagbm5]
texture = pngBind("textures/Metallo3.png", PNG_NOMIPMAP, PNG_ALPHA, &info, GL_CLAMP, GL_NEAREST, GL_NEAREST);

glBindTexture(GL_TEXTURE_2D, texture);
glBegin(GL_QUAD_STRIP); //TESTA//
glNormal3f(0,1,-1);
glTexCoord2f(0, 0);
glVertex3f(-.25,-.25,.25);
glTexCoord2f(1, 0);
glVertex3f(.25,-.25,.25);
glTexCoord2f(0, 1);
glVertex3f(-.25,.25,.25);
glTexCoord2f(1, 1);
glVertex3f(.25,.25,.25);
glEnd();
[/code:1mfagbm5]

with the glTexCoord i specified the point of textures but for glutSolidSphere?

Tnx a lot and sorry again for OT. 😳

  • You must to post comments
0
0

Try the forums at [url=http://www.gamedev.net/community/forums/:2nkak3gw]GameDev.Net[/url:2nkak3gw] or [url=http://www.flipcode.com/forums/:2nkak3gw]flipCode[/url:2nkak3gw]. You will most likely get a much better response there.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.