lots of questions about opengl
alright, i'm making my first opengl program, pong, and as i don't know a lot about opengl, so i've been coming up with my own solutions for problems such as moving the paddles, and it's probably hideously impractical.
first, i constructed the blocks and the pong square with glBegin (GL_POLYGON), but i defined their x vertices with a previously declared array. when i do a WM_KEYDOWN it activates a function that does a loop to add or subtract to the coordinate numbers. as you can imagine, it doesn't flow too well. i've got the buffer swapping working, so that's not a problem, it's just being really jerky.
what should i do to move the blocks besides what i'm doing, and what's a better way to initiate the movement than WM_KEYDOWN?
also, what's the naming convention for the keys with KEYDOWN? i only know VK_ESCAPE, but my guesses for the other ones don't work.