ok im playing arround with the open gl example that comes with dev c++, and im making you able to change how big the triangle is and how fast it spins.
Code:
LRESULT CALLBACK WndProc (HWND hWnd, UINT message,
WPARAM wParam, LPARAM lParam)
{
switch (message)
{
case WM_CREATE:
return 0;
case WM_CLOSE:
PostQuitMessage (0);
return 0;
case WM_DESTROY:
return 0;
case WM_KEYDOWN:
switch (wParam)
{
case VK_ESCAPE:
PostQuitMessage(0);
return 0;
case VK_LEFT:
x++;
return 0;
case VK_RIGHT:
if (x>0)
x--;
return 0;
case VK_UP:
y++;
return 0;
case VK_DOWN:
if (y>0)
y--;
return 0;
}
return 0;
default:
return DefWindowProc (hWnd, message, wParam, lParam);
}
}
when you press any of these it executes once, then waits for a half second or whatever and then carries on executing. like in a word processor. how can i avoid this? thanks
edit:
oh yeah, one more thing. is there a site with a comprehensive list of all open gl functions and their parametres and what they do and maybe even how to use them? thanks again