Konstruktor Rückgabewert
-
hallo ihr lieben,
ich habe ein problem aber weiss nicht genau warum velleicht könnt ihr mir da ja helfen :D.
ich habe in einer header datei namens GTexCub.h folgende zeihle :GTexCube(D3DXVECTOR3 pos, D3DXVECTOR3 rot, D3DXVECTOR3 scal, const char* fileName);
und in der GTexCube.cpp sage ich :
GTexCube(D3DXVECTOR3 pos, D3DXVECTOR3 rot, D3DXVECTOR3 scal, const char* fileName) { position = pos; rotation = rot; scale = scal; texName = fileName; };
dann kommt als fehlermeldung : "error C2533: 'GTexCube::{ctor}': Ergebnistyp für Konstruktoren nicht zulässig c:\users\lucas\desktop\projekt1\projekt1\gtexcube.cpp"
woran liegt dass?schonmal danke
-