基于SDL文字显像

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 Documentation

你可能感兴趣的:(游戏,编程,c,linux,gcc)