vendredi 31 janvier 2020

Cannot output red/green/blue color value of object

vector<Text> Game_Text;

Game_Text.push_back(Text("0",Game_Font[0],50));

cout<<Game_Text[0].getFillColor().r<<endl;

Using C++11 in Code::Blocks

Nothing it outputted when run, should it not output 255? If Game_Text[0].getFillColor().r is replaced with, say, "test", it outputs test as normal. No errors, full code is working.

Is it possible to output just a single r/g/b value of an object with this method?

Aucun commentaire:

Enregistrer un commentaire