SDL 2.0.16 inosvika pamwe nekuvandudza kweWayland, Pipewire uye nezvimwe

Mazuva mashoma apfuura kuburitswa kweshanduro nyowani ye SDL 2.0.16 raibhurari yakaziviswa (Nyore DirectMedia Layer), yakagadzirirwa kurerutsa kunyora kwemitambo uye kunyorera multimedia. Mune iyi vhezheni itsva shanduko dzakasiyana dzakawedzerwa, pakati payo kusimudzira kwekutsigira kweWayland kunoonekera, pamwe nekugona kugadzira uye kutora odhiyo uchishandisa iyo Pipewire multimedia server nezvimwe zvinhu.

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 inowirirana zviri pamutemo neWindows, Mac OS X, Linux, iOS uye Android, kunyangwe iine rutsigiro rwemamwe mapuratifomu akadai seQNX, pamwe nemamwe maratidziro 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.

Kunyangwe yakarongedzwa muC, ine machira kune mimwe mitauro yekuronga senge C ++, Ada, C #, BASIC, Erlang, Lua, Java, Python, nezvimwe.

Main nyowani maficha e SDL 2.0.16

Mune iyi vhezheni nyowani yeSDL, imwe yezvinhu zvitsva izvo zvimire pachena ndezvekuti tsigiro yeWayland yakagadziridzwa zvikuru, kunze akawedzera kugona kugadzira uye kutora odhiyo uchishandisa Pipewire Media Server uye AAudio (Android) uye zvakare inotsigira yeAmazon Luna uye Xbox Series X mutambo wekudzora.

Imwe shanduko yatinogona kuwana ndeyekutie yakawedzera rutsigiro rweyakagadziriswa vibration mhedzisiro (kurira) mukati Google Stadia uye Nintendo Shandura Pro vanodzora kana uchishandisa mutyairi weHIDAPI.

Pamusoro pazvo CPU mutoro waderedzwa kana uchigadzirisa mafoni SDL_WaitEvent () uye SDL_WaitEventTimeout () uye tsananguro yeSIMD yekuwedzeredza inoenderana neElbrus chikuva yakawedzerwawo.

Kune chikamu yezvinhu zvitsva izvo zvakarongerwa mushanduro iyi nyowani, zvinotevera zvinotaurwa:

  • SDL_FlashWindow () - Inokutendera iwe kuti utore kutarisisa kwemushandisi.
  • SDL_GetAudioDeviceSpec (): ndeyekuwana ruzivo nezve yakasarudzika fomati odhiyo yeyakatsanangurwa mudziyo.
  • SDL_SetWindowAlwaysOnTop (): yakanangana nekuchinja zvine simba mureza we SDL_WINDOW_ALWAYS_ON_TOP (anchor pane zvimwe zvirimo) yeiyo hwindo rakasarudzwa.
  • SDL_SetWindowKeyboardGrab (): kutora kuiswa kwekhibhodi kwakazvimiririra mbeva.
  • SDL_SoftStretchLinear (): yezve bilinear kuyera pakati pe 32-bit nzvimbo.
  • SDL_UpdateNVTexture (): kugadzirisa zvinyorwa muNV12 / 21.
  • SDL_GameControllerSendEffect () uye SDL_JoystickSendEffect (): kutumira zvimiro zvetsika kune DualSense mutambo vatongi.
  • SDL_GameControllerGetSensorDataRate (): kuwana dhata pamusoro pekusimba kweruzivo rwunogamuchirwa kubva kune ma sensors e PlayStation uye Nintendo Shandura vatongi mutambo.
  • SDL_AndroidShowToast (): izvi zvinobvumidza kuratidza zvivheneko zvemwenje papuratifomu yeApple.

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. Raida minda anozivikanwa ne *

*

*

  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