1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-11-22 18:28:52 -05:00

Fixed VC++ warnings.

This commit is contained in:
Camilla Berglund 2013-03-08 14:19:40 +01:00
parent 6a7dbfee29
commit 3897a174b5
3 changed files with 3 additions and 3 deletions

View File

@ -69,7 +69,7 @@ int main(void)
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
glRotatef(glfwGetTime() * 50.f, 0.f, 0.f, 1.f);
glRotatef((float) glfwGetTime() * 50.f, 0.f, 0.f, 1.f);
glBegin(GL_TRIANGLES);
glColor3f(1.f, 0.f, 0.f);

View File

@ -407,7 +407,7 @@ static LRESULT CALLBACK windowProc(HWND hWnd, UINT uMsg,
case WM_CHAR:
{
_glfwInputChar(window, wParam);
_glfwInputChar(window, (unsigned int) wParam);
return 0;
}

View File

@ -95,7 +95,7 @@ int main(void)
{
glClear(GL_COLOR_BUFFER_BIT);
position = cosf(glfwGetTime() * 4.f) * 0.75f;
position = cosf((float) glfwGetTime() * 4.f) * 0.75f;
glRectf(position - 0.25f, -1.f, position + 0.25f, 1.f);
glfwSwapBuffers(window);