Skip to content

Move to diligent #108

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 199 commits into from
Feb 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
199 commits
Select commit Hold shift + click to select a range
59f7839
Add diligent
edunad Oct 9, 2023
1bb13bc
Progress on stencil conversion
edunad Oct 13, 2023
4f83050
Stipple support
edunad Oct 14, 2023
ac82ce7
Add texture support
edunad Oct 15, 2023
806e53a
Add font support
edunad Oct 16, 2023
dd47c1b
Add SVG & WEBP
edunad Oct 16, 2023
7067529
Add font
edunad Oct 16, 2023
c784b50
test
edunad Oct 17, 2023
76a271e
Fix atlas
edunad Oct 17, 2023
fdae8c9
- Fix camera
edunad Oct 18, 2023
9eaf430
Add models
edunad Oct 18, 2023
e3cb8f6
Add spline / text3D
edunad Oct 19, 2023
72d11c6
Improve model vert check
edunad Oct 19, 2023
1083e3e
Fix dynamic buffers
edunad Oct 19, 2023
938f1a1
Improve pipeline generation
edunad Oct 20, 2023
cebfd6c
WIP: Defs fix
edunad Oct 21, 2023
4768016
Add instancing and conversion
edunad Oct 21, 2023
6812483
WIP: Add light sample
edunad Oct 21, 2023
8598fb7
Add render target rendering
edunad Oct 21, 2023
5dadd24
- Improve pipeline
edunad Oct 21, 2023
80260c8
Render & Window seperation
edunad Oct 22, 2023
9da1708
Add dither post process
edunad Oct 23, 2023
d7f7210
Add bloom & noise
edunad Oct 23, 2023
eaf40c3
Better re-structure, for multiple windows?
edunad Oct 23, 2023
e9d2688
Move assimp to diligent (wip)
edunad Oct 24, 2023
ec41dd4
Fix mesh defs
edunad Oct 24, 2023
cfcbbc7
Add alpha blending
edunad Oct 28, 2023
f880124
Fix material convert
edunad Oct 28, 2023
d26d573
Fix normals on blend shapes
edunad Oct 28, 2023
f4c2398
Add material templates
edunad Oct 29, 2023
5e3b308
Re-enable examples on assimp
edunad Oct 29, 2023
a66783e
Fix materials
edunad Oct 29, 2023
2413a91
Cleanup
edunad Oct 29, 2023
d8ea469
Fix bone transforms
edunad Oct 29, 2023
a4ff71f
Fix warnings on PostProcess
edunad Oct 29, 2023
734df70
Material improvements
edunad Oct 30, 2023
56e3ede
Fix clangd
edunad Oct 30, 2023
375478d
Add assimp missing TEXTURE_ADDRESS_WRAP
edunad Oct 30, 2023
9bc2309
Merge branch 'features/diligent' into test/material-templates
edunad Oct 30, 2023
1a06027
Remove code
edunad Oct 30, 2023
70eeed7
Merge branch 'test/material-templates' of https://github.com/edunad/r…
edunad Oct 30, 2023
5f3f0b4
Merge pull request #110 from edunad/test/material-templates
edunad Oct 30, 2023
35792eb
Fix build
edunad Oct 30, 2023
f9ee408
Fix sample
edunad Oct 31, 2023
6337bb3
Add clustered rendering (wip)
edunad Nov 3, 2023
ae64837
Fix culling.csh
edunad Nov 10, 2023
1e933d6
Fix lit debugging
edunad Nov 11, 2023
cbb754a
- Fix debug_light
edunad Nov 12, 2023
f7d51cd
- Make light buffer dynamic
edunad Nov 14, 2023
c88ce1b
- Fix vulkan crashing on lit
edunad Dec 9, 2023
3acdff9
Fix mesh generateMesh vertices & indices count
edunad Dec 9, 2023
e3fe64a
Fix debug lights on vulkan
edunad Dec 10, 2023
9db9307
Remove diligent module
edunad Dec 10, 2023
088c19a
Move Diligent to CPM
edunad Dec 10, 2023
9f54d59
Fix build
edunad Dec 10, 2023
071bd1b
Fix build
edunad Dec 10, 2023
aa25bad
Fix build
edunad Dec 10, 2023
f42839a
- Remove GLM
edunad Dec 10, 2023
2534e62
Fix build
edunad Dec 10, 2023
d75ed8b
Disable scripting tests for now
edunad Dec 10, 2023
0931c51
Fix build
edunad Dec 10, 2023
07e3095
Revert window to use best render device automatically
edunad Dec 11, 2023
80b1172
Improve clustering
edunad Dec 14, 2023
bbb25e4
Folder renaming
edunad Dec 14, 2023
efbcb07
Rename folders
edunad Dec 14, 2023
55d59d7
Rename raw_content folder
edunad Dec 14, 2023
50fd7e2
- Merge renderers
edunad Dec 21, 2023
376961c
Fix text not being optimizable
edunad Dec 22, 2023
28dab97
Fix GLFW errors on shutdown
edunad Dec 22, 2023
49410a3
- Add renderer plugins
edunad Dec 22, 2023
c9ded4b
Remove DirectXMath test
edunad Dec 22, 2023
afbecba
Merge branch 'master' of https://github.com/edunad/rawrbox into featu…
edunad Dec 22, 2023
e289cdb
- Improve material binding
edunad Dec 22, 2023
85de3f1
Downgrade cpp-linter version
edunad Dec 23, 2023
eb19b0b
Downgrade cpp-linter-action
edunad Dec 23, 2023
33763b7
Update package versions
edunad Dec 23, 2023
c236c65
Fix light culling
edunad Dec 23, 2023
5970447
Improved light shader
edunad Dec 24, 2023
f6d5cb5
- Fix shader warnings
edunad Dec 24, 2023
e564bba
- Simplified materials
edunad Dec 26, 2023
6a9f93f
Enable dependabot
edunad Dec 27, 2023
db55ddf
Light improvements
edunad Dec 27, 2023
c75c4ed
Improve renderer device picking
edunad Dec 27, 2023
e8bdbcf
Improve post-processing
edunad Dec 27, 2023
db54bf5
Fix dependabot formatting
edunad Dec 27, 2023
bc3d52a
Fix dependabot
edunad Dec 27, 2023
980ba39
Re-organize samples
edunad Dec 27, 2023
153aad6
Fix BASS shutdown & sample
edunad Dec 28, 2023
c590ff2
Enable network package
edunad Dec 28, 2023
f634d6c
- Enable UI
edunad Dec 28, 2023
25c3b2b
- Add sRGB conversion
edunad Dec 30, 2023
2abe965
- Disable samplers for now
edunad Dec 30, 2023
a25af3e
Add physics 3D
edunad Jan 1, 2024
f20181f
- Enable WEBM
edunad Jan 2, 2024
477fa0c
Update package lock
edunad Jan 2, 2024
2ce7a63
- Fix tasks.json
edunad Jan 2, 2024
161d685
Update iwyu
edunad Jan 2, 2024
080adf3
Fix warnings
edunad Jan 2, 2024
a584c55
Add light source link
edunad Jan 3, 2024
cc6c597
Enable decals
edunad Jan 3, 2024
c794fba
- Add decals (WIP)
edunad Jan 3, 2024
28cab09
Fix float TEX_ARRAY_INDEX to uint
edunad Jan 4, 2024
d135c4a
- Add support for decal culling using clustered
edunad Jan 4, 2024
79baaff
- Add color toHEX
edunad Jan 5, 2024
f7b820e
- Add bindless texture support
edunad Jan 5, 2024
83b837a
Cleanup cmake
edunad Jan 5, 2024
f6c0179
- Add bindless textures to stencil
edunad Jan 5, 2024
5d97cdb
Single signature bind
edunad Jan 6, 2024
b9c96b8
- Add bindless decal support to unlit
edunad Jan 6, 2024
7ab968b
Code fixes
edunad Jan 6, 2024
895add2
Merge pull request #113 from edunad/features/bindless-textures
edunad Jan 6, 2024
f68b06c
- Add barriers
edunad Jan 9, 2024
11ad97d
- Add immediateBarrier
edunad Jan 11, 2024
5b7582e
- Add vertex sprites
edunad Jan 12, 2024
c41665c
Fix lit
edunad Jan 12, 2024
d043c18
- Add logger
edunad Jan 13, 2024
476fb97
- Add missing loggers
edunad Jan 14, 2024
2548f18
Post processing improvements
edunad Jan 14, 2024
3a8ab52
Fix build
edunad Jan 14, 2024
3ce8655
- Add initialization logs
edunad Jan 14, 2024
6895fd7
Fix build
edunad Jan 15, 2024
cd53aa7
Remove UseCombinedTextureSamplers, as openGL is not supported
edunad Jan 15, 2024
e3e8bb2
- Add compute bindless signature
edunad Jan 15, 2024
5793f6a
Fix render logs
edunad Jan 16, 2024
4de546e
- Fix directX12 signature being broken
edunad Jan 16, 2024
5397a5c
Replace light uniform buffer from DYNAMIC_BUFFER to USAGE_DEFAULT
edunad Jan 16, 2024
7b8498d
- Move decals to it's own class
edunad Jan 16, 2024
31211fe
Add glfw event timeout
edunad Jan 16, 2024
e574e00
Merge pull request #114 from edunad/features/bindless-fix
edunad Jan 16, 2024
61cee42
Re-enable UI
edunad Jan 17, 2024
f82c233
- Add global macro support
edunad Jan 17, 2024
c7863cc
- Move BASS to new logger
edunad Jan 17, 2024
ae4d529
- Reduce camera buffer data
edunad Jan 17, 2024
462e0bd
- Split bone constant buffer
edunad Jan 18, 2024
495af51
- Hack fix for DX12 on unumapped buffers
edunad Jan 18, 2024
20f041c
Split camera buffers (to static and dynamic)
edunad Jan 18, 2024
2252890
Enable WEBM
edunad Jan 18, 2024
8eed3d9
Update packages
edunad Jan 18, 2024
b5855f9
- Add LUAU support
edunad Jan 24, 2024
71dbbb8
- Add jsonToLua
edunad Jan 24, 2024
cd8d003
- Add lua hooks
edunad Jan 27, 2024
c70b3d2
- Add lua libraries (json, sha, etc)
edunad Jan 28, 2024
cc40c07
- Add RAWRBOX_SCRIPTING_UNSAFE
edunad Jan 28, 2024
6739f7f
- Create a lua state per mod
edunad Jan 29, 2024
b5ae6c3
- Add mod wrapper
edunad Jan 30, 2024
60edc41
- Add console wrapper
edunad Jan 31, 2024
a087d47
Add string.vformat to lua
edunad Jan 31, 2024
414ca85
- Add rawrbox math wrappers to lua
edunad Feb 2, 2024
5b0db98
- Add compileAndLoadFile and compileAndLoadScript
edunad Feb 2, 2024
94a4f70
Enable luau support for MT
edunad Feb 2, 2024
0e518ae
Fix assimp bbox
edunad Feb 2, 2024
2625fe7
Fix warnings
edunad Feb 2, 2024
7c6bf7e
Update ci/cd for scripting
edunad Feb 3, 2024
5042d9d
Update luau
edunad Feb 3, 2024
691a250
Fix color warning
edunad Feb 3, 2024
a268f7a
Update ci/cd packages
edunad Feb 3, 2024
d6e563e
Fix ccache key
edunad Feb 3, 2024
f14ee06
Merge pull request #115 from edunad/features/luau
edunad Feb 3, 2024
3eb8dbb
- Fix various warnings
edunad Feb 6, 2024
624112e
Fix labeler
edunad Feb 6, 2024
c179e31
Fix labeler
edunad Feb 6, 2024
6e00065
Merge branch 'features/diligent' into features/luau-plugins
edunad Feb 6, 2024
9677d59
Fix build
edunad Feb 6, 2024
6ca1f4a
Fix zlib
edunad Feb 8, 2024
711ab20
Add packetWrapper
edunad Feb 9, 2024
1d0e63a
- Vector2 improvements
edunad Feb 10, 2024
14a3959
- Add stencil wrapper
edunad Feb 11, 2024
b37ae45
- Add int, float, double to aabb wrapper
edunad Feb 12, 2024
597c651
- Add decal wrapper
edunad Feb 13, 2024
115203d
- Add TextureLoaderWrapper
edunad Feb 13, 2024
4ab109a
- Add basic model scripting
edunad Feb 13, 2024
462ac47
- Add std::derived_from checks on templates
edunad Feb 13, 2024
ff28d5c
Fix build
edunad Feb 14, 2024
8ccc637
Fix build
edunad Feb 14, 2024
6c3dbb6
- Fix build
edunad Feb 14, 2024
1d7ecac
- Update packages
edunad Feb 15, 2024
97d5d04
Use edunad/assimp until zlib is fixed :P
edunad Feb 15, 2024
52ce2a8
Merge pull request #116 from edunad/features/luau-plugins
edunad Feb 15, 2024
49d59db
Comment unused samples
edunad Feb 16, 2024
d44e449
- Add fog post process
edunad Feb 16, 2024
d422054
Fix warning
edunad Feb 16, 2024
d81f110
- Add toHalf and fromHalf
edunad Feb 19, 2024
5ab6c56
Replace nlohmann::json with glaze
edunad Feb 21, 2024
036f19b
Revert uint16_t textures to 32, shaders no like.
edunad Feb 21, 2024
d457ef9
Fix build
edunad Feb 21, 2024
15672ec
Fix build
edunad Feb 21, 2024
aafd9ad
Add missing resources file check
edunad Feb 21, 2024
e8a13be
Fix clang tidy
edunad Feb 22, 2024
7634b58
Update clang-tidy
edunad Feb 22, 2024
7997d12
Add requires to templates
edunad Feb 22, 2024
b0757c5
Fix clangd
edunad Feb 22, 2024
a3a85fe
Merge pull request #117 from edunad/features/glaze
edunad Feb 22, 2024
df5d869
Add dynamic buffer to instanced model
edunad Feb 22, 2024
6520bc6
- Add clear to decals
edunad Feb 22, 2024
2469f77
Re-enable readability-else-after-return
edunad Feb 22, 2024
da31941
Fix labeler
edunad Feb 22, 2024
92ada4d
Fix clang
edunad Feb 22, 2024
b92345d
Fix formating
edunad Feb 23, 2024
aeec770
Update glaze
edunad Feb 23, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
9 changes: 8 additions & 1 deletion .clang-tidy
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ Checks: clang-diagnostic-*
modernize-*
hicpp-*
misc-unused-*
misc-include-cleaner
readability-*
performance-*
-cppcoreguidelines-avoid-do-while
-cppcoreguidelines-pro-bounds-constant-array-index
-modernize-use-trailing-return-type
Expand All @@ -22,6 +23,12 @@ Checks: clang-diagnostic-*
-cppcoreguidelines-narrowing-conversions
-hicpp-explicit-conversions
-clang-analyzer-optin.cplusplus.UninitializedObject
-modernize-use-trailing-return-type
-readability-braces-around-statements
-readability-magic-numbers
-readability-identifier-length
-readability-function-cognitive-complexity
-readability-convert-member-functions-to-static
WarningsAsErrors: "*"
HeaderFilterRegex: ""
AnalyzeTemporaryDtors: false
2 changes: 2 additions & 0 deletions .clangd
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
CompileFlags:
Add: ['-std:c++latest']
23 changes: 21 additions & 2 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,34 @@ name: Bug report
about: Create a report to help us improve
title: "[BUG]"
labels: BUG
assignees: ''
assignees: ""
---

