first README

This commit is contained in:
jason 2025-11-28 20:24:52 +00:00
parent ac4854a850
commit 6c3e30421b

View File

@ -1,84 +1,47 @@
# joomer-bella-basic-renderer # joomer-ftxui-file-browser
basic rendering using bella engine sdk Terminal User Interface for file browsing using ftxui
<img src="resources/poomer-bella-basic-renderer.png"> <img src="resources/joomer-bella-basic-renderer.png">
# Demonstrates # Demonstrates
- basic rendering -
- bella events to monitor render process - supports arrow keys or mouse navigation
- jump in and out of directories,
- select a file and print it's size
# Usage # Usage
``` ```
# Compile the program (one long line) # Compile the program
cl /std:c++14 /DNDEBUG /Ibella_engine_sdk\src /EHsc joomer-bella-basic-renderer.cpp ^ make all
/link /LIBPATH:bella_engine_sdk\lib bella_engine_sdk.lib /OUT:joomer-bella-basic-renderer.exe
# Set up library path and run
joomer-bella-basic-renderer.exe
``` ```
[todo] [todo]
- fix typos in README.md - create windows version
- add Makefile for linux/mac - add numbers to select
- switch from main to DL_main - display file size
add arg for number of sphere, randomly transform sphere in XY axes, different color, different roughness, random scale
# Build # Build
``` ```
learndir/ learndir/
└── joomer-bella-basic-renderer/ └── FTXUI/
└── joomer-ftxui-file-browser/
└── build_engine_sdk/ └── build_engine_sdk/
```
## MacOS (kasm-monterey)
- [ ] Install Xcode
```
mkdir learndir
cd learndir
curl -LO https://downloads.bellarender.com/bella_engine_sdk-25.3.0-macos.zip
unzip bella_engine_sdk-25.3.0-macos.zip
git clone https://git.indoodle.com/jason/joomer-bella-basic-renderer.git
cd joomer-bella-basic-renderer
make all -j4
bin/Darwin/release/poomer-bella-sine -r
open ./joomer-bella-basic-renderer.png
``` ```
## Ubuntu Linux (kasm-ubuntu) ## Ubuntu Linux (kasm-ubuntu)
``` ```
sudo apt install -y build-essential curl git clone https://github.com/ArthurSonzogni/FTXUI
mkdir learndir mkdir build
cd learndir cd build
curl -LO https://downloads.bellarender.com/bella_engine_sdk-25.3.0-linux.tar.gz cmake --build . --config Release
tar -xvf bella_engine_sdk-25.3.0-linux.tar.gz cd ..
git clone https://git.indoodle.com/jason/joomer-bella-basic-renderer.git git clone https://git.indoodle.com/jason/joomer-ftxui-file-browser.git
cd joomer-bella-basic-renderer cd joomer-ftxui-file-browser.git
make all -j4 make all -j4
bin/Linux/release/joomer-bella-basic-renderer -r bin/Linux/release/joomer-ftxui-file-browser
file ./joomer-bella-basic-renderer.png
``` ```
## Windows (win10)
- [optioanl] Install https://git-scm.com
- Download Visual Studio Community Edition 2022
- Run VisualStudioSetup.exe
- Workload = [x] Desktop developemnt with C++
- Individial components = [x] Git For Windows
Run **x64 Native Tools Command Prompt for VS 2022**
```
cd %USERPROFILE%
mkdir learndir
cd learndir
curl -LO https://downloads.bellarender.com/bella_engine_sdk-25.3.0-win32.zip
tar -xf bella_engine_sdk-25.3.0-win32.zip
git clone https://git.indoodle.com/jason/joomer-bella-basic-renderer.git
cd joomer-bella-basic-renderer
set PATH=%PATH%;bella_engine_sdk\lib
msbuild joomer-bella-basic-renderer.vcxproj /p:Configuration=Debug /p:Platform=x64
joomer-bella-basic-renderer.exe
start mspaint joomer-bella-basic-renderer.png
```