arthurprs
12-12-2007, 06:14 PM
Im getting really bad graphics in certain angles
http://img156.imageshack.us/img156/225/capture12122007160424ox4.jpghttp://img156.imageshack.us/img156/4392/capture12122007160431jm6.jpghttp://img156.imageshack.us/img156/8125/capture12122007160437wp7.jpghttp://img156.imageshack.us/img156/4377/capture12122007160441mt1.jpghttp://img156.imageshack.us/img156/2171/capture12122007160445cs3.jpg
i use the code
glBegin(GL_TRIANGLE_STRIP); //
glTexCoord2f(xfrac, yfrac);
glVertex2f(x, y);
glTexCoord2f(xfrac, hfrac);
glVertex2f(x, y + titleh);
glTexCoord2f(wfrac, yfrac);
glVertex2f(x + titlew, y);
glTexCoord2f(wfrac, hfrac);
glVertex2f(x + titlew, y + titleh);
glEnd;
Whats wrong?
EDIT : You have to apply the texture filters after loading them
http://img156.imageshack.us/img156/225/capture12122007160424ox4.jpghttp://img156.imageshack.us/img156/4392/capture12122007160431jm6.jpghttp://img156.imageshack.us/img156/8125/capture12122007160437wp7.jpghttp://img156.imageshack.us/img156/4377/capture12122007160441mt1.jpghttp://img156.imageshack.us/img156/2171/capture12122007160445cs3.jpg
i use the code
glBegin(GL_TRIANGLE_STRIP); //
glTexCoord2f(xfrac, yfrac);
glVertex2f(x, y);
glTexCoord2f(xfrac, hfrac);
glVertex2f(x, y + titleh);
glTexCoord2f(wfrac, yfrac);
glVertex2f(x + titlew, y);
glTexCoord2f(wfrac, hfrac);
glVertex2f(x + titlew, y + titleh);
glEnd;
Whats wrong?
EDIT : You have to apply the texture filters after loading them