View Full Version : How to draw one texture fewtimes on one shape, in stead of make it larger
12-07-2002, 08:45 AM
How to draw one texture fewtimes on one shape, in stead of make it larger.
12-07-2002, 09:13 AM
I think all you have to do is specify coordinates bigger than one...like this maybe on a quad?
would draw it 4 times if im correct.
12-07-2002, 10:24 AM
Also, make sure you set the texture wrapping mode to GL_REPEAT.
12-07-2002, 10:56 AM
how could i set the wrapping model to GL_REPEAT
12-07-2002, 11:16 AM
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT);
Page 410 of the Redbook.
12-07-2002, 11:32 AM
what different does it make, it works without it also
12-07-2002, 11:41 AM
If it does't matter it's because the default behavior is GL_REPEAT, however, it's probably good to get in the habit of setting such things because there may come a time when the default behavior is not what you want.
12-07-2002, 11:59 AM
can you please tell me, what could be other setting of wrapping ?
Why not look in some documentations? There are lots of them on the net, and it isn't that hard to find them. Anyways, the other wrapping modes are GL_CLAMP, GL_CLAMP_TO_EDGE, GL_CLAMP_TO_BORDER and GL_MIRRORED_REPEAT.
Powered by vBulletin® Version 4.2.3 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.