# flibitijibibo/SDL2-CS

SDL2# - C# Wrapper for SDL2

Repository: https://github.com/flibitijibibo/SDL2-CS
Canonical: https://ross.abutalabs.com/products/sdl2-cs
Language: C#
License: NOASSERTION
License Family: other
Archived: true
Last push: 2024-06-28T07:10:15+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 4900, "days_push": 796, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, archived, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1103, forks 252 (observed 2026-08-28T04:03:36.021976+00:00)

## What it is
SDL2# is a C# wrapper (P/Invoke bindings) for the SDL2 multimedia library and its extensions (SDL2_gfx, SDL2_image, SDL2_mixer, SDL2_ttf). It is a pure port of the C headers, originally written for FNA's platform support but usable in any C# application.

## Use cases
- write a 2d game in c# with sdl2
- use sdl2 from .net
- play audio and load images in c# via sdl2_mixer and sdl2_image
- render text with sdl2_ttf in a c# app
- cross-platform window and input handling in c#
- build a monogame/fna-style game engine

## When to choose
- you want direct, faithful access to SDL2's C API from C#
- you need SDL2_image, SDL2_mixer, SDL2_ttf, or SDL2_gfx bindings
- you are building on FNA or a similar low-level game framework
- you prefer C naming conventions over idiomatic C# abstractions

## When to avoid
- you want an idiomatic, object-oriented C# game framework with high-level abstractions
- you need every SDL2 function, as the wrapper intentionally omits some
- you want a fully managed solution without native library dependencies

## Facets
- artifact type: library
- maturity: maintenance
- function: graphics, game-engine, audio-processing, image-processing
- domain: cross-platform, graphics
- platform: cross-platform, windows, cpp
- tags: sdl2, csharp-bindings, p-invoke, native-interop, fna, game-development, linux, macos

## Member repositories
- flibitijibibo/SDL2-CS (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:36.021976+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:45:32.490257+00:00, confidence not recorded.
  - readme: https://github.com/flibitijibibo/SDL2-CS (fetched 2026-08-28T04:03:36.021976+00:00, sha 7441bf2163f5)
- Data as of 2026-08-30T08:39:29.467469+00:00.
