1. Include
#include "SDL_ttf.h"
2. Compiling
Simple Example for compiling an object file:
cc -c ‘sdl-config --cflags‘ mysource.c
Simple Example for compiling an object file:
cc -o myprogram mysource.o ‘sdl-config --libs‘ -lSDL_ttf
Reference:
本文介绍了如何使用 SDL_ttf 库进行字体渲染,并提供了编译 SDL_ttf 对象文件的简单示例。此外,还给出了显示汉字的具体方法。
1. Include
#include "SDL_ttf.h"
2. Compiling
Simple Example for compiling an object file:
cc -c ‘sdl-config --cflags‘ mysource.c
Simple Example for compiling an object file:
cc -o myprogram mysource.o ‘sdl-config --libs‘ -lSDL_ttf
Reference:
298
478
424

被折叠的 条评论
为什么被折叠?