0
我一直在试图改变TTF文本的颜色,但我无法弄清楚如何做它。我有:更改颜色TTF文字SDLÇ
SDL_Color color_text = { 0, 0, 0 }; //Text color
SDL_Surface * surface = TTF_RenderText_Solid(font, "text text text text text ", color_text);
,但它看起来像一个罐头不会以任何方式改变颜色。如果可能的话,我可以用另一种方式存储颜色。