SDL 2.0.20 yakatoburitswa uye idzi ndidzo nhau dzayo

SDL_Logo

The kuburitswa kweshanduro itsva yeSDL 2.0.20 umo dzimwe shanduko dzakaitwa dzinovandudza kushanda kweraibhurari, pamusoro pekugadzirisa zvikanganiso zviviri zvaivepo mushanduro yekupedzisira.

Kune avo vasingazive nezve raibhurari SDL, iwe unofanirwa kuziva kuti izvi, inopa zvishandiso senge Hardware inokasira 2D uye 3D giraidhi kuburitsa, yekugadzirisa yekuisa, yekuteerera kutamba, 3D kuburitsa kuburikidza OpenGL / OpenGL ES uye mamwe akawanda akafanana mabasa.

SDL yakafanana neDirectX, kune munhu anogona kupokana kuti analog yeDirectX ndeye OpenGL. DirectX inoshandawo nemidziyo yekupinza uye ruzha. Loki Software payakatanga kuburitsa mitambo yeAAA paLinux, vakatsiva Direct3D neOpenGL uye pakanga pasina chekutsiva chimwe chinhu uye nekuti zvakaoma kunyora "X" manyorerwo mazuva ano kunyangwe neWinAPI paAPI X11, asi neDirectDraw paWinAPI yatove. dambudziko, nderekuti SDL yakazvarwa sei.

SDL inowirirana zviri pamutemo neWindows, Mac OS X, Linux, iOS uye Android, kunyangwe iine tsigiro yemamwe mapuratifomu akadai seQNX, kuwedzera kune mamwe mapuratifomu uye masisitimu akadai seSega Dreamcast, GP32, GP2X, nezvimwe.

Nyore DirectMedia Layer yakanyorwa muC, inoshanda natively neC ++ uye kune zvinongedzo zviripo kune mimwe mitauro yakati wandei, kusanganisira C # uye Python, inogoverwa pasi pezlib rezinesi, rezinesi iri rinotendera kushandisa SDL zvakasununguka mune chero software.

Main nyowani maficha e SDL 2.0.20

Muiyi vhezheni itsva yeSDL 2.0.20 inoratidzwa, inosimbiswa kuti kunatsiridza kurongeka kweyakachinjika uye yakatwasuka mutsetse kubuda paunenge uchishandisa OpenGL uye OpenGL ES.

Imwe shanduko yakakosha inomira pachena ndeyekuti chiratidzo chakawedzerwa SDL_HINT_RENDER_LINE_METHOD kusarudza nzira yekudhirowa mutsara iyo inokanganisa kukurumidza, kururamisa uye kuenderana.

Mukuwedzera, inotaurwa kuti iyo SDL_RenderGeometryRaw() basa ragadziridzwa patsva nechinangwa chekuve inogona kushandisa chinongedzo kune SDL_Color parameter pachinzvimbo chehuwandu hunokosha, saka iyo data yemavara inogona kutsanangurwa mumafomati SDL_PIXELFORMAT_RGBA32 uye SDL_PIXELFORMAT_ABGR8888.

Pachikamu chekugadzirisa tsikidzi, mune iyi vhezheni itsva yeSDL 2.0.20 Yakagadzirisa nyaya nehukuru hwemacursors emunharaunda paWindows platform.

Panguva ye Linux hotplug gadziriso yevatongi vemitambo, iyo yakaputswa mushanduro 2.0.18.

Kuwedzera kune izvo zvitsva muSDL 2.0.20, zvakare inosimbisa kuburitswa kwakasiyana kweSDL_ttf 2.0.18 raibhurari izvo inoshanda se chinongedzo kune iyo FreeType 2 font injini, iyo inopa zvishandiso zvekushanda neTTF (TrueType) mafonti muSDL 2.0.18.

Iyo vhezheni nyowani inosanganisira mamwe maficha ekuyera, kuburitsa kudzora, kudzoreredza, uye TTF font parameterization, uye inowedzera tsigiro ye32-bit glyphs.

Finalmente kana iwe uchifarira kuziva zvakawanda nezvazvo yeiyi vhezheni itsva, unogona kutarisa iyo ruzivo mune inotevera chinongedzo.

Maitiro ekuisa yakapusa DirectMedia Layer paLinux?

Kuisa raibhurari iyi paLinux kuri nyore sezvo kugoverwa kweLinux kuchinayo mukati mezvinhu zvavo

Kana iri Debian, Ubuntu uye kugoverwa kunobva pane izvi, iwe uchafanirwa kumhanya chete inotevera mirairo mune chinouraya:

sudo apt-get install libsdl2-2.0
sudo apt-get install libsdl2-dev

Panyaya yenyaya yeavo vari uArch Linux suarios isu tinongofanirwa kumhanya zvinotevera:

sudo pacman -S sdl2

Muchiitiko cheavo vari vashandisi ve Fedora, Centos, RHEL kana chero kugoverwa kunoenderana navo, ivo vanongofanirwa kumhanya unotevera kuraira:

sudo yum install SDL2
sudo yum install SDL2-devel

Kune mamwe ese maLinux kugoverwa, ivo vanogona kutsvaga iyo package "sdl" kana "libsdl" yekumisikidza kana kurodha pasi uye kuumbiridza sosi kodhi.

Vanoita izvi ne:

git clone https://hg.libsdl.org/SDL SDL
cd SDL
mkdir build
cd build
./configure
make
sudo make install

Izvo zviri muchinyorwa zvinoomerera pamisimboti yedu ye tsika dzekunyora. Kuti utaure chikanganiso tinya pano.

Iva wekutanga kutaura

Siya yako yekutaura

Your kero e havazobvumirwi ichibudiswa.

*

*

  1. Inotarisira data: AB Internet Networks 2008 SL
  2. Chinangwa cheiyo data: Kudzora SPAM, manejimendi manejimendi.
  3. Legitimation: Kubvuma kwako
  4. Kutaurirana kwedata
  5. Dhata yekuchengetedza: Dhatabhesi inobatwa neOccentus Networks (EU)
  6. Kodzero: Panguva ipi neipi iwe unogona kudzora, kupora uye kudzima ruzivo rwako