ok well I used the debugger and when I step into the move_x variable it does not change value. I have used this function in other programs and it works, I think I am missing something. I think my problem in how I use the move_x variable with the vertices array. here is that code.
GLfloat vertices[] =
{
// Positions // Colors // Texture Coords
-0.10f+move_x, -1.0f, 0.0f, 1.0f, 0.0f, 0.0f, 1.0f, 1.0f, // Top Right
-0.10f+move_x, -0.80f, 0.0f, 0.0f, 1.0f, 0.0f, 1.0f, 0.0f, // Bottom Right
0.10f+move_x, -0.80f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f, // Bottom Left
0.10f+move_x, -1.0f, 0.0f, 1.0f, 1.0f, 0.0f, 0.0f, 1.0f // Top Left
};
If you want help, then it would be useful to provide enough code for someone to be able to provide you with that help. Simply showing us a fragment of a function and saying “this isn’t incrementing the variable, please help,” just isn’t enough information for someone to help you.
For example, you show us this vertices array. Well… where is it? How does it get used? We cannot know any of that simply by showing us the array. And without knowing any of that, there’s nothing we can do.
Again, please read and follow the Forum Posting Guidelines.