最后两个Surface还没生成就崩了。。
sdl吧
全部回复
仅看楼主
level 3
int r=50,g=50,b=50,a=100;
SDL_Color color;
SDL_Rect rect;
int size =50;
SDL_Texture * texture;
Window window;
SDL_Event e;
SDL_Delay(1000);
Renderer renderer(window.get_Window());
renderer =renderer;
TTF_Font *font = NULL;
TTF_Init();
SDL_Surface * temp;
color.r =r;
color.g =g;
color.b =b;
color.a =a;
font =TTF_OpenFont("情书翩翩体", size);
temp =TTF_RenderUTF8_Blended(font, "字体测试", color);
2017年07月16日 12点07分 1
level 7
程序写的好零乱
2017年07月16日 17点07分 2
level 13
字体打开失败了吧
2017年07月17日 23点07分 3
1