DEKI/ENGINE ドキュメント
マニュアル API リファレンス
deki-anbernic-boards 0.40.1
Deki パッケージリファレンス
deki-anbernic-boards

Anbernic RG40XX H をビルドターゲットとして提供します。ビルドパネルで選ぶと、Build で携帯機の純正ファームウェア用のアプリを作り、Install で SD カードに入れるか Wi-Fi で送ります。アプリは Apps の一覧に表示されます。

リポジトリ: github.com/dekiengine/deki-anbernic-boards · 最新リリース: 0.40.0 · エンジン 0.40.0 以降が必要 · 依存: deki-input, deki-rendering

DekiEditor --packages-add deki-anbernic-boards <project> か、パッケージマネージャーからインストールします。エンジン自身のコンポーネントと C++ API は Deki のドキュメントにあります。

エディターでは Anbernic Boards と表示されます。

コンポーネント

コンポーネント カテゴリ 説明
AnbernicDisplaySetup Anbernic Anbernic の携帯ゲーム機の画面にゲームを表示します。
AnbernicInputSetup Anbernic Anbernic の携帯ゲーム機のボタンを、キーとしてエンジンに渡します。

機能フラグ

ビルドから外せる部分です。define を持つ機能はその define で切り替わり、それ以外はコンポーネントと一緒に取り除かれます。

機能 define デフォルト
Display — オン
Input — オン

コンポーネントリファレンス

AnbernicDisplaySetup

Anbernic の携帯ゲーム機の画面にゲームを表示します。

インスペクターでの名前: Anbernic ディスプレイ設定 · カテゴリ: Anbernic · 型: DekiAnbernic::AnbernicDisplaySetup

プロパティ 型 デフォルト 制約 説明
scale int32 0 0 から 8 画面の 1 ピクセルあたりのパネルのピクセル数です。0 なら収まる最大まで拡大します。
panelWidth int32 640 1 から 4096 パネルの幅 (ピクセル) です。RG40XX H は 640 です。
panelHeight int32 480 1 から 4096 パネルの高さ (ピクセル) です。RG40XX H は 480 です。

AnbernicInputSetup

Anbernic の携帯ゲーム機のボタンを、キーとしてエンジンに渡します。

インスペクターでの名前: Anbernic 入力設定 · カテゴリ: Anbernic · 型: DekiAnbernic::AnbernicInputSetup

リフレクションされたプロパティはありません。

変更履歴

変更履歴は英語です。

0.40.0

The Anbernic RG40XX H as a build target

  • anbernic_rg40xx_h: 640x480 ARGB8888, cross-compiled with Arm's aarch64-none-linux-gnu toolchain and linked static.
  • Display: sets /dev/fb0 to the panel's size in ARGB8888 with two pages, flips between them on its own thread, and puts the firmware's mode back when the game quits.
  • Input: the buttons from the ANBERNIC-keys device, the d-pad and the left stick as keys; Menu quits.
  • Install: <Name>.sh and <Name>/ in Roms/APPS/ on a stock firmware card, with Imgs/<Name>.png as its picture. The script goes last, so the Apps list shows the game only once it is whole.

Install over Wi-Fi

  • With the handheld's address in the platform (Install over Wi-Fi: frameworkOptions sshHost, sshUser, sshCard), Install offers it beside the SD cards, as the target ssh:root@<address>. It copies with the computer's own ssh and scp, logs in with its key only, and installs as onto a card: a hidden folder first, every file checked against the build (SHA-256) before it replaces the old app, the script last, an app the editor did not install left alone. A refused login says how to add the key; the README has the steps, and the stock firmware's /root permissions trap.

Sticks

  • Both sticks are read as sticks (DekiInput::GetStick), from -1 to 1 over each axis' own range; the left one still sends the arrow keys too.

Measuring

  • A file named profile beside the game turns on a report in its log every 2 s: frames and their spacing, the engine's update, render and present, each kind of component and blit path, the costliest objects, and the display thread's copy. With trace in that file, every frame also goes to trace.txt: when it was handed over, its time step, the camera in screen pixels, and when it went up on the panel.

それ以前のリリース: CHANGELOG.md


パッケージのリフレクションデータから生成しています (エンジン 0.40.1)。プロパティ名はシーンファイルで使われるキーです。名前を変えても別名が残ります (互換性)。