#135481 - Rajveer - Mon Jul 23, 2007 9:13 pm
After a long day of coding, my brain's come to a freeze. To finish the day, I'm trying to load a texture using glTexImage2D with flip S/T and wrap S/T parameters kept as boolean variables. How would I call the related flip/wrap parameters if the variables are set to true? E.g.
Code: |
glTexImage2D(0, 0, GL_RGB32_A3, TEXTURE_SIZE_128 , TEXTURE_SIZE_128, 0, TEXGEN_TEXCOORD | (if variable1 true, GL_TEXTURE_WRAP_S) | (if variable2 true, GL_TEXTURE_WRAP_T), (u8*)road3_bin); |