Skip to content

Commit 7db5b60

Browse files
gareth-morgan-autodeskGitHub Enterprise
authored andcommitted
Create main (#45)
Add Aurora source code to main branch.
1 parent 43195ff commit 7db5b60

346 files changed

Lines changed: 47668 additions & 484 deletions

File tree

Some content is hidden

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

.clang-format

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
# "Cpp11" includes C++14 in the version of clang-format (9) used in Visual Studio.
3+
BasedOnStyle: Microsoft
4+
Standard: Cpp11
5+
6+
# The following options override those from the Microsoft style.
7+
AccessModifierOffset: -4
8+
AlignAfterOpenBracket: DontAlign
9+
AlignConsecutiveAssignments: true
10+
AllowAllParametersOfDeclarationOnNextLine: true
11+
AlignOperands: false
12+
AllowShortFunctionsOnASingleLine : Inline
13+
AlwaysBreakBeforeMultilineStrings: true
14+
AlwaysBreakTemplateDeclarations: Yes
15+
BraceWrapping:
16+
AfterCaseLabel: true
17+
AfterUnion: true
18+
# Enable this when when clang-format version in Visual Studio supports it.
19+
# BeforeLambdaBody: true
20+
BreakConstructorInitializers: AfterColon
21+
ColumnLimit: 100
22+
CompactNamespaces: true
23+
ConstructorInitializerAllOnOneLineOrOnePerLine: true
24+
Cpp11BracedListStyle: false
25+
PointerBindsToType: true
26+
SpaceBeforeCpp11BracedList: true
27+
28+
# Do NOT disable SortIncludes like this. If you get a compile error after sorting includes, then
29+
# use blank lines to separate the includes into blocks and include a comment to explain it. This
30+
# should happen rarely.
31+
# SortIncludes: false
32+
...

.clang-tidy

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
Checks: >
3+
clang-analyzer-*,
4+
clang-diagnostic-*,
5+
modernize-avoid-c-arrays,
6+
modernize-loop-convert,
7+
modernize-make-shared,
8+
modernize-make-unique,
9+
modernize-use-auto,
10+
modernize-use-default-member-init
11+
...

.gitattributes

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
###############################################################################
2+
# Set default behavior to automatically normalize line endings.
3+
###############################################################################
4+
* text=auto
5+
6+
###############################################################################
7+
# Track large files with Git LFS.
8+
###############################################################################
9+
*.[Bb][Ii][Nn] filter=lfs diff=lfs merge=lfs -text
10+
*.[Dd][Oo][Cc][Xx] filter=lfs diff=lfs merge=lfs -text
11+
*.[Ee][Xx][Ee] filter=lfs diff=lfs merge=lfs -text
12+
*.[Ee][Xx][Rr] filter=lfs diff=lfs merge=lfs -text
13+
*.[Gg][Ll][Bb] filter=lfs diff=lfs merge=lfs -text
14+
*.[Gg][Ll][Tt][Ff] filter=lfs diff=lfs merge=lfs -text
15+
*.[Hh][Dd][Rr] filter=lfs diff=lfs merge=lfs -text
16+
*.[Ii][Cc][Oo] filter=lfs diff=lfs merge=lfs -text
17+
*.[Jj][Pp][Ee][Gg] filter=lfs diff=lfs merge=lfs -text
18+
*.[Jj][Pp][Gg] filter=lfs diff=lfs merge=lfs -text
19+
*.[Kk][Tt][Xx] filter=lfs diff=lfs merge=lfs -text
20+
*.[Pp][Nn][Gg] filter=lfs diff=lfs merge=lfs -text
21+
*.[Pp][Pp][Tt][Xx] filter=lfs diff=lfs merge=lfs -text
22+
*.[Rr][Cc] filter=lfs diff=lfs merge=lfs -text
23+
*.[Uu][Ss][Dd] filter=lfs diff=lfs merge=lfs -text

.github/cla.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: "CLA Assistant"
2+
on:
3+
issue_comment:
4+
types: [created]
5+
pull_request_target:
6+
types: [opened,closed,synchronize]
7+
8+
jobs:
9+
CLA-Assistant:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: "CLA Assistant"
13+
if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target'
14+
# Beta Release
15+
uses: contributor-assistant/github-action@v2.1.3-beta
16+
env:
17+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18+
# the below token should have repo scope and must be manually added by you in the repository's secret
19+
PERSONAL_ACCESS_TOKEN : ${{ secrets.CLA_BOT_SECRET }}
20+
with:
21+
remote-repository-name: 'CLA-Signatures'
22+
remote-organization-name: 'Autodesk'
23+
path-to-signatures: 'signatures/Autodesk/Individual/Aurora.json'
24+
path-to-document: 'https://github.com/Autodesk/CLA-Assistant-Test-Signatures/blob/master/CLA.md' # e.g. a CLA or a DCO document
25+
# branch should not be protected
26+
branch: 'main'
27+
allowlist: user1,bot*
28+
29+
#below are the optional inputs - If the optional inputs are not given, then default values will be taken
30+
#remote-organization-name: enter the remote organization name where the signatures should be stored (Default is storing the signatures in the same repository)
31+
#remote-repository-name: enter the remote repository name where the signatures should be stored (Default is storing the signatures in the same repository)
32+
#create-file-commit-message: 'For example: Creating file for storing CLA Signatures'
33+
#signed-commit-message: 'For example: $contributorName has signed the CLA in #$pullRequestNo'
34+
custom-notsigned-prcomment: |
35+
Thank you for your submission, we really appreciate it. We ask that you sign our Contributor License Agreement before we can accept your contribution.
36+
37+
If you are contributing on behalf of your employer you must fill out our **Corporate Contributor License Agreement** which can be found [here](https://github.com/Autodesk/autodesk.github.io/releases/download/1.0/ADSK.Form.Corp.Contrib.Agmt.for.Open.Source.docx).
38+
If you are contributing on behalf of yourself you must agree to our **Individual Contributor License Agreement** by reviewing [this document](https://github.com/Autodesk/autodesk.github.io/releases/download/1.0/ADSK.Form.Ind.Contrib.Agmt.for.Open.Source.docx) and signing it or by replying below a with a comment containing the following text:
39+
#custom-pr-sign-comment: 'The signature to be committed in order to sign the CLA'
40+
#custom-allsigned-prcomment: 'pull request comment when all contributors has signed, defaults to **CLA Assistant Lite bot** All Contributors have signed the CLA.'
41+
#lock-pullrequest-aftermerge: false - if you don't want this bot to automatically lock the pull request after merging (default - true)
42+
#use-dco-flag: true - If you are using DCO instead of CLA

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Ignore build directories.
2+
Build/
3+
_build/
4+
5+
# Ignore IDE cache folders
6+
.vs/
7+
.vscode/
8+
.idea/

.gitmodules

Whitespace-only changes.

Applications/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
add_subdirectory(Plasma)
2+

Applications/Plasma/CMakeLists.txt

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
project(Plasma)
2+
3+
if(WIN32)
4+
option(ENABLE_INTERACTIVE_PLASMA "Build Plasma as an interactive viewer." ON)
5+
else()
6+
set(ENABLE_INTERACTIVE_PLASMA OFF)
7+
endif()
8+
9+
# Find packages used by Plasma application.
10+
find_package(glm REQUIRED) # Find the GLM vector maths package.
11+
find_package(cxxopts REQUIRED)
12+
find_package(stb REQUIRED)
13+
find_package(TinyGLTF REQUIRED)
14+
find_package(tinyobjloader REQUIRED)
15+
16+
# Add test executable with all source files.
17+
add_executable(${PROJECT_NAME}
18+
"Camera.cpp"
19+
"Camera.h"
20+
"Plasma.cpp"
21+
"Plasma.h"
22+
"glTFLoader.cpp"
23+
"Libraries.cpp"
24+
"Loaders.h"
25+
"OBJLoader.cpp"
26+
"pch.h"
27+
"PerformanceMonitor.h"
28+
"resource.h"
29+
"SceneContents.cpp"
30+
"SceneContents.h"
31+
)
32+
33+
# Set custom ouput properties.
34+
set_target_properties(${PROJECT_NAME} PROPERTIES
35+
FOLDER "Applications"
36+
RUNTIME_OUTPUT_DIRECTORY "${RUNTIME_OUTPUT_DIR}"
37+
LIBRARY_OUTPUT_DIRECTORY "${LIBRARY_OUTPUT_DIR}"
38+
ARCHIVE_OUTPUT_DIRECTORY "${LIBRARY_OUTPUT_DIR}"
39+
PDB_OUTPUT_DIRECTORY "${RUNTIME_OUTPUT_DIR}"
40+
)
41+
42+
if(WIN32 AND ENABLE_INTERACTIVE_PLASMA)
43+
set(WINSDK_LIB Pathcch.lib Shlwapi.lib)
44+
else()
45+
set(WINSDK_LIB "")
46+
endif()
47+
48+
# Add dependencies.
49+
target_link_libraries(${PROJECT_NAME}
50+
PRIVATE
51+
glm::glm
52+
cxxopts::cxxopts
53+
stb::stb
54+
tinyobjloader::tinyobjloader
55+
Foundation
56+
Aurora
57+
${WINSDK_LIB}
58+
${CMAKE_DL_LIBS}
59+
)
60+
61+
target_include_directories(${PROJECT_NAME}
62+
PRIVATE
63+
"${TinyGLTF_INCLUDE_DIR}"
64+
)
65+
66+
if(WIN32 AND ENABLE_INTERACTIVE_PLASMA)
67+
# set windows-specific properties including WIN32 executable (gui app)
68+
set_target_properties(${PROJECT_NAME} PROPERTIES WIN32_EXECUTABLE TRUE)
69+
endif()
70+
71+
# Add default compile definitions (set in root CMakefile)
72+
if(ENABLE_INTERACTIVE_PLASMA)
73+
set(PLASMA_DEFINITIONS INTERACTIVE_PLASMA)
74+
else()
75+
set(PLASMA_DEFINITIONS "")
76+
endif()
77+
target_compile_definitions(${PROJECT_NAME}
78+
PRIVATE
79+
${DEFAULT_COMPILE_DEFINITIONS}
80+
${PLASMA_DEFINITIONS}
81+
)

0 commit comments

Comments
 (0)