Original Post
This problem is beginning to frustrate me. I've been trying to make my engine more OO, so lots of things are becoming objects. Direct3DObject is a singleton, and lxRender is a class that's dependant on objects from Direct3DObject. In lxRender I create a method D3D which is a pointer to Direct3DObject's only instance.
I'm getting an error from (the second box):
|
|
m_pD3D->g_pD3DDevice->SetStreamSource( 0, m_pD3D->g_pVB, 0, sizeof(m_pD3D->SQUAREVERTEX) ); I'm getting this error pointing to that line: error C2273: 'function-style cast' : illegal as right side of '->' operator And I know it has to do with the SQUAREVERTEX, I just don't know what I'm not understanding >:(