I am using "Qt Creator 3.3.0 (opensource)" with "Qt 5.4.0 (MSVC 2010, 32 bit)"
In my camera class I'm getting weird errors I am not able solve it..
class camera
{
public:
// for view matrix
float theta, phi;
float zoom;
// for projection matrix
float fovy;
float width, height;
float near, far;
camera();
camera(float inWidth, float inHeight );
~camera();
mat4 perspective();
mat4 view();
};
I'm getting error at line:
float near, far;
Errors are:
error: C2059: syntax error : ','
error: C2238: unexpected token(s) preceding ';'
error: C1903: unable to recover from previous error(s); stopping compilation
error: C2059: syntax error : ','
error: C2238: unexpected token(s) preceding ';'
What I'm doing wrong ?