2025-09-26 21:25:28 -04:00

80 lines
2.1 KiB
Markdown

# joomer-bella-basic-renderer
basic rendering using bella engine sdk
<img src="resources/jump_right_in.png">
# Demonstrates
- basic rendering
- bella events to monitor render process
# Usage
```
# Compile the program (one long line)
cl /std:c++14 /DNDEBUG /Ibella_engine_sdk\src /EHsc joomer-bella-basic-renderer.cpp ^
/link /LIBPATH:bella_engine_sdk\lib bella_engine_sdk.lib /OUT:joomer-bella-basic-renderer.exe
# Set up library path and run
set PATH=%PATH%;bella_engine_sdk\lib
joomer-bella-basic-renderer.exe
```
[todo] create makefile
# Build
```
learndir/
└── joomer-bella-basic-renderer/
└── 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)
```
sudo apt install -y build-essential curl
mkdir learndir
cd learndir
curl -LO https://downloads.bellarender.com/bella_engine_sdk-25.3.0-linux.tar.gz
tar -xvf bella_engine_sdk-25.3.0.tar.gz
git clone https://git.indoodle.com/jason/joomer-bella-basic-renderer.git
cd joomer-bella-basic-renderer
make all -j4
bin/Linux/release/joomer-bella-basic-renderer -r
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
joomer-bella-basic-renderer.exe
start mspaint joomer-bella-basic-renderer.png
```