View Full Version : How to draw one texture fewtimes on one shape, in stead of make it larger
12-07-2002, 07:45 AM
How to draw one texture fewtimes on one shape, in stead of make it larger.
12-07-2002, 08: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, 09:24 AM
Also, make sure you set the texture wrapping mode to GL_REPEAT.
12-07-2002, 09:56 AM
how could i set the wrapping model to GL_REPEAT
12-07-2002, 10: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, 10:32 AM
what different does it make, it works without it also
12-07-2002, 10: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, 10: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.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.