int signin(){ TTF_Font* a= TTF
c4droid吧
全部回复
仅看楼主
level 6
泠梦白✨ 楼主
int signin()
{
TTF_Font* a= TTF_OpenFont("/system/fonts/DroidSansFallback.ttf", 50);
SDL_Color b = {155, 155, 255};
SDL_Surface* c = TTF_RenderText_Solid(a, "*****", b);
SDL_Texture* d=SDL_CreateTextureFromSurface(render, c);
SDL_Rect e;
e.x = 0;
e.y = 0;
e.w = 100;
e.h = 100;
SDL_RenderCopy(render, d, NULL, &e);
return 0;
}
想问下各位大佬为什么我不显示文本啊
2020年02月17日 02点02分 1
level 6
泠梦白✨ 楼主
。。。
2020年02月17日 03点02分 2
level 2
判断下返回值,做下出错处理
2020年02月18日 14点02分 3
1