### RawrBox lib

- [] rawrbox.assimp
- [] rawrbox.bass
- [] rawrbox.engine
- [] rawrbox.math
- [] rawrbox.network
- [] rawrbox.physics_2d
- [] rawrbox.physics_3d
- [] rawrbox.render
- [] rawrbox.resources
- [] rawrbox.scripting
- [] rawrbox.ui
- [] rawrbox.utils
- [] rawrbox.webm

---

- [] UNKNOWN

### Description

Briefly describe the bug you encountered.

### Reproduction Steps
### Reproduction Steps (if any)

1. Step-by-step instructions to reproduce the bug.
2. Include any specific input, settings, or conditions needed.
10 changes: 10 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
- package-ecosystem: "gitsubmodule"
directory: "/"
schedule:
interval: "daily"
69 changes: 42 additions & 27 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,59 +1,74 @@
"📷 RENDERER":
- changed-files: "render/**/*"
- changed-files:
- any-glob-to-any-file: "rawrbox.render/**/*"

"🧮 MATH":
- changed-files: "math/**/*"
- changed-files:
- any-glob-to-any-file: "rawrbox.math/**/*"

"🖼️ UI":
- changed-files: "ui/**/*"
- changed-files:
- any-glob-to-any-file: "rawrbox.ui/**/*"

