C++ error C2664 appel de fonction
Bonjour !
Je suis débutant en C++ donc soyez clément avec moi s'il vous plait :? , j'ai en effet l'erreur suivante qui s'affiche dans Visual Studio :
error C2664: 'MyBee::displayBee' : cannot convert parameter 1 from 'MyBee *const ' to 'MyBee'
Voici le code de mon fichier "myBee.cpp" :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
#include "myBee.h"
MyBee::MyBee(int _xPosition, int _yPosition)
{
this->xPosition = _xPosition;
this->yPosition = _yPosition;
this->pollenAmount = 0;
displayBee(this);
}
void MyBee::displayBee(MyBee bee)
{
glBegin(GL_TRIANGLES);
glVertex2d(-0.75,-0.75);
glVertex2d(0,0.75);
glVertex2d(0.75,-0.75);
glEnd();
} |
Merci d'avance pour votre aide :ccool: