All Projects → m3diaLib-Team → m3diaLib-CTR

m3diaLib-Team / m3diaLib-CTR

Licence: GPL-3.0 License
A C++ library for easier homebrew development for the Nintendo 3DS

Programming Languages

C++
36643 projects - #6 most used programming language
Makefile
30231 projects

Projects that are alternatives of or similar to m3diaLib-CTR

bottomless-block-barrage
Panel de Pon (Tetris Attack) clone for the 3ds.
Stars: ✭ 15 (-61.54%)
Mutual labels:  homebrew, nintendo, nintendo-3ds, nintendo-hacking, 3ds, 3dshacks
3ds-hello-dlang
A 3DS homebrew example written in D!
Stars: ✭ 19 (-51.28%)
Mutual labels:  libctru, 3ds, 3ds-homebrew, citro3d
Citro2d
Library for drawing 2D graphics using the Nintendo 3DS's PICA200 GPU
Stars: ✭ 88 (+125.64%)
Mutual labels:  homebrew, nintendo, nintendo-3ds, 2d
3DS.py
Python on your Nintendo 3DS
Stars: ✭ 90 (+130.77%)
Mutual labels:  homebrew, nintendo-3ds, 3ds, 3ds-homebrew
CDNTool
CDN Nintendo's servers 3DS title downloader (as CIA)
Stars: ✭ 15 (-61.54%)
Mutual labels:  nintendo, nintendo-3ds, nintendo-hacking, 3ds
Libctru
Homebrew development library for Nintendo 3DS/Horizon OS user mode (Arm11)
Stars: ✭ 530 (+1258.97%)
Mutual labels:  homebrew, nintendo-3ds, 3ds
libstarlight
3DS Homebrew Application Framework
Stars: ✭ 28 (-28.21%)
Mutual labels:  homebrew, 3ds, 3ds-homebrew
Picasso
Homebrew PICA200 shader assembler
Stars: ✭ 41 (+5.13%)
Mutual labels:  homebrew, nintendo, nintendo-3ds
ocs
A one click setup for 3ds
Stars: ✭ 13 (-66.67%)
Mutual labels:  3ds, 3ds-homebrew, 3dshacks
3ds Examples
Examples for 3DS using devkitARM, libctru, citro3d and citro2d
Stars: ✭ 221 (+466.67%)
Mutual labels:  homebrew, nintendo-3ds, 3ds
Citro3d
Homebrew PICA200 GPU wrapper library for Nintendo 3DS
Stars: ✭ 143 (+266.67%)
Mutual labels:  homebrew, nintendo, nintendo-3ds
tangerine
A work-in-progress music player for the Nintendo 3DS and Nintendo Switch
Stars: ✭ 20 (-48.72%)
Mutual labels:  ctrulib, 3ds, citro3d
Mirage
Reimplementation of the Nintendo Switch firmware
Stars: ✭ 40 (+2.56%)
Mutual labels:  nintendo, nintendo-hacking
reboot to rcm
A small app to reboot 1.0 Switches into RCM mode
Stars: ✭ 32 (-17.95%)
Mutual labels:  nintendo, nintendo-hacking
SwitchXBOXController
Turn your Nintendo Switch into an XBOX360 controller to play on your Windows computer
Stars: ✭ 46 (+17.95%)
Mutual labels:  homebrew, nintendo
flipnote-studio-3d-docs
Documentation for Flipnote Studio 3D (3DS eShop)
Stars: ✭ 25 (-35.9%)
Mutual labels:  nintendo, nintendo-3ds
spelunky-ds
Spelunky remake for NintendoDS
Stars: ✭ 69 (+76.92%)
Mutual labels:  homebrew, nintendo
old-browserhax
Fast and free old 3ds browser exploit for latest firmware.
Stars: ✭ 37 (-5.13%)
Mutual labels:  homebrew, 3ds
Homebrew-Guide
Guide for getting CFW setup on your Nintendo Switch (And Wii U)
Stars: ✭ 104 (+166.67%)
Mutual labels:  homebrew, nintendo
3ds
Javascript front-end to the titledb API
Stars: ✭ 12 (-69.23%)
Mutual labels:  homebrew, 3ds

m3diaLib Build Status CodeFactor

A fast, extensive and powerful allround media and game library for the Nintendo 3DS, written in C++.

This library is deprecated. I will still merge PRs and fix critical bugs, but I'm not planning on adding any new features or doing major changes. You should use libctru and citro3d/2d directly, if possible.

Click here to get to the installation instructions.

This library is still in beta! If you have any issues or find any bugs, please report them!

Features

The m3diaLib (spelled media-lib) is split into multiple modules, which can then be split into smaller parts:

Core

The core module contains all functionality for interacting with the system. Its features range from running and handling the app itself to displaying errors and running system applets.

Its main features are:

  • A class for running your homebrew app
  • Easy interaction with the system itself
  • Starting and running applets
  • Time measurement
  • Support for the RomFS
  • Multithreading and concurrency

Input

The input module does what its name says: It handles each and every input for interacting with the user.

Its main features are:

  • Handling button input
  • Handling touch input

Graphics

The graphics module is by far the biggest module. It handles anything graphic-wise, from rendering simple shapes to rendering and animating high-quality textures.

Its main features are:

  • Support for the top and bottom screen
  • Support for stereoscopic 3D
  • Easy-to-use interface for fast rendering on both screens
  • Support for transformation of textures and sprites
  • Pre-coded shapes as well as a shape class for easily rendering your own shapes
  • Easy-to-use color system
  • Collision detection

Audio

The audio module can be used for both music and sound effects.

Its main features are:

  • Loading or streaming audio files directly from the file system
  • Support for .wav and .mp3 (more to come!)
  • Two different classes, sound and music, which have features that can be helpful specific in their use case

Utils

The utils module contains all kind of useful utilities. Some of its functionalities are the following:

  • Basic encryption

All features are well documented here. Examples can be viewed here.

How to use it

The barebones of a homebrew app using the m3diaLib would look like this:

#include <m3dia.hpp>

int main() {
    m3d::Applet app;

    while (app.isRunning()) {
        if (m3d::buttons::buttonPressed(m3d::buttons::Button::Start)) {
            app.exit(); // exit if start is pressed
        }
    }
}

Easy, isn't it?

Planned features:

Audio:

  • Microphone support
  • More file formats

Core:

  • Support for all availiable os and system functionality

Graphics:

  • Animation
  • RenderTargets
  • More file formats for textures
  • 3D support

Networking:

This module isn't availiable at the moment. However, it's planned features are:

  • A simple HTTP and WebSocket client and server
  • Socket support
  • A 3DS-download-game alternative (more on that at a later point)

Utils:

  • ZIP compression and decompression
  • JSON and XML parsing
  • Secure random numbers

...and anything that strikes my mind in the future.

Installation

To install the library, download the latest build and then execute the command make install.

If you want to build it from the source, download the latest release and then execute the following commands:

make
make install

Note: Make sure, to have the latest version of the devkitPro-toolchain installed, before building the lib or any examples.

Dependencies

To compile a m3diaLib-app, you need the following dependencies installed (install via devkitPro-pacman):

  • 3dstools
  • picasso
  • libctru
  • citro3d
  • citro2d
  • 3ds-tinyxml2
  • 3ds-zlib
  • 3ds-mpg123
  • 3ds-libpng
  • 3ds-freetype
  • tex3ds (if you want to use spritesheets)

Use this command to automatically install all necessary dependencies:

sudo dkp-pacman -S 3ds-dev 3ds-zlib 3ds-tinyxml2 3ds-mpg123 3ds-libpng

Credits

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].