"⚒️ UTILS":
- changed-files: "utils/**/*"
- changed-files:
- any-glob-to-any-file: "rawrbox.utils/**/*"

"🐲 SAMPLES":
- changed-files: "samples/**/*"
- changed-files:
- any-glob-to-any-file: "samples/**/*"

"🧱 3D PHYSICS":
- changed-files: "physics_3d/**/*"
- changed-files:
- any-glob-to-any-file: "rawrbox.physics_3d/**/*"

"🏀 2D PHYSICS":
- changed-files: "physics_2d/**/*"
- changed-files:
- any-glob-to-any-file: "rawrbox.physics_2d/**/*"

"🎺 BASS":
- changed-files: "bass/**/*"
- changed-files:
- any-glob-to-any-file: "rawrbox.bass/**/*"

"💼 RESOURCES":
- changed-files: "resources/**/*"
- changed-files:
- any-glob-to-any-file: "rawrbox.resources/**/*"

"💽 ENGINE":
- changed-files: "engine/**/*"
- changed-files:
- any-glob-to-any-file: "rawrbox.engine/**/*"

"🧪 TESTS":
- changed-files: "**/tests/**/*.cpp"

"📜 SCRIPTING":
- changed-files:
[
"scripting/**/*",
"bass/**/scripting/*",
"network/**/scripting/*",
"render/**/scripting/*",
"resources/**/scripting/*",
"ui/**/scripting/*",
"**/*.lua",
]
- any-glob-to-any-file: "**/tests/**/*.cpp"

