XK9274 / sdl2_miyoo

SDL2 Library for Miyoo Mini (Plus)

Home Page:https://steward-fu.github.io/website/index.htm

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Warning:

The main branch of this fork is out of date. The branches are out of date but the vanilla branch has most of the NDS specific logic removed and can be used at runtime for various apps.

If your app uses TARGET textures, you will likely find they do NOT work for your application.

To use these libs, use a STREAMING texture, blit everything to a surface and then update your final texture & rendercopy/present, an example of which is here:

void RenderManagerSDL::refresh()
{
	SDL_RenderClear(mRenderer);
	SDL_UpdateTexture(mRenderStreaming, NULL, mMiyooSurface->pixels, mMiyooSurface->pitch);
	SDL_RenderCopy(mRenderer, mRenderStreaming, NULL, NULL);
	SDL_RenderPresent(mRenderer);
}

SDL2 Library with Virtual GPU Support for Miyoo Mini (Plus) and TRIMUI SMART

  • Miyoo Mini (Plus)
    • Introduction
    • Build from Scratch
      • How to prepare the build environment (Docker)
      • How to build all libraries
      • How to pack the release build
      • How to delete the build environment (Docker)
  • TRIMUI SMART
    • Introduction
    • Build from Scratch
      • How to prepare the build environment (Docker)
      • How to build all libraries
      • How to pack the release build
      • How to delete the build environment (Docker)

 

Miyoo Mini (Plus)

image image

Introduction

TBD

 

Build from Scratch

How to prepare the build environment (Docker)

$ sudo docker build -t mmiyoo .

How to build all libraries (SDL2 and virtual GPU)

$ sudo docker run -it --rm -v $(pwd):/nds_miyoo mmiyoo /bin/bash
$ make config
$ make

How to build the SDL2 library only

$ sudo docker run -it --rm -v $(pwd):/nds_miyoo mmiyoo /bin/bash
$ make sdl2

How to build the virtual GPU (swiftshader) library only

$ sudo docker run -it --rm -v $(pwd):/nds_miyoo mmiyoo /bin/bash
$ make gpu

How to build the example

$ sudo docker run -it --rm -v $(pwd):/nds_miyoo mmiyoo /bin/bash
$ make example

How to delete the build environment (Docker)

$ sudo docker image rm mmiyoo

 

TRIMUI SMART

image

Introduction

TBD

 

Build from Scratch

How to prepare the build environment (Docker)

$ sudo docker build -t mmiyoo .

How to build all libraries (SDL2 and virtual GPU)

$ sudo docker run -it --rm -v $(pwd):/nds_miyoo mmiyoo /bin/bash
$ make config MOD=trimui
$ make

How to build the SDL2 library only

$ sudo docker run -it --rm -v $(pwd):/nds_miyoo mmiyoo /bin/bash
$ make sdl2

How to build the virtual GPU (swiftshader) library only

$ sudo docker run -it --rm -v $(pwd):/nds_miyoo mmiyoo /bin/bash
$ make gpu

How to build the example

$ sudo docker run -it --rm -v $(pwd):/nds_miyoo mmiyoo /bin/bash
$ make example MOD=trimui

How to delete the build environment (Docker)

$ sudo docker image rm mmiyoo

About

SDL2 Library for Miyoo Mini (Plus)

https://steward-fu.github.io/website/index.htm

License:GNU General Public License v3.0


Languages

Language:C 48.7%Language:C++ 44.8%Language:Objective-C 1.9%Language:Shell 1.1%Language:CMake 0.8%Language:M4 0.8%Language:Java 0.5%Language:Go 0.5%Language:Perl 0.2%Language:Yacc 0.2%Language:Makefile 0.1%Language:Assembly 0.1%Language:Lex 0.1%Language:JavaScript 0.1%Language:PowerShell 0.0%Language:Objective-C++ 0.0%Language:Python 0.0%Language:Batchfile 0.0%Language:Metal 0.0%Language:Roff 0.0%Language:HTML 0.0%Language:Dockerfile 0.0%