Yog tias koj xav tau ntau cov teebmeem zoo nkauj thiab sprites ntawm lub vijtsam ib zaug, siv OpenGL vim tias nws txhawb cov shaders thiab kho vajtse nrawm dua. Yog tias koj qhov kev ua si yooj yim thiab tsis xav tau ntau cov teebmeem lossis sprites, lo nrog SDL, tshwj xeeb tshaj yog tias nws yog koj thawj qhov kev ua si. SDL tsis yog kho vajtse nrawm dua, tab sis nws siv tau yooj yim dua.
Qhov twg zoo dua OpenGL lossis SDL?
Hais txog koj qhov piv txwv txog kev hloov cov duab: nws yog qhov zoo dua los ua nws nrog OpenGL (piv txwv li kho vajtse nrawm) dua li nrog SDL nws tus kheej (piv txwv li ntawm CPU) vim nws feem ntau suav nrog siv zog (tshwj xeeb tshaj yog tias koj muaj ntau qhov bitmaps tig txhua tus ncej thiab koj xav kom cov nyhuv du).
Kuv yuav tsum siv SDL?
Thaum SDL yog zoo heev rau kev txhim kho kev sib tw, nws tseem yog qhov kev xaiv zoo tshaj plaws rau kev tsim kev ua si nrog ib lub platform hauv siab, vim nws yooj yim ntawm kev siv thiab abundance ntawm nta. SDL muaj cov neeg siv loj hauv paus thiab tab tom hloov kho thiab khaws cia.
Kuv yuav tsum kawm OpenGL lossis DirectX?
Yog li kuv cov kab hauv qab no yog: Ob leeg zoo, OpenGL muab rau koj hla platform code (Muab koj sau nws), thiab DirectX muab koj ntau qhov kev txhim kho cov cuab yeej thiab cov tsev qiv ntawv. Yog tias nws yog txhua yam txog kev pib sai li sai tau, kuv xav kom OpenGL ntawm NVidia GPU.
Koj yuav tsum kawm OpenGL?
Koj yuav tsum kawm OpenGL ua ntej, raws li tus qauv rau Graphics, hla ntau lub platform. Txawm hais tias muaj lub tsev qiv ntawv tshiab, nkag siab txog cov hauv paus, thiab ua haujlwm nrog cov lus uas siv thoob plaws hauv kev lag luam, yog qhov tseem ceeb heev… Tshwj xeeb tshaj yog vim Vulkan yuav tsis siv hauv Cov Tuam Txhab Loj rau ib ntus, txij li thaum.