Skip to content
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

Add support for SDL3 (Centurion 8.0.0) #139

Draft
wants to merge 34 commits into
base: dev
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
3a53373
Add SDL submodules
albin-johansson Jun 7, 2024
1766d7a
Update .gitignore
albin-johansson Jun 7, 2024
0d263a5
Update .clang-format
albin-johansson Jun 7, 2024
7c31b3d
Delete .gitkeep
albin-johansson Jun 7, 2024
4a3cc9f
Remove SDL2 find scripts
albin-johansson Jun 7, 2024
f5e8d9d
Add download script for test assets
albin-johansson Jun 7, 2024
7df25d4
Remove old examples
albin-johansson Jun 7, 2024
8a671f7
Remove old unit tests
albin-johansson Jun 7, 2024
9fd636c
Remove old mock tests
albin-johansson Jun 7, 2024
0e6c417
Remove old test assets
albin-johansson Jun 7, 2024
cf72ed2
Remove old code
albin-johansson Jun 7, 2024
0a6cdde
Update LICENSE
albin-johansson Jun 7, 2024
3729b94
Update README.md
albin-johansson Jun 7, 2024
04e5606
Update vcpkg.json
albin-johansson Jun 7, 2024
0400d81
Delete Doxyfile
albin-johansson Jun 7, 2024
0982964
Overhaul CMake scripts
albin-johansson Jun 7, 2024
c278051
Add basic error related APIs
albin-johansson Jun 7, 2024
2e143a3
Add extent types
albin-johansson Jun 7, 2024
3c5e392
Add point types
albin-johansson Jun 7, 2024
d6e48f7
Add basic version APIs
albin-johansson Jun 7, 2024
c07f8eb
Add error tests
albin-johansson Jun 7, 2024
8aed11f
Add scope_exit utility
albin-johansson Jun 7, 2024
2a92371
Add to_underlying utility
albin-johansson Jun 7, 2024
1c8c704
Add initialization APIs
albin-johansson Jun 7, 2024
7c57de7
Add basic initialization demo
albin-johansson Jun 7, 2024
40c160e
Add unit test main
albin-johansson Jun 7, 2024
0cbcae1
Add iostream types
albin-johansson Jun 7, 2024
98e9221
Update ci.yml
albin-johansson Jun 8, 2024
7fa50cf
Add --outdir arguments
albin-johansson Jun 8, 2024
c5fc252
Tweak system dependencies
albin-johansson Jun 8, 2024
ca26508
Add filesystem APIs
albin-johansson Jun 8, 2024
8c2d691
Make basic demo work without extensions
albin-johansson Jun 8, 2024
3dcbaae
Add install rules for SDL runtime artifacts
albin-johansson Jun 8, 2024
31a4ac3
Ignore pycache folders
albin-johansson Jun 8, 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
  •  
  •  
  •  
183 changes: 166 additions & 17 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -1,42 +1,191 @@
BasedOnStyle: Google

# Language mode
Language: Cpp
Standard: c++20

ColumnLimit: 95
# Basic
UseTab: Never
ColumnLimit: 80
IndentWidth: 2
ContinuationIndentWidth: 4
MaxEmptyLinesToKeep: 1

# Pointers and references
DerivePointerAlignment: false
PointerAlignment: Left
ReferenceAlignment: Left

IndentRequiresClause: true
# Qualifiers
QualifierAlignment: Custom
QualifierOrder: [ 'friend', 'inline', 'static', 'constexpr', 'const', 'volatile', 'restrict', 'type' ]
SpaceAroundPointerQualifiers: Default

# Braces
InsertBraces: false
BracedInitializerIndentWidth: 2
Cpp11BracedListStyle: true
SpaceBeforeCpp11BracedList: true
AllowShortBlocksOnASingleLine: Never
AlignArrayOfStructures: None
BreakBeforeBraces: Custom
BraceWrapping:
IndentBraces: false
AfterNamespace: false
AfterExternBlock: true
AfterClass: true
AfterStruct: true
AfterEnum: true
AfterUnion: true
AfterFunction: true
AfterCaseLabel: false
AfterControlStatement: Never
BeforeElse: true
BeforeCatch: true
BeforeWhile: false
BeforeLambdaBody: false
SplitEmptyNamespace: false
SplitEmptyFunction: false
SplitEmptyRecord: false

# Spaces
SpaceBeforeParens: ControlStatementsExceptControlMacros
SpaceBeforeSquareBrackets: false
SpaceBeforeRangeBasedForLoopColon: true
SpaceAfterCStyleCast: true
SpaceAfterLogicalNot: false
SpacesInParens: Never
SpacesInAngles: Never
SpacesInSquareBrackets: false
SpaceInEmptyBlock: false

