#59692 - TomschikSimon - Thu Nov 03, 2005 2:12 pm
Is there a possibility to repeat a texture if the tex-coords are bigger than the texture. The texture is now displayed once correctly and after this I only see stripes till the end of the polygon.
Code: |
glGenTextures(1, &texture[0]);
glBindTexture(0, texture[0]); glTexImage2D(0, 0, GL_RGB, TEXTURE_SIZE_128 , TEXTURE_SIZE_128, 0, TEXGEN_TEXCOORD | GL_TEXTURE_WRAP_S | GL_TEXTURE_WRAP_T, pcx.data8); |
Code: |
#define GL_TEXTURE_FLIP_S (1 << 18)
#define GL_TEXTURE_FLIP_T (1 << 19) |
TomschikSimon wrote: |
Is there a possibility to repeat a texture if the tex-coords are bigger than the texture. The texture is now displayed once correctly and after this I only see stripes till the end of the polygon. |