Metadata-Version: 2.2
Name: mini-arcade-native-backend
Version: 1.6.0
Summary: Native SDL2 backend for mini-arcade-core using SDL2 + pybind11.
Author-Email: Santiago Rincon <rincores@gmail.com>
License: Copyright (c) 2025 Santiago Rincón
           
           Permission is hereby granted, free of charge, to any person obtaining a copy
           of this software and associated documentation files (the "Software"), to deal
           in the Software without restriction, including without limitation the rights
           to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
           copies of the Software, and to permit persons to whom the Software is
           furnished to do so, subject to the following conditions:
           
           The above copyright notice and this permission notice shall be included in all
           copies or substantial portions of the Software.
           
           THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
           IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
           FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
           AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
           LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
           OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
           SOFTWARE.
         
Requires-Python: <3.12,>=3.9
Requires-Dist: mini-arcade-core<2.0.0,>=1.6.0
Provides-Extra: dev
Requires-Dist: pytest~=8.3; extra == "dev"
Requires-Dist: pytest-cov~=6.0; extra == "dev"
Requires-Dist: black~=24.10; extra == "dev"
Requires-Dist: isort~=5.13; extra == "dev"
Requires-Dist: mypy~=1.5; extra == "dev"
Requires-Dist: pylint~=3.3; extra == "dev"
Description-Content-Type: text/markdown

# mini-arcade-native-backend

Native SDL2 backend for `mini-arcade-core`.

This package combines:

- a compiled `_native` extension built with `SDL2` and `pybind11`
- a Python `NativeBackend` adapter that implements the shared backend protocol

The design goal is to keep gameplay logic in Python while moving windowing,
event polling, text, audio, capture, and drawing primitives into a native SDL2
layer.

## Install

```bash
pip install mini-arcade-native-backend
```

## Development notes

In the monorepo, local Python sources may run against a compiled `_native`
extension from the active virtual environment. If you change native backend
code and the extension is stale, rebuild it with:

```powershell
python -m pip install -e .\packages\mini-arcade-native-backend
```

For Windows native builds, the maintained path is `vcpkg` plus:

- `SDL2`
- `SDL2_ttf`
- `SDL2_mixer`

See `docs/source/contributing/dev_setup.md` for the current contributor flow.

## Docs

See the monorepo docs for backend architecture and parity guidance:

- `docs/source/concepts/backends.md`
- `docs/source/tutorials/config/backend_swap.md`
