Skip to content

Commit c1980b8

Browse files
authored
Merge pull request #1216 from xelatihy/v4-wip
Version 4
2 parents 6971d0a + df91e02 commit c1980b8

File tree

306 files changed

+850814
-470492
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

306 files changed

+850814
-470492
lines changed

.clang-format

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,6 @@ BreakStringLiterals: false
1515

1616
PenaltyBreakAssignment: 20
1717
PenaltyBreakBeforeFirstCallParameter: 50
18+
19+
DerivePointerAlignment: false
20+
PointerAlignment: Left

.github/workflows/macos-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
run: |
1616
mkdir build
1717
cd build
18-
cmake .. -G"Unix Makefiles" -DYOCTO_OPENGL=ON -DYOCTO_EMBREE=OFF
18+
cmake .. -G"Unix Makefiles" -DYOCTO_OPENGL=ON -DYOCTO_EMBREE=OFF -DYOCTO_DENOISE=OFF
1919
- name: build
2020
run: |
2121
cd build

.github/workflows/ubuntu-build.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,17 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
- uses: actions/checkout@v2
10-
# - name: install ubuntu dependencies
11-
# run: |
12-
# sudo apt-get update --yes
13-
# sudo apt-get install --yes ninja-build
10+
- name: dependencies
11+
run: |
12+
sudo apt-get install xorg-dev
1413
- name: configure
1514
env:
1615
CC: gcc-8
1716
CXX: g++-8
1817
run: |
1918
mkdir build
2019
cd build
21-
cmake .. -G"Unix Makefiles" -DYOCTO_OPENGL=OFF -DYOCTO_EMBREE=OFF
20+
cmake .. -G"Unix Makefiles" -DYOCTO_OPENGL=ON -DYOCTO_EMBREE=OFF -DYOCTO_DENOISE=OFF
2221
- name: build
2322
run: |
2423
cd build

.github/workflows/windows-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
run: |
1616
mkdir build
1717
cd build
18-
cmake .. -G "Visual Studio 16 2019" -DYOCTO_OPENGL=ON -DYOCTO_EMBREE=OFF
18+
cmake .. -G "Visual Studio 16 2019" -DYOCTO_OPENGL=ON -DYOCTO_EMBREE=OFF -DYOCTO_DENOISE=OFF
1919
- name: build
2020
run: |
2121
cd build

.vscode/cmake-variants.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,24 @@
3737
}
3838
}
3939
},
40+
"useDenoise": {
41+
"default": "yes",
42+
"description": "Build with Denoise",
43+
"choices": {
44+
"yes": {
45+
"short": "Denoise",
46+
"settings": {
47+
"YOCTO_DENOISE": "yes"
48+
}
49+
},
50+
"no": {
51+
"short": "NoDenoise",
52+
"settings": {
53+
"YOCTO_DENOISE": "no"
54+
}
55+
}
56+
}
57+
},
4058
"useOpenGL": {
4159
"default": "yes",
4260
"description": "Build with OpenGL",

.vscode/settings.json

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"C_Cpp.default.configurationProvider": "vector-of-bool.cmake-tools",
33
"cmake.buildDirectory": "${workspaceFolder}/build/vscode/${variant:buildType}",
44
"cmake.parallelJobs": 8,
5+
"cmake.preferredGenerators": [ "Ninja" ],
56
"files.associations": {
67
"iosfwd": "cpp",
78
"__functional_03": "cpp",
@@ -154,5 +155,16 @@
154155
"-modernize-use-nodiscard",
155156
"-modernize-use-trailing-return-type"
156157
],
157-
"python.pythonPath": "/usr/local/bin/python3"
158+
"python.pythonPath": "/usr/local/bin/python3",
159+
"editor.formatOnSave": true,
160+
"python.formatting.provider": "yapf",
161+
"cSpell.words": [
162+
"bsdf",
163+
"bsdfs",
164+
"denoise",
165+
"denoising",
166+
"khronos",
167+
"lambertian",
168+
"microfacet"
169+
]
158170
}

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
cmake_minimum_required (VERSION 3.12)
22

3-
project (yocto_gl VERSION 2.0)
3+
project (yocto_gl VERSION 4.0)
44

55
option(YOCTO_OPENGL "Build OpenGL apps" ON)
66
option(YOCTO_DENOISE "Build denoise app based on Intel OIDN" OFF)

CMakeSettings.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,25 @@
44
"name": "x64-Debug",
55
"generator": "Ninja",
66
"configurationType": "Debug",
7-
"inheritEnvironments": [ "msvc_x64_x64" ],
7+
"inheritEnvironments": ["msvc_x64_x64"],
88
"buildRoot": "${projectDir}\\build\\vscmake\\x64-Debug",
99
"installRoot": "${projectDir}\\bin\\debug",
1010
"cmakeCommandArgs": "",
1111
"buildCommandArgs": "-v",
1212
"ctestCommandArgs": "",
13-
"variables": []
13+
"variables": [{ "name": "YOCTO_EMBREE", "value": "ON" }]
1414
},
1515
{
1616
"name": "x64-Release",
1717
"generator": "Ninja",
1818
"configurationType": "RelWithDebInfo",
19-
"inheritEnvironments": [ "msvc_x64_x64" ],
19+
"inheritEnvironments": ["msvc_x64_x64"],
2020
"buildRoot": "${projectDir}\\build\\vscmake\\x64-Release",
2121
"installRoot": "${projectDir}\\bin",
2222
"cmakeCommandArgs": "",
2323
"buildCommandArgs": "-v",
2424
"ctestCommandArgs": "",
25-
"variables": []
25+
"variables": [{ "name": "YOCTO_EMBREE", "value": "ON" }]
2626
}
2727
]
2828
}

apps/CMakeLists.txt

Lines changed: 2 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,4 @@
11
add_subdirectory(yimage)
2-
add_subdirectory(ytrace)
32
add_subdirectory(yshape)
4-
5-
add_subdirectory(yscenetrace)
6-
add_subdirectory(ysceneproc)
7-
add_subdirectory(yimageproc)
8-
add_subdirectory(yshapeproc)
9-
add_subdirectory(ymeshproc)
10-
add_subdirectory(yheightfieldproc)
11-
add_subdirectory(ycityproc)
12-
13-
if(YOCTO_OPENGL)
14-
add_subdirectory(ysceneview)
15-
add_subdirectory(ysceneviews)
16-
add_subdirectory(ysceneitrace)
17-
add_subdirectory(ysceneitraces)
18-
add_subdirectory(yimageview)
19-
add_subdirectory(yimageviews)
20-
add_subdirectory(yshapeview)
21-
add_subdirectory(ysculpting)
22-
endif(YOCTO_OPENGL)
23-
24-
if(YOCTO_DENOISE)
25-
add_subdirectory(yimagedenoise)
26-
endif(YOCTO_DENOISE)
27-
28-
add_subdirectory(ymeshtest)
3+
add_subdirectory(yscene)
4+
add_subdirectory(ymesh)

apps/ycityproc/CMakeLists.txt

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)