# Preprocessor
AlignConsecutiveMacros: None
AlignEscapedNewlines: Left
IndentPPDirectives: None
PPIndentWidth: 2
SortIncludes: CaseSensitive
IncludeBlocks: Regroup
IncludeCategories:
# Standard headers, located in <> with no extension.
- Regex: '<[A-Za-z0-9\_\-]+>'
SortPriority: 1
Priority: 1

# Headers in <> with extension and optional prefix.
- Regex: '<.+>'
SortPriority: 2
Priority: 2

# Headers in "" with extension.
- Regex: '".+"'
SortPriority: 3
Priority: 3

# Operators
AlignOperands: Align
AlignConsecutiveDeclarations: None
AlignConsecutiveAssignments: None
SpaceBeforeAssignmentOperators: true
BreakBeforeTernaryOperators: true
BreakBeforeBinaryOperators: None

# Control statements
AllowShortIfStatementsOnASingleLine: Never
AllowShortLoopsOnASingleLine: false

# Attributes
BreakAfterAttributes: Leave

# Namespaces
NamespaceIndentation: None
FixNamespaceComments: true

# Access modifiers
IndentAccessModifiers: false
AccessModifierOffset: -1
EmptyLineBeforeAccessModifier: Always
EmptyLineAfterAccessModifier: Never

AllowAllArgumentsOnNextLine: false
AllowAllParametersOfDeclarationOnNextLine: false
AllowAllConstructorInitializersOnNextLine: false
# Constructors
PackConstructorInitializers: Never
SpaceBeforeCtorInitializerColon: true
ConstructorInitializerIndentWidth: 2
BreakConstructorInitializers: BeforeColon

# Inheritance
BreakInheritanceList: BeforeColon
SpaceBeforeInheritanceColon: true

# Enums
AllowShortEnumsOnASingleLine: false

# Functions
AlwaysBreakAfterReturnType: None
AllowShortFunctionsOnASingleLine: None
IndentWrappedFunctionNames: false
RemoveSemicolon: false
BinPackParameters: false
BinPackArguments: false
AllowAllParametersOfDeclarationOnNextLine: false
AllowAllArgumentsOnNextLine: false
AllowBreakBeforeNoexceptSpecifier: OnlyWithParen

AllowShortFunctionsOnASingleLine: InlineOnly
AllowShortIfStatementsOnASingleLine: Never
AllowShortBlocksOnASingleLine: Empty
# Lambdas
LambdaBodyIndentation: Signature
AllowShortLambdasOnASingleLine: All
AllowShortEnumsOnASingleLine: false
AllowShortLoopsOnASingleLine: false

BreakBeforeBinaryOperators: None
BreakBeforeTernaryOperators: true
BreakBeforeConceptDeclarations: true
# Templates
SpaceAfterTemplateKeyword: true
AlwaysBreakTemplateDeclarations: Yes

# Concepts
IndentRequiresClause: true
BreakBeforeConceptDeclarations: Always
RequiresClausePosition: OwnLine
RequiresExpressionIndentation: OuterScope
AllowShortCompoundRequirementOnASingleLine: true

# Switches
AllowShortCaseLabelsOnASingleLine: true
SpaceBeforeCaseColon: false
IndentCaseLabels: true
IndentCaseBlocks: false
AlignConsecutiveShortCaseStatements:
Enabled: true
AcrossEmptyLines: false
AcrossComments: false
AlignCaseColons: false

# Bit fields
AlignConsecutiveBitFields: Consecutive
BitFieldColonSpacing: Both

# Digit separators
IntegerLiteralSeparator:
Binary: -1
Decimal: 0
Hex: -1

BreakBeforeBraces: Stroustrup
# Strings
BreakStringLiterals: false
BreakAdjacentStringLiterals: false
AlwaysBreakBeforeMultilineStrings: false

BreakInheritanceList: BeforeComma
BreakConstructorInitializers: BeforeComma
# Comments
SpacesBeforeTrailingComments: 2
ReflowComments: true
AlignTrailingComments:
Kind: Always
OverEmptyLines: 0

SpaceBeforeCpp11BracedList: true
# Miscellaneous
AlignAfterOpenBracket: Align
BreakArrays: false
SpacesInContainerLiterals: false
IndentGotoLabels: false
IndentExternBlock: Indent
KeepEmptyLinesAtTheStartOfBlocks: false
InsertNewlineAtEOF: true
SortUsingDeclarations: Lexicographic
RemoveParentheses: Leave
Loading
Loading