自己的理解,難免有錯誤
#include
#include
#include
#include
#include
int main(int argc,char *agrv);
char *p="人無遠慮,必有近憂";
sdl_init(sdl_init_video);//初始化
ttf_init();
sdl_su***ce *screen=sdl_setvideomode(640,480,0,sdl_init_noparachute); //這個不解釋
if(screen==null)
ttf_font *font=ttf_openfont("simfang.ttf",26); //載入字型檔
ttf_setfontstyle(font,ttf_style_normal);
//ttf_setfontoutline(font,4);
ttf_setfonthinting(font,2);
//char *p="test";
sdl_color bg=;
//ttf_renderutf8_shaded()函式顯示的字型顏色color,背影顏色bg;
sdl_su***ce *f=ttf_renderutf8_shaded(font,p,color,bg);
//ttf_rendertext_solid()
函式可以顯示英文的
//f=ttf_renderutf8_blended(font,p,color);
sdl_blitsu***ce(f,null,screen,null); //將字型載入到螢幕上
sdl_updaterect(screen,0,0,0,0);
while(1)
}ttf_closefont(font);
sdl_quit();
}
微軟SDL應用於網路
在你的專案中實現有價值的sdl資源。安全的軟體開發周期 sdl 是乙個微軟開發設計軟體安全性的重要產品。當前面對黑客攻擊往往選擇在應用程式層,越來越多的程式設計師認識到sdl的重要性。為了支援程式設計師對sdl的需要,微軟建立了應用於網路的sdl產品。此試驗計畫包括專門從事應用程式安全性並具有豐富經...
總結 SDL筆記
這裡總結一下個人對sdl的一些函式,方便以後查詢。v1.0.1 1.視窗 sdl init sdl init video 建立視窗 sdl window window sdl createwindow char title,int x,int y,int width,int height,0 獲取視...
SDL開發教程
sdl開發庫 sdl中文開發教程 sdl英文版開發教程 附 以上教程均可在eclipse中做開發,只不過在開始之前需要安裝sdl庫的支援,project引用sdl配置 project properties c c general path and symbols libraries add sdl ...