Skip to content

Commit

Permalink
Implement Graphics API (#244)
Browse files Browse the repository at this point in the history
* image module, graphics work

* we're getting there™

* minor adjustments

* minor update

* yay primitives and textures

* cleanup

* expose Quads to lua

* push 3ds work

* 3ds: fonts almost work

* fonts work, but not using color properly

* fix file casing

* fix arguments order, bleh

* fix da fonts on 3ds :D

* text batches are working :D

* try to do some mesh stuff, add polylined stuff

* Wii U compiles

* Update Nintendo Wii U.yml

* Update Font.cpp

* use UINT_LE?

* push changes

* push some changes

* actually find the location of the uniform block

* push code changes

* fix this for CI

* fix CI stuff

* fix error on setting looping for stream sources, add catchexception to setLooping

* curse you, semicolons

* fix gamepad axis not hitting zero on 3ds

* love.graphics.line

* luasocket + add callback check for keyboards

* remove logfile - it's useless now

* push whatever this was

* remove debug scripts because no need

* we have the gamepad rendering

* push changes, wii u renders on debug build but not release

* code cleanup

* fix wii u release not rendering

* reenable vpad on eventqueue

* fix logging things back to how it was

* add wiimote pos/angle functions for joysticks

* get switch rendering started-ish

* why was this here

* switch primitives work

* switch can render points

* switch texture work

* ( ͡° ͜ʖ ͡°)

* re-add sysfont loading

* commit some fixes

* fix compilation woops
  • Loading branch information
TurtleP authored Nov 14, 2024
1 parent e15b808 commit 75929f2
Show file tree
Hide file tree
Showing 289 changed files with 39,905 additions and 3,084 deletions.
18 changes: 6 additions & 12 deletions .github/workflows/Nintendo 3DS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,8 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Configure
run: /opt/devkitpro/portlibs/3ds/bin/arm-none-eabi-cmake -S . -B build

- name: Build
run: make -C build
run: catnip -T 3DS

- id: commit
uses: prompt/actions-commit-hash@v3
Expand All @@ -27,8 +24,8 @@ jobs:
with:
name: Nintendo 3DS-${{ steps.commit.outputs.short }}
path: |
build/*.elf
build/*.3dsx
build/**/*.elf
build/**/*.3dsx
N3DS-Debug:
runs-on: ubuntu-latest
Expand All @@ -41,11 +38,8 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Configure
run: /opt/devkitpro/portlibs/3ds/bin/arm-none-eabi-cmake -DCMAKE_BUILD_TYPE=Debug -S . -B build

- name: Build
run: make -C build
run: catnip -T 3DS debug

- id: commit
uses: prompt/actions-commit-hash@v3
Expand All @@ -54,5 +48,5 @@ jobs:
with:
name: Nintendo 3DS (Debug)-${{ steps.commit.outputs.short }}
path: |
build/*.elf
build/*.3dsx
build/**/*.elf
build/**/*.3dsx
18 changes: 6 additions & 12 deletions .github/workflows/Nintendo Switch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,8 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Configure
run: /opt/devkitpro/portlibs/switch/bin/aarch64-none-elf-cmake -S . -B build

- name: Build
run: make -C build
run: catnip -T Switch

- id: commit
uses: prompt/actions-commit-hash@v3
Expand All @@ -27,8 +24,8 @@ jobs:
with:
name: Nintendo Switch-${{ steps.commit.outputs.short }}
path: |
build/*.elf
build/*.nro
build/**/*.elf
build/**/*.nro
Switch-Debug:
runs-on: ubuntu-latest
Expand All @@ -41,11 +38,8 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Configure
run: /opt/devkitpro/portlibs/switch/bin/aarch64-none-elf-cmake -DCMAKE_BUILD_TYPE=Debug -S . -B build

- name: Build
run: make -C build
run: catnip -T Switch debug

- id: commit
uses: prompt/actions-commit-hash@v3
Expand All @@ -54,5 +48,5 @@ jobs:
with:
name: Nintendo Switch (Debug)-${{ steps.commit.outputs.short }}
path: |
build/*.elf
build/*.nro
build/**/*.elf
build/**/*.nro
18 changes: 6 additions & 12 deletions .github/workflows/Nintendo Wii U.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,8 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Configure
run: /opt/devkitpro/portlibs/wiiu/bin/powerpc-eabi-cmake -S . -B build

- name: Build
run: make -C build
run: catnip -T WiiU

- id: commit
uses: prompt/actions-commit-hash@v3
Expand All @@ -27,8 +24,8 @@ jobs:
with:
name: Nintendo Wii U-${{ steps.commit.outputs.short }}
path: |
build/*.elf
build/*.wuhb
build/**/*.elf
build/**/*.wuhb
WiiU-Debug:
runs-on: ubuntu-latest
Expand All @@ -41,11 +38,8 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Configure
run: /opt/devkitpro/portlibs/wiiu/bin/powerpc-eabi-cmake -DCMAKE_BUILD_TYPE=Debug -S . -B build

- name: Build
run: make -C build
run: catnip -T WiiU debug

- id: commit
uses: prompt/actions-commit-hash@v3
Expand All @@ -54,5 +48,5 @@ jobs:
with:
name: Nintendo Wii U (Debug)-${{ steps.commit.outputs.short }}
path: |
build/*.elf
build/*.wuhb
build/**/*.elf
build/**/*.wuhb
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@ target/
*.3dsx
*.nro
*.wuhb
*.py
__pycache__/
todo.md
Loading

0 comments on commit 75929f2

Please sign in to comment.