MIT License

项目介绍

XorTroll/Plutonium 是一个托管在 GitHub 上的开源项目,主要使用 C++ 编写,采用 MIT License 许可证,目前获得 306 个 Star、40 次 Fork。

仓库全名
XorTroll/Plutonium
开源许可证
MIT License
Star 数
306
Fork 数
40
未关闭 Issue
9

README 摘要

Plutonium Easy-to-use, SDL2-based UI framework for Nintendo Switch homebrew What is Plutonium? Plutonium is a high-level, C++ graphics library with the aim of making Nintendo Switch homebrew UIs in a more user-firendly way. It uses libnx and SDL2, so both libraries are required. To be more exact, this libraries should be installed via pacman: Plutonium internally uses SDL2 for UI rendering. Plutonium's API is…

完整内容见 GitHub 原始 README 或本页 。

常见问题

Plutonium 用什么语言开发?

主要使用 C++ 编写,采用 MIT License 许可证,目前有 306 个 Star。

Plutonium 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 Plutonium 的源码?

可以直接克隆仓库:git clone https://github.com/XorTroll/Plutonium.git,默认分支为 master;安装与运行步骤见仓库 README。

Plutonium 最近还在维护吗?

仓库最近一次更新为 8月21日,当前有 9 个未关闭 Issue;Star 数为 306,可作为社区活跃度的参考。

关于

Easy-to-use, SDL2-based UI framework for Nintendo Switch homebrew

描述取自 GitHub 官方 API,中文内容由 GitRead 中文社区 编辑团队整理。

简要分析

热度分
393
价值分
195
活跃状态
活跃

语言占比

C
C++
Makefile

Release

README

Plutonium

Easy-to-use, SDL2-based UI framework for Nintendo Switch homebrew

What is Plutonium?

Plutonium is a high-level, C++ graphics library with the aim of making Nintendo Switch homebrew UIs in a more user-firendly way.

It uses libnx and SDL2, so both libraries are required. To be more exact, this libraries should be installed via pacman:

switch-sdl2 switch-sdl2_ttf switch-sdl2_image switch-sdl2_gfx switch-sdl2_mixer switch-mesa switch-glad switch-glm switch-libdrm_nouveau switch-libwebp switch-libpng switch-freetype switch-bzip2 switch-libjpeg-turbo switch-opusfile switch-libopus

Plutonium internally uses SDL2 for UI rendering.

Plutonium’s API is somewhat based on WPF/WinForms’s system. The dev doesn’t have to interact with the rendering (unless you want to), as it’s done via a main rendering system and different objects to render.

Using this libraries

Simply download/fork this repository ;)

Check the basic example for a basic usage of the libraries. In case you want to see a really powerful app which really shows what Plutonium is capable of, take a look at Goldleaf, uLaunch or many other homebrew apps made using this libraries.

Check the documentation for a more detailed explanation of the library’s usage.

Simple project layout

This is how a regular Plutonium project would (more or less) have its Makefile and project layout using Plutonium:

  • Makefile
...

LIBS := -lpu -lfreetype -lSDL2_mixer -lopusfile -lopus -lmodplug -lmpg123 -lvorbisidec -logg -lSDL2_ttf -lSDL2_gfx -lSDL2_image -lSDL2 -lEGL -lGLESv2 -lglapi -ldrm_nouveau -lwebp -lpng -ljpeg `sdl2-config --libs` `freetype-config --libs` -lnx
LIBDIRS := $(PORTLIBS) $(LIBNX) $(CURDIR)/Plutonium

...
  • Project directory
Project
 |
 |-- Makefile
 |-- source
 |-- include
 |-- Plutonium
      |
      |-- include
      |-- lib

Building

Clone the repository, cd into Plutonium directory and run make.

You will need devkitPro, libnx and all the libraries mentioned above (installed via pacman).

Support

If you would like to be more informed about my projects’ status and support, you should check my Discord server. It’s a simple server for Nintendo homebrew and hacking stuff, focused on my projects.

If you like my work, you should take a look at my Patreon page!

评论

暂无评论