"🎞 WEBM":
- changed-files: "webm/**/*"
- changed-files:
- any-glob-to-any-file: "rawrbox.webm/**/*"

"🧙‍♂️ ASSIMP":
- changed-files: "assimp/**/*"
- changed-files:
- any-glob-to-any-file: "rawrbox.assimp/**/*"

"📜 SCRIPTING":
- changed-files:
- any-glob-to-any-file:
[
"rawrbox.scripting/**/*",
"rawrbox.bass/**/scripting/*",
"rawrbox.network/**/scripting/*",
"rawrbox.render/**/scripting/*",
"rawrbox.resources/**/scripting/*",
"rawrbox.ui/**/scripting/*",
"**/*.lua",
"**/*.luau",
]

"FEATURE":
- head-branch: "^features/"
- head-branch: ["^features/"]

"BUG":
- head-branch: "^bugfixes/"
- head-branch: ["^bugfixes/"]

"IMPROVEMENTS":
- head-branch: "^improvements/"
- head-branch: ["^improvements/"]
42 changes: 21 additions & 21 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,30 +20,28 @@ concurrency:

jobs:
build-linux:
runs-on: [self-hosted]
runs-on: self-hosted
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
uses: actions/checkout@v4.1.1

- name: Install dependencies
run: |
sudo apt update
sudo apt install -y build-essential wget cmake libssl-dev libvpx-dev gcc-11 libgl1-mesa-glx libgl1-mesa-dev libglew-dev ninja-build python3-pip libx11-dev libx11-xcb-dev libfontenc-dev libice-dev libsm-dev libxau-dev libxaw7-dev libxcomposite-dev libxcursor-dev libxdamage-dev libxdmcp-dev libxext-dev libxfixes-dev libxft-dev libxi-dev libxinerama-dev libxkbfile-dev libxmu-dev libxmuu-dev libxpm-dev libxrandr-dev libxrender-dev libxres-dev libxss-dev libxt-dev libxtst-dev libxv-dev libxvmc-dev libxxf86vm-dev xtrans-dev libxcb-render0-dev libxcb-render-util0-dev libxcb-xkb-dev libxcb-icccm4-dev libxcb-image0-dev libxcb-keysyms1-dev libxcb-randr0-dev libxcb-shape0-dev libxcb-sync-dev libxcb-xfixes0-dev libxcb-xinerama0-dev xkb-data libxcb-dri3-dev uuid-dev libxcb-util-dev

