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
{
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;
}
想问下各位大佬为什么我不显示文本啊