Attempting to make a square creating function
It will take two arguments, two integers, it will take those two integers and poof a square by manipulating the two integers....
I'm hoping my logic is correct in saying changing x/y will change the location the square is drawn, rather than its size.. If it isnt, please explain...
I ultimately want to use this function, to create more complex shapes in other functions for the telltale shapes of tetris..
The thing about making those shapes is this:
1. They must have separate pieces to make up the shapes(so you can delete lines)
2. All parts of the shape must rotate on the same axis
By looking at this code and writing it out just now, I'm already seeing faults in it, I'm thinking I will be changing the size of the box by changing x and y.... Course I can't test it, because when I use the function in my DrawGLScene() it does absolutely nothing :\, please help!
void part(int x, int y)
glTranslated(partx, party, 0);