- name: Cache c++
uses: hendrikmuhs/ccache-action@v1.2.10
uses: hendrikmuhs/ccache-action@v1.2.12
with:
append-timestamp: false
restore-keys: host-${{ runner.os }}-${{ hashFiles('./CMakeLists.txt', './bass/CMakeLists.txt', './engine/CMakeLists.txt', './math/CMakeLists.txt', './render/CMakeLists.txt', './resources/CMakeLists.txt', './ui/CMakeLists.txt', './utils/CMakeLists.txt', './physics_3d/CMakeLists.txt', './physics_2d/CMakeLists.txt', './webm/CMakeLists.txt', './assimp/CMakeLists.txt', './scripting/CMakeLists.txt', './network/CMakeLists.txt') }}-
key: host-${{ runner.os }}-${{ hashFiles('./CMakeLists.txt', './bass/CMakeLists.txt', './engine/CMakeLists.txt', './math/CMakeLists.txt', './render/CMakeLists.txt', './resources/CMakeLists.txt', './ui/CMakeLists.txt', './utils/CMakeLists.txt', './physics_3d/CMakeLists.txt', './physics_2d/CMakeLists.txt', './webm/CMakeLists.txt', './assimp/CMakeLists.txt', './scripting/CMakeLists.txt', './network/CMakeLists.txt') }}
restore-keys: host-${{ runner.os }}-${{ hashFiles('./CMakeLists.txt', './rawrbox.assimp/CMakeLists.txt', './rawrbox.bass/CMakeLists.txt', './rawrbox.engine/CMakeLists.txt', './rawrbox.math/CMakeLists.txt', './rawrbox.network/CMakeLists.txt', './rawrbox.physics_2d/CMakeLists.txt', './rawrbox.physics_3d/CMakeLists.txt', './rawrbox.render/CMakeLists.txt', './rawrbox.resources/CMakeLists.txt', './rawrbox.scripting/CMakeLists.txt', './rawrbox.ui/CMakeLists.txt', './rawrbox.utils/CMakeLists.txt', './rawrbox.webm/CMakeLists.txt') }}-
key: host-${{ runner.os }}-${{ hashFiles('./CMakeLists.txt', './rawrbox.assimp/CMakeLists.txt', './rawrbox.bass/CMakeLists.txt', './rawrbox.engine/CMakeLists.txt', './rawrbox.math/CMakeLists.txt', './rawrbox.network/CMakeLists.txt', './rawrbox.physics_2d/CMakeLists.txt', './rawrbox.physics_3d/CMakeLists.txt', './rawrbox.render/CMakeLists.txt', './rawrbox.resources/CMakeLists.txt', './rawrbox.scripting/CMakeLists.txt', './rawrbox.ui/CMakeLists.txt', './rawrbox.utils/CMakeLists.txt', './rawrbox.webm/CMakeLists.txt') }}

- name: CMAKE Setup
id: setup
run: |
mkdir -p build && cd build
CXX=g++ cmake .. -G Ninja -DCMAKE_BUILD_TYPE:STRING=Release -DRAWRBOX_OUTPUT_BIN="bin" -DCMAKE_EXPORT_COMPILE_COMMANDS="ON" -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DRAWRBOX_DEV_MODE:BOOL="ON"
CXX=g++ cmake .. -G Ninja -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_RUNTIME_OUTPUT_DIRECTORY="bin" -DCMAKE_EXPORT_COMPILE_COMMANDS="ON" -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DRAWRBOX_DEV_MODE:BOOL="ON"
cd ../

- name: Build
Expand All @@ -53,32 +51,34 @@ jobs:
- name: Run tests
run: |
cd build
ctest --test-dir ./math --output-on-failure
ctest --test-dir ./utils --output-on-failure
ctest --test-dir ./render --output-on-failure
ctest --test-dir ./engine --output-on-failure
ctest --test-dir ./resources --output-on-failure
ctest --test-dir ./scripting --output-on-failure
ctest --test-dir ./rawrbox.math --output-on-failure
ctest --test-dir ./rawrbox.utils --output-on-failure
ctest --test-dir ./rawrbox.render --output-on-failure
ctest --test-dir ./rawrbox.engine --output-on-failure
ctest --test-dir ./rawrbox.resources --output-on-failure
ctest --test-dir ./rawrbox.scripting --output-on-failure

- name: Run linter
uses: cpp-linter/cpp-linter-action@v2.6.0
uses: cpp-linter/cpp-linter-action@v2.9.1
if: github.ref != 'refs/heads/master'
id: linter
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
style: file
files-changed-only: true
tidy-checks: ""
extra-args: "-std=c++20 -Wall"
version: "16"
database: "./build/"
extra-args: "-std=c++23 -Wall"
version: "17"
database: "${{github.workspace}}/build/"
step-summary: true
repo-root: "${{github.workspace}}"
thread-comments: true
ignore: build | _deps | .github | render/include/stb | engine/tests | math/tests | render/tests | resources/tests | utils/tests | scripting/tests
no-lgtm: false
ignore: build | _deps | .github | rawrbox.render/include/stb | rawrbox.engine/tests | rawrbox.math/tests | rawrbox.render/tests | rawrbox.resources/tests | rawrbox.utils/tests | rawrbox.scripting/tests

