Puas yog SDL yog API?
Puas yog SDL yog API?

Video: Puas yog SDL yog API?

Video: Puas yog SDL yog API?
Video: Tsis Tau Txaus Koj | Kong Chue (Official Music Video) 2024, Kaum ib hlis
Anonim

SDL Lus Huab API Cov ntaub ntawv. Cov API enables developers xa cov ntsiab lus rau kev txhais lus ntawm lub SDL Lus Huab txhais lus platform. Cov API tso cai rau cov neeg tsim khoom muab kev txhais lus ua ib qho kev pabcuam hauv lawv tus kheej daim ntawv thov los ntawm kev nkag mus rau tus tswv SDL Tshuab txhais tshuab.

Tsis tas li ntawd, SDL yog dab tsi?

Yooj Yim DirectMedia Txheej ( SDL ) yog lub tsev qiv ntawv cross-platform multimedia tsim los muab qib qis nkag mus rau suab, keyboard, nas, joystick, 3D kho vajtse ntawm OpenGL, thiab 2D video Framebuffer. Lub hom phiaj tseem ceeb ntawm SDL yog los muab ib lub hauv paus rau kev nkag mus rau cov haujlwm no.

Ib tug kuj yuav nug, SDL puas siv OpenGL? SDL siv OpenGL raws li ib tug kho vajtse renderer rau cov ntsiab lus uas xav kho vajtse rendering ntawm ib co platforms. Yog hais tias koj muaj xws li ib tug platform, ces OpenGL yog qhov API hauv qab uas SDL yog abstraction. SDL tuav tswv yim, qhov rais creation, duab loading thiab ob peb lwm functionality uas OpenGL tsis kov.

Kuj nug, yog SDL qhib qhov twg?

SDL officially txhawb Windows, Mac OS X, Linux, iOS, thiab Android . Kev them nyiaj yug rau lwm lub platform tuaj yeem pom nyob rau hauv qhov chaw code. SDL yog sau rau hauv C, ua haujlwm ib txwm muaj nrog C ++, thiab muaj kev sib txuas rau ntau hom lus, suav nrog C # thiab Python. Daim ntawv tso cai no tso cai rau koj siv SDL dawb do nyob rau hauv tej software.

SDL sawv cev rau C ++ yog dab tsi?

Specification thiab Description Language

Pom zoo: