Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/devkitpro/citro2d
Library for drawing 2D graphics using the Nintendo 3DS's PICA200 GPU
https://github.com/devkitpro/citro2d
2d citro2d citro3d devkitpro gpu graphics homebrew libctru nintendo nintendo-3ds pica200 sprite sprites
Last synced: 3 days ago
JSON representation
Library for drawing 2D graphics using the Nintendo 3DS's PICA200 GPU
- Host: GitHub
- URL: https://github.com/devkitpro/citro2d
- Owner: devkitPro
- License: zlib
- Created: 2018-05-13T23:56:54.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-11-27T18:12:29.000Z (2 months ago)
- Last Synced: 2025-01-23T04:07:26.017Z (10 days ago)
- Topics: 2d, citro2d, citro3d, devkitpro, gpu, graphics, homebrew, libctru, nintendo, nintendo-3ds, pica200, sprite, sprites
- Language: C
- Homepage: https://citro2d.devkitpro.org/
- Size: 243 KB
- Stars: 169
- Watchers: 18
- Forks: 29
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- Changelog: Changelog.md
- License: LICENSE
Awesome Lists containing this project
README
# citro2d
**( ͡° ͜ʖ ͡°)**
*Library for drawing 2D graphics using the Nintendo 3DS's PICA200 GPU.*
This library contains optimized routines that allow 3DS homebrew developers to
develop applications that take full advantage of the GPU to draw 2D graphics.
The routines in this library have been carefully designed and optimized for
the purpose of removing bottlenecks and allowing higher GPU throughput.citro2d uses [citro3d](https://github.com/fincs/citro3d) under the hood to
talk to the GPU. It is possible to use citro2d on its own, or use it alongside
citro3d to draw mixed 2D and 3D content.Features:
- Lightweight and straightforward API
- Full doxygen documentation
- Drawing on any surface (C3D_RenderTarget)
- Drawing images and sprites (the latter contain state whereas the former don't)
- Drawing text using the system font
- Spritesheet/texture atlas support using [tex3ds](https://github.com/mtheall/tex3ds)
- Scaling, flipping, rotation
- Drawing untextured triangles and rectangles
- Per-vertex tinting with configurable blend factor (additive color blending with user specified colors)
- Flexible and configurable gradients
- Full-screen fade-out/fade-in transitions (to any color)
- Concurrent usage of citro2d and citro3d