- name: Upload build artifacts
if: github.ref == 'refs/heads/master'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4.3.0
with:
name: output
path: bin
2 changes: 1 addition & 1 deletion .github/workflows/cache-cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
uses: actions/checkout@v4.1.1

- name: Cleanup
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Label PR
uses: actions/labeler@v5.0.0-alpha.1
uses: actions/labeler@v5.0.0
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
sync-labels: true
50 changes: 25 additions & 25 deletions .github/workflows/scripting_check.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
name: CI/CD - COMMENTS
on:
pull_request:
types: [labeled, unlabeled]
pull_request:
types: [labeled, unlabeled]

jobs:
comment:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- name: Find comment
uses: peter-evans/find-comment@v2
id: fc
with:
issue-number: ${{ github.event.pull_request.number }}
comment-author: 'github-actions[bot]'
body-includes: ## NOTICE - A LUA API change was detected ⚠
comment:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- name: Find comment
uses: peter-evans/find-comment@v3.0.0
id: fc
with:
issue-number: ${{ github.event.pull_request.number }}
comment-author: "github-actions[bot]"
body-includes: ## NOTICE - A LUA API change was detected ⚠

- name: Create / Update comment
uses: peter-evans/create-or-update-comment@v3
if: contains(github.event.pull_request.labels.*.name, '📜 SCRIPTING')
with:
comment-id: ${{ steps.fc.outputs.comment-id }}
issue-number: ${{ github.event.pull_request.number }}
body: |
## NOTICE - A LUA API change was detected ⚠
- Ensure [**wiki** / **rawrbox-lib**](https://github.com/edunad/rawrbox-wiki) is up to date.
edit-mode: replace
- name: Create / Update comment
uses: peter-evans/create-or-update-comment@v4.0.0
if: contains(github.event.pull_request.labels.*.name, '📜 SCRIPTING')
with:
comment-id: ${{ steps.fc.outputs.comment-id }}
issue-number: ${{ github.event.pull_request.number }}
body: |
## NOTICE - A LUA API change was detected ⚠
- Ensure [**wiki** / **rawrbox-lib**](https://github.com/edunad/rawrbox-wiki) is up to date.
edit-mode: replace
48 changes: 28 additions & 20 deletions .vscode/c_cpp_properties.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,30 @@
{
"configurations": [
{
"name": "Win32",
"includePath": [
"${workspaceFolder}/math/include/**/*",
"${workspaceFolder}/render/include/**/*",
"${workspaceFolder}/ui/include/**/*",
"${workspaceFolder}/utils/include/**/*",
"${workspaceFolder}/sample/cube/include/**/*"
],
"defines": ["_DEBUG", "UNICODE", "_UNICODE"],
"windowsSdkVersion": "10.0.18362.0",
"cStandard": "c17",
"cppStandard": "c++20",
"intelliSenseMode": "windows-msvc-x64",
"compileCommands": "${workspaceFolder}/build/compile_commands.json",
"configurationProvider": "ms-vscode.cmake-tools"
}
],
"version": 4
"configurations": [
{
"name": "Win32",
"includePath": [
"${workspaceFolder}/math/include/**/*",
"${workspaceFolder}/render/include/**/*",
"${workspaceFolder}/ui/include/**/*",
"${workspaceFolder}/utils/include/**/*",
"${workspaceFolder}/assimp/include/**/*",
"${workspaceFolder}/resources/include/**/*",
"${workspaceFolder}/scripting/include/**/*",
"${workspaceFolder}/webm/include/**/*",
"${workspaceFolder}/bass/include/**/*",
"${workspaceFolder}/engine/include/**/*",
"${workspaceFolder}/physics_2d/include/**/*",
"${workspaceFolder}/physics_3d/include/**/*",
"${workspaceFolder}/network/include/**/*"
],
"defines": ["_DEBUG", "UNICODE", "_UNICODE"],
"windowsSdkVersion": "10.0.18362.0",
"cStandard": "c17",
"cppStandard": "c++20",
"intelliSenseMode": "windows-msvc-x64",
"compileCommands": "${workspaceFolder}/build/compile_commands.json",
"configurationProvider": "ms-vscode.cmake-tools"
}
],
"version": 4
}
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"stencil",
"http",
"curtime",
"BGFX_FRAME",
"FRAME",
"resources",
"timer",
"Instance",
Expand Down
Loading