Anish
08-05-2005, 08:31 PM
Hai,
I want to draw a Wall and fill one side bith Brick textures.
I loaded and drew the texture correctly.
But my problems is according to the wall size i want to repeat the texture, not resize.
this way i loaded the texture
glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTE R,GL_REPEAT);
glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTE R,GL_LINEAR_MIPMAP_NEAREST);
gluBuild2DMipmaps(GL_TEXTURE_2D, 3, TextureImage[0]->sizeX, TextureImage[0]->sizeY, GL_RGB, GL_UNSIGNED_BYTE, TextureImage[0]->data);
Anyone have any idea?? :(
Thanks in advance :)
I want to draw a Wall and fill one side bith Brick textures.
I loaded and drew the texture correctly.
But my problems is according to the wall size i want to repeat the texture, not resize.
this way i loaded the texture
glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTE R,GL_REPEAT);
glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTE R,GL_LINEAR_MIPMAP_NEAREST);
gluBuild2DMipmaps(GL_TEXTURE_2D, 3, TextureImage[0]->sizeX, TextureImage[0]->sizeY, GL_RGB, GL_UNSIGNED_BYTE, TextureImage[0]->data);
Anyone have any idea?? :(
Thanks in advance :)