Skip to content

Commit

Permalink
initial import from dagor4 repo on 2023/09/15, rev bd13cb3e43d51b1e16…
Browse files Browse the repository at this point in the history
…daa6d06d4011139f91fbe0
  • Loading branch information
NicSavichev committed Sep 16, 2023
1 parent 1f8a1e0 commit 98b313a
Show file tree
Hide file tree
Showing 22,461 changed files with 8,014,918 additions and 0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
60 changes: 60 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
---
BasedOnStyle: Microsoft
AlignAfterOpenBracket: DontAlign
AlignConsecutiveMacros:
Enabled: true
AcrossEmptyLines: false
AcrossComments: true
AlignCompound: false
PadOperators: false
AlignEscapedNewlines: Left
AllowShortEnumsOnASingleLine: true
AllowShortBlocksOnASingleLine: true
AllowShortCaseLabelsOnASingleLine: true
AllowShortFunctionsOnASingleLine: All
AlwaysBreakTemplateDeclarations: Yes
BraceWrapping:
AfterCaseLabel: true
AfterUnion: true
BeforeLambdaBody: false
SplitEmptyFunction: false
SplitEmptyRecord: false
SplitEmptyNamespace: false
BreakConstructorInitializers: AfterColon
ColumnLimit: 135
CommentPragmas: '^-V\d+'
ConstructorInitializerIndentWidth: 2
ContinuationIndentWidth: 2
ForEachMacros:
- FOR_EACH_RG_LAYER_DO
- FOR_EACH_PRIMARY_RG_LAYER_DO
- FOR_EACH_RG_LAYER_RENDER
- ITERATE_OVER_SUBFX
StatementMacros: ['DAG_DECLARE_NEW', 'decl_ptr', 'decl_dclass_hdr', 'decl_class_name', 'decl_issubof']
IfMacros: ['IF_CONSTEXPR']
IndentCaseLabels: true
IndentWidth: 2
MacroBlockBegin: "^(\
BEGIN_BITFIELD_TYPE|\
decl_dclass|\
decl_dclass_and_id|\
(DX12|VULKAN)_BEGIN_CONTEXT_COMMAND(_EXT_[0-9])?|\
ITERATE_OVER_OBJECT_POOL(_(LOCK|BEG))?|\
BINDUMP_BEGIN_LAYOUT|\
BINDUMP_BEGIN_EXTEND_LAYOUT\
)$"
MacroBlockEnd: "^(\
END_BITFIELD_TYPE|\
end_dclass_decl|\
(DX12|VULKAN)_END_CONTEXT_COMMAND|\
ITERATE_OVER_OBJECT_POOL_(UNLOCK|END|RESTORE|DESTROY)|\
BINDUMP_END_LAYOUT|\
BINDUMP_END_LAYOUT\
)$"
MaxEmptyLinesToKeep: 2
PackConstructorInitializers: NextLine
PenaltyBreakOpenParenthesis: 1
PenaltyBreakComment: 1
SortIncludes: Never
TabWidth: 2
...
19 changes: 19 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
* text=auto
*.cpp text
*.h text
*.cc text
*.c text
*.hpp text
*.inl text
*.inc text
*.jam text
*jamfile text
*.py text
*.nut text
*.as text
*.tis text
*.png binary
*.jpg binary
*.sh text text
*.plist text eol=lf
*compile_shaders*.sh text eol=lf
13 changes: 13 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/tools/
/samples/physTest
/samples/*/develop
/samples/*/game*
/samples/*/tools
/samples/*/application.blk
/outerSpace/develop
/outerSpace/game*
/outerSpace/tools
/outerSpace/application.blk
/_output/
*.pyc
*.das.inl
1 change: 1 addition & 0 deletions DagorEngine.rev.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bd13cb3e43d51b1e16daa6d06d4011139f91fbe0
138 changes: 138 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
Dagor Engine

BSD 3-Clause License

Copyright (c) 2023, Gaijin Entertainment
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
Expand All @@ -26,3 +29,138 @@ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.



=======================================================================================
First-Party Software Distributed with Dagor Engine: Licensing and Copyright Information
=======================================================================================

The Dagor Engine software includes other code developed by Gaijin Entertainment aside
from the main software. Each of these first-party components has its own LICENSE.txt or
a similar document specifying its licensing terms that may significantly differ from
this license. These files are located in the respective directories of each
first-party component as follows:

