I'm trying out GLSL and one of the problems I'm facing is wrapping a random texture sampler in the shader. Searching for answers on the web first, this leads me to using these commands:

glTexParameter()

GL_TEXTURE_WRAP_S GL_REPEAT

GL_TEXTURE_WRAP_T GL_REPEAT

not sure where to put this or how to use it. I'm using a custom engine for this shader and I would assume I could wrap the texture in the shader.