|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| TheRocketRocketMan (12) | |||||
|
Lately Ive been modifying a Wavefront Obj model loader to use textures and Im modifying the "Face" structure to incorporate the texture coordinates into the face but i keep on getting this error In file included from Video:20, from Kernel.cpp:15: Loader:58: error: ‘face::face(int, int, int, int, int)’ cannot be overloaded Loader:48: error: with ‘face::face(int, int, int, int, int)’ Loader: In function ‘int loadObject(const char*)’: Loader:170: error: no matching function for call to ‘face::face(int&, int&, int&, int&)’ Loader:48: note: candidates are: face::face(int, int, int, int, int) Loader:41: note: face::face(const face&) here is the original code
here is my modified code
any help would be much appreciated | |||||
|
Last edited on
|
|||||
| Peter87 (4441) | |
| Are you sure you pass the correct number of arguments to the constructor? | |
|
|
|
| TheRocketRocketMan (12) | |
| I'm trying to add more arguments to it | |
|
|
|
| Framework (3463) | |
|
Looks like ambiguity to me: "Loader:58: error: ‘face::face(int, int, int, int, int)’ cannot be overloaded" "Loader:170: error: no matching function for call to ‘face::face(int&, int&, int&, int&)’" Wazzak | |
|
Last edited on
|
|
| TheRocketRocketMan (12) | |
| And how would i fix this? | |
|
|
|
| Peter87 (4441) | |
It's hard to say without seeing the real code.int t 4 this doesn't look right.
| |
|
|
|
| TheRocketRocketMan (12) | |
| *EDIT* still not working | |
|
Last edited on
|
|