prog/1stPartyLibs/dag/LICENSE
prog/1stPartyLibs/daScript/das-fmt/LICENSE
prog/1stPartyLibs/daScript/dastest/LICENSE
prog/1stPartyLibs/daScript/LICENSE
prog/1stPartyLibs/daScript/modules/dasImgui/LICENSE
prog/1stPartyLibs/daScript/modules/dasQuirrel/LICENSE
prog/1stPartyLibs/daScript/modules/dasStdDlg/LICENSE
prog/1stPartyLibs/daScript/modules/dasStdDlg/stub/LICENSE
prog/1stPartyLibs/quirrel/quirrel/COPYRIGHT

=======================================================================================
Third-Party Software Distributed with Dagor Engine: Licensing and Copyright Information
=======================================================================================

The Dagor Engine software incorporates code developed by third-party contributors. Each
of these third-party components comes with its own LICENSE.txt or a similar document
specifying its copyright attribution and licensing terms that may significantly differ
from this license.

Please note that Gaijin Entertainment assumes no responsibility, liability, or
obligations whatsoever for the third-party components and their use by you. You should
adhere to and further comply with the licensing terms outlined by these third-party
components. You agree to indemnify, defend, and hold harmless Gaijin Entertainment from
and against any and all claims, damages, obligations, losses, liabilities, costs, debts,
and expenses (including but not limited to attorney's fees) arising from your failure
to comply with them.

We recommend consulting the respective LICENSE.txt or equivalent files for your
guidance. You can find them in the respective directories of each
third-party component as follows:

prog/3rdPartyLibs/arc/brotli/LICENSE
prog/3rdPartyLibs/arc/fastlz/LICENSE
prog/3rdPartyLibs/arc/libzip/LICENSE
prog/3rdPartyLibs/arc/lz4/LICENSE
prog/3rdPartyLibs/arc/lzma-9.20/LICENSE
prog/3rdPartyLibs/arc/unzip/LICENSE.txt
prog/3rdPartyLibs/arc/zlib-ng/LICENSE.md
prog/3rdPartyLibs/arc/zstd-1.4.5/LICENSE
prog/3rdPartyLibs/assimp/contrib/poly2tri/LICENSE
prog/3rdPartyLibs/assimp/LICENSE
prog/3rdPartyLibs/binPack2D/LICENSE
prog/3rdPartyLibs/breakpad/LICENSE
prog/3rdPartyLibs/cachesim/LICENSE
prog/3rdPartyLibs/cef3/v4896/libcef_dll/LICENSE
prog/3rdPartyLibs/cef3/v4951/libcef_dll/LICENSE
prog/3rdPartyLibs/codecs/dav1d/LICENSE
prog/3rdPartyLibs/codecs/libogg-1.1.3/copying
prog/3rdPartyLibs/codecs/libtheora-1.0/copying
prog/3rdPartyLibs/codecs/libtheora-1.0/license
prog/3rdPartyLibs/codecs/speexdsp-1.2.0/LICENSE
prog/3rdPartyLibs/convert/fastDXT/LICENSE
prog/3rdPartyLibs/convert/nvtt-2.0.7/LICENSE
prog/3rdPartyLibs/cpu_features/LICENSE
prog/3rdPartyLibs/detex/LICENSE
prog/3rdPartyLibs/Detour/LICENSE
prog/3rdPartyLibs/doctest/LICENSE.txt
prog/3rdPartyLibs/eastl/LICENSE
prog/3rdPartyLibs/enet/LICENSE
prog/3rdPartyLibs/fast_float/LICENSE
prog/3rdPartyLibs/fileWatcher/License.txt
prog/3rdPartyLibs/flatbuffers/LICENSE.txt
prog/3rdPartyLibs/freetype/freetype-2.8/LICENSE.TXT
prog/3rdPartyLibs/freetype/harfbuzz-2.6.4/COPYING
prog/3rdPartyLibs/fsr2/dx12/license.txt
prog/3rdPartyLibs/fsr2/LICENSE.txt
prog/3rdPartyLibs/hash/BLAKE3/LICENSE
prog/3rdPartyLibs/hash/LICENSE
prog/3rdPartyLibs/image/avif/LICENSE
prog/3rdPartyLibs/image/imageresampler/LICENSE
prog/3rdPartyLibs/image/jpeg-6b/LICENSE
prog/3rdPartyLibs/image/libpng-1.4.22/license.txt
prog/3rdPartyLibs/image/psdRead/LICENSE
prog/3rdPartyLibs/image/tiff-4.4.0/LICENSE.md
prog/3rdPartyLibs/imgui-node-editor/LICENSE
prog/3rdPartyLibs/imgui/LICENSE_imgui.txt
prog/3rdPartyLibs/imgui/LICENSE_implot.txt
prog/3rdPartyLibs/ImGuizmo/LICENSE
prog/3rdPartyLibs/jsoncpp/LICENSE
prog/3rdPartyLibs/jsonsl/LICENSE
prog/3rdPartyLibs/libb64/LICENSE
prog/3rdPartyLibs/libcurl/COPYING
prog/3rdPartyLibs/libev/LICENSE
prog/3rdPartyLibs/libunwind/LICENSE.TXT
prog/3rdPartyLibs/lottie/COPYING
prog/3rdPartyLibs/math/carve/LICENSE
prog/3rdPartyLibs/math/clipper-4.x/license.txt
prog/3rdPartyLibs/math/misc/LICENSE
prog/3rdPartyLibs/math/poly2tri/LICENSE
prog/3rdPartyLibs/math/vhacd/LICENSE
prog/3rdPartyLibs/meshoptimizer/LICENSE.md
prog/3rdPartyLibs/metal/glslang/LICENSE
prog/3rdPartyLibs/metal/SPIRV-Headers/LICENSE
prog/3rdPartyLibs/metal/spirv-tools/LICENSE
prog/3rdPartyLibs/metal/spirv-tools/utils/vscode/src/lsp/LICENSE
prog/3rdPartyLibs/metal/spirv2Metal/LICENSE
prog/3rdPartyLibs/mimalloc/LICENSE
prog/3rdPartyLibs/miniupnpc/LICENSE
prog/3rdPartyLibs/mit-hrtf-lib/LICENSE
prog/3rdPartyLibs/mongoose/LICENSE
prog/3rdPartyLibs/nanosvg/LICENSE.txt
prog/3rdPartyLibs/openssl-3.x/LICENSE.txt
prog/3rdPartyLibs/pcre/LICENSE
prog/3rdPartyLibs/phys/bullet-3/Extras/ConvexDecomposition/LICENSE.txt
prog/3rdPartyLibs/phys/bullet-3/Extras/InverseDynamics/LICENSE.txt
prog/3rdPartyLibs/phys/bullet-3/LICENSE.txt
prog/3rdPartyLibs/phys/bullet-3/test/gtest-1.7.0/LICENSE
prog/3rdPartyLibs/phys/joltPhysics/LICENSE
prog/3rdPartyLibs/rapidjson/license.txt
prog/3rdPartyLibs/reachability/LICENSE.txt
prog/3rdPartyLibs/Recast/LICENSE
prog/3rdPartyLibs/ssr/LICENSE
prog/3rdPartyLibs/udis86/LICENSE
prog/3rdPartyLibs/unittest-cpp/LICENSE
prog/3rdPartyLibs/uriparser/COPYING
prog/3rdPartyLibs/vulkan/glslang/LICENSE
prog/3rdPartyLibs/vulkan/hlslcc/license.txt
prog/3rdPartyLibs/vulkan/hlslcc/src/cbstring/license.txt
prog/3rdPartyLibs/vulkan/smol-v/LICENSE
prog/3rdPartyLibs/vulkan/spirv-tools/external/spirv-headers/LICENSE
prog/3rdPartyLibs/vulkan/spirv-tools/LICENSE
prog/3rdPartyLibs/vulkan/spirv-tools/utils/vscode/src/lsp/LICENSE
33 changes: 33 additions & 0 deletions build_all.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
pushd prog\tools
call build_dagor3_cdk_mini.cmd
call build_dagor3_cdk_mini.cmd
popd

pushd prog\tools\dargbox
call create_vfsroms.bat
cd shaders
call compile_shaders_pc11.bat
popd

pushd prog\samples\physTest
jam
jam -f jamfile-test-jolt
cd shaders
call compile_game_shaders-dx11.bat
popd

pushd samples\skiesSample\prog
jam
cd shaders
call compile_shaders_dx12.bat
call compile_shaders_pc11.bat
call compile_shaders_tools.bat
popd

pushd samples\testGI\prog
jam
cd shaders
call compile_shaders_dx12.bat
call compile_shaders_pc11.bat
call compile_shaders_tools.bat
popd
9 changes: 9 additions & 0 deletions dabuild_all.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
pushd samples\skiesSample\develop
call dabuild.cmd
popd

pushd samples\testGI\develop
call dabuild.cmd
cd gui
call create_fonts.bat
popd
Loading

0 comments on commit 98b313a

Please sign in to comment.