I feel like total dumb on this one. I want to create a subclass of my class Model:
class Model {
public:
Model(const GLchar* path, const GLuint& amountLoaded);
protected:
void loadModel();
};
It should look like this:
class AnimatedModel : public Model {
public:
AnimatedModel(const GLchar * path, const GLuint & amountLoaded);
protected:
/*Override!*/
void loadModel();
};
Then, form the outside, I want to create a new AnimatedModel
. The AnimatedModel contructor simply passes its arguments to the Model constructor. The Model
constructor then calls the Method loadModel()
. I hoped, that this call would then reach my overridden version of this method, but it doesn't seem to work like this... What am i missing here?