Using this code:
class box
{
public:
int x;
int y;
XMMATRIX world;
ConstantBuffer cb;
cb.mWorld = XMMatrixTranspose( world );
box(int a, int b){x=a;y=b;}
};
Gives error on "cb"(This declaration has no storage type or class or type specifier.
What should i do about this?
Is it not possible to make a object in class definition?