aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* feat: use vendored hare-sdl2HEADmasterPolesznyák Márk8 days2-11/+6
|
* Add 'vendor/hare-sdl2/' from commit 'fb6008be0b79a2a24b1ac960316a83f7873b4f39'Polesznyák Márk9 days29-0/+2989
|\ | | | | | | | | | | git-subtree-dir: vendor/hare-sdl2 git-subtree-mainline: ed088aa81ac23fa48d5ae48ee739c97e0fcb4490 git-subtree-split: fb6008be0b79a2a24b1ac960316a83f7873b4f39
| * Add ! after c::fromstr calls to handle nomemHaelwenn (lanodan) Monnier2025-10-213-4/+4
| | | | | | | | | | | | Lazy way out, might be better to change API either by returning nomem or using `*char` as parameter so it's caller controlled instead of `str`.
| * sdl2/rwops: assert on allocation failureDrew DeVault2025-01-131-1/+1
| |
| * Add SDL text input wrappersDrew DeVault2024-11-181-0/+2
| |
| * Add SDL_GL_GetDrawableSizeDrew DeVault2024-11-031-0/+1
| |
| * Add SDL_GL_SetSwapIntervalDrew DeVault2024-10-261-0/+1
| |
| * sdl2: add (some) mouse functionalityDrew DeVault2024-10-251-0/+49
| |
| * add SDL_FreeSurfaceubq3232024-05-271-0/+7
| |
| * add a few functionsubq3232024-04-194-1/+44
| | | | | | | | | | these are some sdl functions i needed for a project. there is not much structure beyond that.
| * Add SDL_GetRendererOutputSize.Joe Finney2023-12-311-0/+9
| | | | | | | | Signed-off-by: Joe Finney <me@spxtr.net>
| * all: fix build errorsDrew DeVault2023-09-228-28/+28
| |
| * Add SDL_CreateTextureFromSurface()francorbacho2023-08-141-0/+11
| | | | | | | | Signed-off-by: francorbacho <francorbacho@proton.me>
| * cmd/demo: fix call to fmt::fatal()Autumn!2023-06-041-2/+2
| | | | | | | | Signed-off-by: Autumn! <autumnull@posteo.net>
| * correct/simplify .gitignoreAutumn!2023-06-041-3/+2
| | | | | | | | Signed-off-by: Autumn! <autumnull@posteo.net>
| * Correct return type wrapping of Mix_Init()Autumn!2023-06-041-1/+3
| | | | | | | | Signed-off-by: Autumn! <autumnull@posteo.net>
| * rwops.ha: make more rigorous in order to fix various bugsAutumn!2023-06-042-9/+14
| | | | | | | | Signed-off-by: Autumn! <autumnull@posteo.net>
| * Use types::c:: instead of char and strings::Autumn!2023-06-047-24/+28
| | | | | | | | Signed-off-by: Autumn! <autumnull@posteo.net>
| * added some missing bindingsmateusmd2023-03-161-12/+127
| |
| * Swap io::{read,write}items for io::{read,write}allAutumn!2023-03-161-2/+2
| | | | | | | | Signed-off-by: Autumn! <autumnull@posteo.net>
| * add SDL_(Un)LockTextureVlad-Stefan Harbuz2022-12-191-0/+13
| | | | | | | | Signed-off-by: Vlad-Stefan Harbuz <vlad@vladh.net>
| * Add SDL_GetWindowSurface wrapperCarlos Une2022-11-071-0/+8
| | | | | | | | Signed-off-by: Carlos Une <une@fastmail.fm>
| * Add SDL_PIXELFORMAT_ARGB8888 defCarlos Une2022-11-071-0/+2
| | | | | | | | Signed-off-by: Carlos Une <une@fastmail.fm>
| * Add SDL_CreateRGBSurface wrapperCarlos Une2022-11-071-0/+12
| | | | | | | | Signed-off-by: Carlos Une <une@fastmail.fm>
| * Add SDL_CreateTexture, SDL_UpdateTexture wrappersCarlos Une2022-11-071-0/+26
| | | | | | | | Signed-off-by: Carlos Une <une@fastmail.fm>
| * mixer: io::close can errorSebastian2022-04-281-1/+1
| | | | | | | | Signed-off-by: Sebastian <sebastian@sebsite.pw>
| * Makefile: add clean targetSebastian2022-04-231-1/+4
| | | | | | | | Signed-off-by: Sebastian <sebastian@sebsite.pw>
| * Makefile: add docs targetSebastian2022-04-232-1/+9
| | | | | | | | Signed-off-by: Sebastian <sebastian@sebsite.pw>
| * Use def for SDL_INIT_*Drew DeVault2022-04-213-20/+18
| |
| * Rename SDL_GameControllerBUtton to SDL_GameControllerButtonSebastian2022-03-291-1/+1
| | | | | | | | Signed-off-by: Sebastian <sebastian@sebsite.pw>
| * refactor names from e.g. sdl2::init() to sdl2::SDL_Init()Vlad-Stefan Harbuz2022-02-0721-588/+588
| | | | | | | | Signed-off-by: Vlad-Stefan Harbuz <vlad@vladh.net>
| * correct indentationVlad-Stefan Harbuz2022-02-074-73/+73
| | | | | | | | Signed-off-by: Vlad-Stefan Harbuz <vlad@vladh.net>
| * Add controller rumble supportDrew DeVault2022-02-052-0/+27
| | | | | | | | Signed-off-by: Drew DeVault <sir@cmpwn.com>
| * add gl.haVlad-Stefan Harbuz2022-02-041-0/+45
| | | | | | | | Signed-off-by: Vlad-Stefan Harbuz <vlad@vladh.net>
| * sdl2: add usage to READMEVlad-Stefan Harbuz2022-01-191-0/+5
| | | | | | | | Signed-off-by: Vlad-Stefan Harbuz <vlad@vladh.net>
| * sdl2: add keysym typesand get_key_from_nameEyal Sawady2021-12-152-1/+646
| |
| * sdl2: add rect drawing functionsDrew DeVault2021-12-151-0/+33
| |
| * sdl2::mixer: implement channel playbackDrew DeVault2021-12-123-0/+27
| |
| * sdl2::mixer: implement sample loadingDrew DeVault2021-12-124-2/+47
| |
| * Add rwops io::stream implementationDrew DeVault2021-12-121-0/+128
| |
| * all: add error handling on initDrew DeVault2021-12-123-7/+13
| |
| * sdl2::mixer: initial commitDrew DeVault2021-12-124-1/+91
| |
| * Add blend modesDrew DeVault2021-12-112-0/+22
| |
| * Add SetTextureAlphaMod wrapperDrew DeVault2021-12-111-0/+16
| |
| * gamecontroller: add button enumDrew DeVault2021-12-101-0/+26
| |
| * all: rig up Hare-native error handlingDrew DeVault2021-12-108-103/+213
| |
| * Makefile: drop -T+libcDrew DeVault2021-12-091-2/+2
| | | | | | | | This is implied by -l
| * cmd/demo: remove unused importDrew DeVault2021-12-091-1/+0
| |
| * Add sdl2::set_texture_color_modDrew DeVault2021-12-091-0/+15
| |
| * cmd/demo: change background on controller buttonDrew DeVault2021-12-091-1/+11
| |