Original Post
I'm getting this error and it's driving me nuts. There is nothing in the code that should cause this error, but I was wondering if it might be a problem other people have been experiencing and possible solutions. Here is the error: .\Camera.cpp(22) : error C2059: syntax error : ',' And here is the code: Thanks for any help in this matter.
pos = D3DXVECTOR3(px, py, pz);
lookat = D3DXVECTOR3(lx, ly, lz);
up = D3DXVECTOR3(ux, uy, uz);
D3DXMatrixLookAtLH(&view, &pos, &lookat, &up);
D3DXMatrixPerspectiveFovLH(&projection, fov, w / h, near, far); //<--C2059
core.device->SetTransform(D3DTS_PROJECTION, &projection);