forked from Autodesk/Aurora
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
346 changed files
with
47,668 additions
and
484 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
--- | ||
# "Cpp11" includes C++14 in the version of clang-format (9) used in Visual Studio. | ||
BasedOnStyle: Microsoft | ||
Standard: Cpp11 | ||
|
||
# The following options override those from the Microsoft style. | ||
AccessModifierOffset: -4 | ||
AlignAfterOpenBracket: DontAlign | ||
AlignConsecutiveAssignments: true | ||
AllowAllParametersOfDeclarationOnNextLine: true | ||
AlignOperands: false | ||
AllowShortFunctionsOnASingleLine : Inline | ||
AlwaysBreakBeforeMultilineStrings: true | ||
AlwaysBreakTemplateDeclarations: Yes | ||
BraceWrapping: | ||
AfterCaseLabel: true | ||
AfterUnion: true | ||
# Enable this when when clang-format version in Visual Studio supports it. | ||
# BeforeLambdaBody: true | ||
BreakConstructorInitializers: AfterColon | ||
ColumnLimit: 100 | ||
CompactNamespaces: true | ||
ConstructorInitializerAllOnOneLineOrOnePerLine: true | ||
Cpp11BracedListStyle: false | ||
PointerBindsToType: true | ||
SpaceBeforeCpp11BracedList: true | ||
|
||
# Do NOT disable SortIncludes like this. If you get a compile error after sorting includes, then | ||
# use blank lines to separate the includes into blocks and include a comment to explain it. This | ||
# should happen rarely. | ||
# SortIncludes: false | ||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
Checks: > | ||
clang-analyzer-*, | ||
clang-diagnostic-*, | ||
modernize-avoid-c-arrays, | ||
modernize-loop-convert, | ||
modernize-make-shared, | ||
modernize-make-unique, | ||
modernize-use-auto, | ||
modernize-use-default-member-init | ||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
############################################################################### | ||
# Set default behavior to automatically normalize line endings. | ||
############################################################################### | ||
* text=auto | ||
|
||
############################################################################### | ||
# Track large files with Git LFS. | ||
############################################################################### | ||
*.[Bb][Ii][Nn] filter=lfs diff=lfs merge=lfs -text | ||
*.[Dd][Oo][Cc][Xx] filter=lfs diff=lfs merge=lfs -text | ||
*.[Ee][Xx][Ee] filter=lfs diff=lfs merge=lfs -text | ||
*.[Ee][Xx][Rr] filter=lfs diff=lfs merge=lfs -text | ||
*.[Gg][Ll][Bb] filter=lfs diff=lfs merge=lfs -text | ||
*.[Gg][Ll][Tt][Ff] filter=lfs diff=lfs merge=lfs -text | ||
*.[Hh][Dd][Rr] filter=lfs diff=lfs merge=lfs -text | ||
*.[Ii][Cc][Oo] filter=lfs diff=lfs merge=lfs -text | ||
*.[Jj][Pp][Ee][Gg] filter=lfs diff=lfs merge=lfs -text | ||
*.[Jj][Pp][Gg] filter=lfs diff=lfs merge=lfs -text | ||
*.[Kk][Tt][Xx] filter=lfs diff=lfs merge=lfs -text | ||
*.[Pp][Nn][Gg] filter=lfs diff=lfs merge=lfs -text | ||
*.[Pp][Pp][Tt][Xx] filter=lfs diff=lfs merge=lfs -text | ||
*.[Rr][Cc] filter=lfs diff=lfs merge=lfs -text | ||
*.[Uu][Ss][Dd] filter=lfs diff=lfs merge=lfs -text |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: "CLA Assistant" | ||
on: | ||
issue_comment: | ||
types: [created] | ||
pull_request_target: | ||
types: [opened,closed,synchronize] | ||
|
||
jobs: | ||
CLA-Assistant: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: "CLA Assistant" | ||
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' | ||
# Beta Release | ||
uses: contributor-assistant/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# the below token should have repo scope and must be manually added by you in the repository's secret | ||
PERSONAL_ACCESS_TOKEN : ${{ secrets.CLA_BOT_SECRET }} | ||
with: | ||
remote-repository-name: 'CLA-Signatures' | ||
remote-organization-name: 'Autodesk' | ||
path-to-signatures: 'signatures/Autodesk/Individual/Aurora.json' | ||
path-to-document: 'https://github.com/Autodesk/CLA-Assistant-Test-Signatures/blob/master/CLA.md' # e.g. a CLA or a DCO document | ||
# branch should not be protected | ||
branch: 'main' | ||
allowlist: user1,bot* | ||
|
||
#below are the optional inputs - If the optional inputs are not given, then default values will be taken | ||
#remote-organization-name: enter the remote organization name where the signatures should be stored (Default is storing the signatures in the same repository) | ||
#remote-repository-name: enter the remote repository name where the signatures should be stored (Default is storing the signatures in the same repository) | ||
#create-file-commit-message: 'For example: Creating file for storing CLA Signatures' | ||
#signed-commit-message: 'For example: $contributorName has signed the CLA in #$pullRequestNo' | ||
custom-notsigned-prcomment: | | ||
Thank you for your submission, we really appreciate it. We ask that you sign our Contributor License Agreement before we can accept your contribution. | ||
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). | ||
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: | ||
#custom-pr-sign-comment: 'The signature to be committed in order to sign the CLA' | ||
#custom-allsigned-prcomment: 'pull request comment when all contributors has signed, defaults to **CLA Assistant Lite bot** All Contributors have signed the CLA.' | ||
#lock-pullrequest-aftermerge: false - if you don't want this bot to automatically lock the pull request after merging (default - true) | ||
#use-dco-flag: true - If you are using DCO instead of CLA |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Ignore build directories. | ||
Build/ | ||
_build/ | ||
|
||
# Ignore IDE cache folders | ||
.vs/ | ||
.vscode/ | ||
.idea/ |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
add_subdirectory(Plasma) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
project(Plasma) | ||
|
||
if(WIN32) | ||
option(ENABLE_INTERACTIVE_PLASMA "Build Plasma as an interactive viewer." ON) | ||
else() | ||
set(ENABLE_INTERACTIVE_PLASMA OFF) | ||
endif() | ||
|
||
# Find packages used by Plasma application. | ||
find_package(glm REQUIRED) # Find the GLM vector maths package. | ||
find_package(cxxopts REQUIRED) | ||
find_package(stb REQUIRED) | ||
find_package(TinyGLTF REQUIRED) | ||
find_package(tinyobjloader REQUIRED) | ||
|
||
# Add test executable with all source files. | ||
add_executable(${PROJECT_NAME} | ||
"Camera.cpp" | ||
"Camera.h" | ||
"Plasma.cpp" | ||
"Plasma.h" | ||
"glTFLoader.cpp" | ||
"Libraries.cpp" | ||
"Loaders.h" | ||
"OBJLoader.cpp" | ||
"pch.h" | ||
"PerformanceMonitor.h" | ||
"resource.h" | ||
"SceneContents.cpp" | ||
"SceneContents.h" | ||
) | ||
|
||
# Set custom ouput properties. | ||
set_target_properties(${PROJECT_NAME} PROPERTIES | ||
FOLDER "Applications" | ||
RUNTIME_OUTPUT_DIRECTORY "${RUNTIME_OUTPUT_DIR}" | ||
LIBRARY_OUTPUT_DIRECTORY "${LIBRARY_OUTPUT_DIR}" | ||
ARCHIVE_OUTPUT_DIRECTORY "${LIBRARY_OUTPUT_DIR}" | ||
PDB_OUTPUT_DIRECTORY "${RUNTIME_OUTPUT_DIR}" | ||
) | ||
|
||
if(WIN32 AND ENABLE_INTERACTIVE_PLASMA) | ||
set(WINSDK_LIB Pathcch.lib Shlwapi.lib) | ||
else() | ||
set(WINSDK_LIB "") | ||
endif() | ||
|
||
# Add dependencies. | ||
target_link_libraries(${PROJECT_NAME} | ||
PRIVATE | ||
glm::glm | ||
cxxopts::cxxopts | ||
stb::stb | ||
tinyobjloader::tinyobjloader | ||
Foundation | ||
Aurora | ||
${WINSDK_LIB} | ||
${CMAKE_DL_LIBS} | ||
) | ||
|
||
target_include_directories(${PROJECT_NAME} | ||
PRIVATE | ||
"${TinyGLTF_INCLUDE_DIR}" | ||
) | ||
|
||
if(WIN32 AND ENABLE_INTERACTIVE_PLASMA) | ||
# set windows-specific properties including WIN32 executable (gui app) | ||
set_target_properties(${PROJECT_NAME} PROPERTIES WIN32_EXECUTABLE TRUE) | ||
endif() | ||
|
||
# Add default compile definitions (set in root CMakefile) | ||
if(ENABLE_INTERACTIVE_PLASMA) | ||
set(PLASMA_DEFINITIONS INTERACTIVE_PLASMA) | ||
else() | ||
set(PLASMA_DEFINITIONS "") | ||
endif() | ||
target_compile_definitions(${PROJECT_NAME} | ||
PRIVATE | ||
${DEFAULT_COMPILE_DEFINITIONS} | ||
${PLASMA_DEFINITIONS} | ||
) |
Oops, something went wrong.