switch to useing CLion and started on Project Creator && Fixed Crash on Viewport movve
This commit is contained in:
parent
4c7714bddd
commit
eaa61ee981
8
.idea/.gitignore
generated
vendored
Normal file
8
.idea/.gitignore
generated
vendored
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
# Default ignored files
|
||||||
|
/shelf/
|
||||||
|
/workspace.xml
|
||||||
|
# Editor-based HTTP Client requests
|
||||||
|
/httpRequests/
|
||||||
|
# Datasource local storage ignored files
|
||||||
|
/dataSources/
|
||||||
|
/dataSources.local.xml
|
1
.idea/.name
generated
Normal file
1
.idea/.name
generated
Normal file
@ -0,0 +1 @@
|
|||||||
|
CreateEngine
|
2
.idea/Create-Engine.iml
generated
Normal file
2
.idea/Create-Engine.iml
generated
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<module classpath="CMake" type="CPP_MODULE" version="4" />
|
31
.idea/betterCommentsSettings.xml
generated
Normal file
31
.idea/betterCommentsSettings.xml
generated
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="BetterCommentsSettings">
|
||||||
|
<option name="initialized" value="true" />
|
||||||
|
<option name="tags">
|
||||||
|
<list>
|
||||||
|
<CustomTag>
|
||||||
|
<option name="color" value="#FF2D00" />
|
||||||
|
<option name="type" value="!" />
|
||||||
|
</CustomTag>
|
||||||
|
<CustomTag>
|
||||||
|
<option name="color" value="#3498DB" />
|
||||||
|
<option name="type" value="?" />
|
||||||
|
</CustomTag>
|
||||||
|
<CustomTag>
|
||||||
|
<option name="color" value="#474747" />
|
||||||
|
<option name="hasStrikethrough" value="true" />
|
||||||
|
<option name="type" value="//" />
|
||||||
|
</CustomTag>
|
||||||
|
<CustomTag>
|
||||||
|
<option name="color" value="#FF8C00" />
|
||||||
|
<option name="type" value="todo" />
|
||||||
|
</CustomTag>
|
||||||
|
<CustomTag>
|
||||||
|
<option name="color" value="#98C379" />
|
||||||
|
<option name="type" value="*" />
|
||||||
|
</CustomTag>
|
||||||
|
</list>
|
||||||
|
</option>
|
||||||
|
</component>
|
||||||
|
</project>
|
344
.idea/editor.xml
generated
Normal file
344
.idea/editor.xml
generated
Normal file
@ -0,0 +1,344 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="BackendCodeEditorSettings">
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CDeclarationWithImplicitIntType/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CommentTypo/@EntryIndexedValue" value="DO_NOT_SHOW" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=ConstevalIfIsAlwaysConstant/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppAbstractClassWithoutSpecifier/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppAbstractFinalClass/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppAbstractVirtualFunctionCallInCtor/@EntryIndexedValue" value="ERROR" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppAccessSpecifierWithNoDeclarations/@EntryIndexedValue" value="SUGGESTION" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppAwaiterTypeIsNotClass/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppBooleanIncrementExpression/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppBoostFormatBadCode/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppBoostFormatLegacyCode/@EntryIndexedValue" value="SUGGESTION" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppBoostFormatMixedArgs/@EntryIndexedValue" value="ERROR" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppBoostFormatTooFewArgs/@EntryIndexedValue" value="ERROR" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppBoostFormatTooManyArgs/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppCStyleCast/@EntryIndexedValue" value="SUGGESTION" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppCVQualifierCanNotBeAppliedToReference/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppClassCanBeFinal/@EntryIndexedValue" value="HINT" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppClassIsIncomplete/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppClassNeedsConstructorBecauseOfUninitializedMember/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppClassNeverUsed/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppCompileTimeConstantCanBeReplacedWithBooleanConstant/@EntryIndexedValue" value="SUGGESTION" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppConceptNeverUsed/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppConditionalExpressionCanBeSimplified/@EntryIndexedValue" value="SUGGESTION" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppConstParameterInDeclaration/@EntryIndexedValue" value="SUGGESTION" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppConstValueFunctionReturnType/@EntryIndexedValue" value="SUGGESTION" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppCoroutineCallResolveError/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDFAArrayIndexOutOfBounds/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDFAConstantConditions/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDFAConstantFunctionResult/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDFAConstantParameter/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDFADeletedPointer/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDFAEndlessLoop/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDFAInfiniteRecursion/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDFAInvalidatedMemory/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDFALocalValueEscapesFunction/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDFALocalValueEscapesScope/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDFALoopConditionNotUpdated/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDFAMemoryLeak/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDFANotInitializedField/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDFANullDereference/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDFATimeOver/@EntryIndexedValue" value="HINT" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDFAUnreachableCode/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDFAUnreachableFunctionCall/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDFAUnreadVariable/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDFAUnusedValue/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDeclarationHidesLocal/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDeclarationHidesUncapturedLocal/@EntryIndexedValue" value="HINT" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDeclarationSpecifierWithoutDeclarators/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDeclaratorDisambiguatedAsFunction/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDeclaratorNeverUsed/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDeclaratorUsedBeforeInitialization/@EntryIndexedValue" value="ERROR" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDefaultCaseNotHandledInSwitchStatement/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDefaultInitializationWithNoUserConstructor/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDefaultIsUsedAsIdentifier/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDefaultedSpecialMemberFunctionIsImplicitlyDeleted/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDeletingVoidPointer/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDependentTemplateWithoutTemplateKeyword/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDependentTypeWithoutTypenameKeyword/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDeprecatedEntity/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDeprecatedOverridenMethod/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDeprecatedRegisterStorageClassSpecifier/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDereferenceOperatorLimitExceeded/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDiscardedPostfixOperatorResult/@EntryIndexedValue" value="SUGGESTION" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDoxygenSyntaxError/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDoxygenUndocumentedParameter/@EntryIndexedValue" value="SUGGESTION" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDoxygenUnresolvedReference/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppEmptyDeclaration/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppEnforceCVQualifiersOrder/@EntryIndexedValue" value="DO_NOT_SHOW" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppEnforceCVQualifiersPlacement/@EntryIndexedValue" value="DO_NOT_SHOW" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppEnforceDoStatementBraces/@EntryIndexedValue" value="DO_NOT_SHOW" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppEnforceForStatementBraces/@EntryIndexedValue" value="DO_NOT_SHOW" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppEnforceFunctionDeclarationStyle/@EntryIndexedValue" value="DO_NOT_SHOW" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppEnforceIfStatementBraces/@EntryIndexedValue" value="DO_NOT_SHOW" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppEnforceNestedNamespacesStyle/@EntryIndexedValue" value="HINT" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppEnforceOverridingDestructorStyle/@EntryIndexedValue" value="SUGGESTION" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppEnforceOverridingFunctionStyle/@EntryIndexedValue" value="SUGGESTION" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppEnforceTypeAliasCodeStyle/@EntryIndexedValue" value="DO_NOT_SHOW" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppEnforceWhileStatementBraces/@EntryIndexedValue" value="DO_NOT_SHOW" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppEntityAssignedButNoRead/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppEntityUsedOnlyInUnevaluatedContext/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppEnumeratorNeverUsed/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppEqualOperandsInBinaryExpression/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppEvaluationFailure/@EntryIndexedValue" value="ERROR" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppExplicitSpecializationInNonNamespaceScope/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppExpressionWithoutSideEffects/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppFinalFunctionInFinalClass/@EntryIndexedValue" value="SUGGESTION" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppFinalNonOverridingVirtualFunction/@EntryIndexedValue" value="SUGGESTION" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppForLoopCanBeReplacedWithWhile/@EntryIndexedValue" value="SUGGESTION" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppForwardEnumDeclarationWithoutUnderlyingType/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppFunctionDoesntReturnValue/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppFunctionIsNotImplemented/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppFunctionResultShouldBeUsed/@EntryIndexedValue" value="HINT" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppFunctionalStyleCast/@EntryIndexedValue" value="SUGGESTION" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppHeaderHasBeenAlreadyIncluded/@EntryIndexedValue" value="HINT" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppHiddenFunction/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppHidingFunction/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppIdenticalOperandsInBinaryExpression/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppIfCanBeReplacedByConstexprIf/@EntryIndexedValue" value="SUGGESTION" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppImplicitDefaultConstructorNotAvailable/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppIncompatiblePointerConversion/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppIncompleteSwitchStatement/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppInconsistentNaming/@EntryIndexedValue" value="DO_NOT_SHOW" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppIntegralToPointerConversion/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppInvalidLineContinuation/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppJoinDeclarationAndAssignment/@EntryIndexedValue" value="SUGGESTION" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppLambdaCaptureNeverUsed/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppLocalVariableMayBeConst/@EntryIndexedValue" value="HINT" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppLocalVariableMightNotBeInitialized/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppLocalVariableWithNonTrivialDtorIsNeverUsed/@EntryIndexedValue" value="DO_NOT_SHOW" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppLongFloat/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppMemberFunctionMayBeConst/@EntryIndexedValue" value="SUGGESTION" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppMemberFunctionMayBeStatic/@EntryIndexedValue" value="SUGGESTION" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppMemberInitializersOrder/@EntryIndexedValue" value="SUGGESTION" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppMismatchedClassTags/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppMissingIncludeGuard/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppMissingKeywordThrow/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppMsExtAddressOfClassRValue/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppMsExtBindingRValueToLvalueReference/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppMsExtCopyElisionInCopyInitDeclarator/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppMsExtDoubleUserConversionInCopyInit/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppMsExtNotInitializedStaticConstLocalVar/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppMsExtReinterpretCastFromNullptr/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppMultiCharacterLiteral/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppMultiCharacterWideLiteral/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppMustBePublicVirtualToImplementInterface/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppMutableSpecifierOnReferenceMember/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppNoDiscardExpression/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppNodiscardFunctionWithoutReturnValue/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppNonExceptionSafeResourceAcquisition/@EntryIndexedValue" value="HINT" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppNonExplicitConversionOperator/@EntryIndexedValue" value="HINT" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppNonExplicitConvertingConstructor/@EntryIndexedValue" value="HINT" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppNonInlineFunctionDefinitionInHeaderFile/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppNonInlineVariableDefinitionInHeaderFile/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppNotAllPathsReturnValue/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppObjectMemberMightNotBeInitialized/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppOutParameterMustBeWritten/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppParameterMayBeConst/@EntryIndexedValue" value="HINT" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppParameterMayBeConstPtrOrRef/@EntryIndexedValue" value="SUGGESTION" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppParameterNamesMismatch/@EntryIndexedValue" value="HINT" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppParameterNeverUsed/@EntryIndexedValue" value="HINT" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppPassValueParameterByConstReference/@EntryIndexedValue" value="SUGGESTION" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppPointerConversionDropsQualifiers/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppPointerToIntegralConversion/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppPolymorphicClassWithNonVirtualPublicDestructor/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppPossiblyErroneousEmptyStatements/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppPossiblyUninitializedMember/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppPossiblyUnintendedObjectSlicing/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppPrecompiledHeaderIsNotIncluded/@EntryIndexedValue" value="ERROR" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppPrecompiledHeaderNotFound/@EntryIndexedValue" value="ERROR" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppPrintfBadFormat/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppPrintfExtraArg/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppPrintfMissedArg/@EntryIndexedValue" value="ERROR" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppPrintfRiskyFormat/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppPrivateSpecialMemberFunctionIsNotImplemented/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppRangeBasedForIncompatibleReference/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppRedefinitionOfDefaultArgumentInOverrideFunction/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppRedundantAccessSpecifier/@EntryIndexedValue" value="HINT" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppRedundantBaseClassAccessSpecifier/@EntryIndexedValue" value="HINT" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppRedundantBaseClassInitializer/@EntryIndexedValue" value="SUGGESTION" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppRedundantBooleanExpressionArgument/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppRedundantCastExpression/@EntryIndexedValue" value="HINT" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppRedundantComplexityInComparison/@EntryIndexedValue" value="SUGGESTION" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppRedundantConditionalExpression/@EntryIndexedValue" value="SUGGESTION" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppRedundantConstSpecifier/@EntryIndexedValue" value="HINT" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppRedundantControlFlowJump/@EntryIndexedValue" value="HINT" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppRedundantDereferencingAndTakingAddress/@EntryIndexedValue" value="SUGGESTION" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppRedundantElaboratedTypeSpecifier/@EntryIndexedValue" value="HINT" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppRedundantElseKeyword/@EntryIndexedValue" value="HINT" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppRedundantElseKeywordInsideCompoundStatement/@EntryIndexedValue" value="HINT" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppRedundantEmptyDeclaration/@EntryIndexedValue" value="HINT" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppRedundantEmptyStatement/@EntryIndexedValue" value="HINT" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppRedundantExportKeyword/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppRedundantFwdClassOrEnumSpecifier/@EntryIndexedValue" value="SUGGESTION" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppRedundantInlineSpecifier/@EntryIndexedValue" value="HINT" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppRedundantLambdaParameterList/@EntryIndexedValue" value="HINT" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppRedundantMemberInitializer/@EntryIndexedValue" value="SUGGESTION" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppRedundantNamespaceDefinition/@EntryIndexedValue" value="SUGGESTION" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppRedundantParentheses/@EntryIndexedValue" value="HINT" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppRedundantQualifier/@EntryIndexedValue" value="HINT" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppRedundantQualifierADL/@EntryIndexedValue" value="DO_NOT_SHOW" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppRedundantStaticSpecifierOnMemberAllocationFunction/@EntryIndexedValue" value="HINT" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppRedundantStaticSpecifierOnThreadLocalLocalVariable/@EntryIndexedValue" value="HINT" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppRedundantTemplateArguments/@EntryIndexedValue" value="HINT" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppRedundantTemplateKeyword/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppRedundantTypenameKeyword/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppRedundantVoidArgumentList/@EntryIndexedValue" value="SUGGESTION" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppRedundantZeroInitializerInAggregateInitialization/@EntryIndexedValue" value="SUGGESTION" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppReinterpretCastFromVoidPtr/@EntryIndexedValue" value="SUGGESTION" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppRemoveRedundantBraces/@EntryIndexedValue" value="DO_NOT_SHOW" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppReplaceMemsetWithZeroInitialization/@EntryIndexedValue" value="SUGGESTION" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppReplaceTieWithStructuredBinding/@EntryIndexedValue" value="SUGGESTION" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppReturnNoValueInNonVoidFunction/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppSmartPointerVsMakeFunction/@EntryIndexedValue" value="SUGGESTION" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppSomeObjectMembersMightNotBeInitialized/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppSpecialFunctionWithoutNoexceptSpecification/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppStaticAssertFailure/@EntryIndexedValue" value="ERROR" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppStaticDataMemberInUnnamedStruct/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppStaticSpecifierOnAnonymousNamespaceMember/@EntryIndexedValue" value="SUGGESTION" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppStringLiteralToCharPointerConversion/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppTabsAreDisallowed/@EntryIndexedValue" value="DO_NOT_SHOW" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppTemplateArgumentsCanBeDeduced/@EntryIndexedValue" value="HINT" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppTemplateParameterNeverUsed/@EntryIndexedValue" value="HINT" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppTemplateParameterShadowing/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppThrowExpressionCanBeReplacedWithRethrow/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppTooWideScope/@EntryIndexedValue" value="SUGGESTION" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppTooWideScopeInitStatement/@EntryIndexedValue" value="HINT" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppTypeAliasNeverUsed/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppUninitializedDependentBaseClass/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppUninitializedNonStaticDataMember/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppUnionMemberOfReferenceType/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppUnmatchedPragmaEndRegionDirective/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppUnmatchedPragmaRegionDirective/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppUnnamedNamespaceInHeaderFile/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppUnnecessaryWhitespace/@EntryIndexedValue" value="DO_NOT_SHOW" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppUnsignedZeroComparison/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppUnusedIncludeDirective/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppUseAlgorithmWithCount/@EntryIndexedValue" value="SUGGESTION" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppUseAssociativeContains/@EntryIndexedValue" value="SUGGESTION" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppUseAuto/@EntryIndexedValue" value="HINT" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppUseAutoForNumeric/@EntryIndexedValue" value="HINT" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppUseElementsView/@EntryIndexedValue" value="SUGGESTION" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppUseEraseAlgorithm/@EntryIndexedValue" value="SUGGESTION" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppUseFamiliarTemplateSyntaxForGenericLambdas/@EntryIndexedValue" value="SUGGESTION" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppUseRangeAlgorithm/@EntryIndexedValue" value="SUGGESTION" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppUseStdSize/@EntryIndexedValue" value="SUGGESTION" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppUseStructuredBinding/@EntryIndexedValue" value="HINT" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppUseTypeTraitAlias/@EntryIndexedValue" value="SUGGESTION" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppUserDefinedLiteralSuffixDoesNotStartWithUnderscore/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppUsingResultOfAssignmentAsCondition/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppVariableCanBeMadeConstexpr/@EntryIndexedValue" value="SUGGESTION" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppVirtualFunctionCallInsideCtor/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppVirtualFunctionInFinalClass/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppVolatileParameterInDeclaration/@EntryIndexedValue" value="SUGGESTION" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppWarningDirective/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppWrongIncludesOrder/@EntryIndexedValue" value="HINT" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppWrongSlashesInIncludeDirective/@EntryIndexedValue" value="HINT" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppZeroConstantCanBeReplacedWithNullptr/@EntryIndexedValue" value="SUGGESTION" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppZeroValuedExpressionUsedAsNullPointer/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=IdentifierTypo/@EntryIndexedValue" value="DO_NOT_SHOW" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=IfStdIsConstantEvaluatedCanBeReplaced/@EntryIndexedValue" value="SUGGESTION" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=StdIsConstantEvaluatedWillAlwaysEvaluateToConstant/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=StringLiteralTypo/@EntryIndexedValue" value="DO_NOT_SHOW" type="string" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppClangFormat/EnableClangFormatSupport/@EntryValue" value="false" type="bool" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/ALIGN_MULTILINE_ARGUMENT/@EntryValue" value="true" type="bool" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/ALIGN_MULTILINE_BINARY_EXPRESSIONS_CHAIN/@EntryValue" value="true" type="bool" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/ALIGN_MULTILINE_CALLS_CHAIN/@EntryValue" value="false" type="bool" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/ALIGN_MULTILINE_EXPRESSION/@EntryValue" value="false" type="bool" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/ALIGN_MULTILINE_EXTENDS_LIST/@EntryValue" value="true" type="bool" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/ALIGN_MULTILINE_FOR_STMT/@EntryValue" value="true" type="bool" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/ALIGN_MULTILINE_PARAMETER/@EntryValue" value="true" type="bool" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/ALIGN_MULTILINE_TYPE_ARGUMENT/@EntryValue" value="false" type="bool" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/ALIGN_MULTILINE_TYPE_PARAMETER/@EntryValue" value="false" type="bool" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/ALIGN_MULTIPLE_DECLARATION/@EntryValue" value="false" type="bool" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/ALIGN_TERNARY/@EntryValue" value="ALIGN_ALL" type="string" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/ANONYMOUS_METHOD_DECLARATION_BRACES/@EntryValue" value="END_OF_LINE" type="string" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/BLANK_LINES_AROUND_CLASS_DEFINITION/@EntryValue" value="1" type="int" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/BLANK_LINES_AROUND_DECLARATIONS/@EntryValue" value="0" type="int" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/BLANK_LINES_AROUND_FUNCTION_DECLARATION/@EntryValue" value="1" type="int" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/BLANK_LINES_AROUND_FUNCTION_DEFINITION/@EntryValue" value="1" type="int" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/BREAK_TEMPLATE_DECLARATION/@EntryValue" value="LINE_BREAK" type="string" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/CASE_BLOCK_BRACES/@EntryValue" value="END_OF_LINE" type="string" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/CONTINUOUS_LINE_INDENT/@EntryValue" value="Double" type="string" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/FREE_BLOCK_BRACES/@EntryValue" value="END_OF_LINE" type="string" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/INDENT_ACCESS_SPECIFIERS_FROM_CLASS/@EntryValue" value="false" type="bool" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/INDENT_CASE_FROM_SWITCH/@EntryValue" value="true" type="bool" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/INDENT_CLASS_MEMBERS_FROM_ACCESS_SPECIFIERS/@EntryValue" value="true" type="bool" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/INDENT_COMMENT/@EntryValue" value="true" type="bool" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/INDENT_SIZE/@EntryValue" value="4" type="int" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/INDENT_STYLE/@EntryValue" value="Space" type="string" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/INITIALIZER_BRACES/@EntryValue" value="END_OF_LINE_NO_SPACE" type="string" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/INT_ALIGN_EQ/@EntryValue" value="false" type="bool" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/INVOCABLE_DECLARATION_BRACES/@EntryValue" value="END_OF_LINE" type="string" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/KEEP_BLANK_LINES_IN_CODE/@EntryValue" value="2" type="int" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/KEEP_BLANK_LINES_IN_DECLARATIONS/@EntryValue" value="2" type="int" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/KEEP_USER_LINEBREAKS/@EntryValue" value="true" type="bool" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/LINE_BREAK_AFTER_COLON_IN_MEMBER_INITIALIZER_LISTS/@EntryValue" value="ON_SINGLE_LINE" type="string" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/MEMBER_INITIALIZER_LIST_STYLE/@EntryValue" value="DO_NOT_CHANGE" type="string" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/NAMESPACE_DECLARATION_BRACES/@EntryValue" value="END_OF_LINE" type="string" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/NAMESPACE_INDENTATION/@EntryValue" value="All" type="string" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/OTHER_BRACES/@EntryValue" value="END_OF_LINE" type="string" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/PLACE_CATCH_ON_NEW_LINE/@EntryValue" value="false" type="bool" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/PLACE_ELSE_ON_NEW_LINE/@EntryValue" value="false" type="bool" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/PLACE_NAMESPACE_DEFINITIONS_ON_SAME_LINE/@EntryValue" value="false" type="bool" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/PLACE_WHILE_ON_NEW_LINE/@EntryValue" value="false" type="bool" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SIMPLE_BLOCK_STYLE/@EntryValue" value="DO_NOT_CHANGE" type="string" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_AFTER_CAST_EXPRESSION_PARENTHESES/@EntryValue" value="true" type="bool" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_AFTER_COLON_IN_BITFIELD_DECLARATOR/@EntryValue" value="true" type="bool" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_AFTER_COMMA_IN_TEMPLATE_ARGS/@EntryValue" value="true" type="bool" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_AFTER_COMMA_IN_TEMPLATE_PARAMS/@EntryValue" value="true" type="bool" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_AFTER_EXTENDS_COLON/@EntryValue" value="true" type="bool" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_AFTER_FOR_COLON/@EntryValue" value="true" type="bool" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_AFTER_FOR_SEMICOLON/@EntryValue" value="true" type="bool" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_AFTER_PTR_IN_DATA_MEMBER/@EntryValue" value="false" type="bool" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_AFTER_PTR_IN_DATA_MEMBERS/@EntryValue" value="false" type="bool" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_AFTER_PTR_IN_METHOD/@EntryValue" value="false" type="bool" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_AFTER_PTR_IN_NESTED_DECLARATOR/@EntryValue" value="false" type="bool" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_AFTER_REF_IN_DATA_MEMBER/@EntryValue" value="false" type="bool" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_AFTER_REF_IN_DATA_MEMBERS/@EntryValue" value="false" type="bool" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_AFTER_REF_IN_METHOD/@EntryValue" value="false" type="bool" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_AFTER_UNARY_OPERATOR/@EntryValue" value="false" type="bool" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_BEFORE_COLON_IN_BITFIELD_DECLARATOR/@EntryValue" value="false" type="bool" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_BEFORE_EXTENDS_COLON/@EntryValue" value="true" type="bool" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_BEFORE_FOR_COLON/@EntryValue" value="false" type="bool" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_BEFORE_FOR_SEMICOLON/@EntryValue" value="false" type="bool" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_BEFORE_PTR_IN_ABSTRACT_DECL/@EntryValue" value="true" type="bool" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_BEFORE_PTR_IN_DATA_MEMBER/@EntryValue" value="true" type="bool" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_BEFORE_PTR_IN_DATA_MEMBERS/@EntryValue" value="true" type="bool" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_BEFORE_PTR_IN_METHOD/@EntryValue" value="true" type="bool" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_BEFORE_REF_IN_ABSTRACT_DECL/@EntryValue" value="true" type="bool" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_BEFORE_REF_IN_DATA_MEMBER/@EntryValue" value="true" type="bool" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_BEFORE_REF_IN_DATA_MEMBERS/@EntryValue" value="true" type="bool" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_BEFORE_REF_IN_METHOD/@EntryValue" value="true" type="bool" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_BEFORE_TEMPLATE_ARGS/@EntryValue" value="false" type="bool" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_BEFORE_TEMPLATE_PARAMS/@EntryValue" value="false" type="bool" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_BETWEEN_CLOSING_ANGLE_BRACKETS_IN_TEMPLATE_ARGS/@EntryValue" value="true" type="bool" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_WITHIN_ARRAY_ACCESS_BRACKETS/@EntryValue" value="false" type="bool" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_WITHIN_CAST_EXPRESSION_PARENTHESES/@EntryValue" value="false" type="bool" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_WITHIN_DECLARATION_PARENTHESES/@EntryValue" value="false" type="bool" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_WITHIN_EMPTY_BLOCKS/@EntryValue" value="false" type="bool" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_WITHIN_EMPTY_INITIALIZER_BRACES/@EntryValue" value="false" type="bool" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_WITHIN_EMPTY_METHOD_PARENTHESES/@EntryValue" value="false" type="bool" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_WITHIN_EMPTY_TEMPLATE_PARAMS/@EntryValue" value="false" type="bool" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_WITHIN_INITIALIZER_BRACES/@EntryValue" value="false" type="bool" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_WITHIN_TEMPLATE_ARGS/@EntryValue" value="false" type="bool" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_WITHIN_TEMPLATE_PARAMS/@EntryValue" value="false" type="bool" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPECIAL_ELSE_IF_TREATMENT/@EntryValue" value="true" type="bool" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/TAB_WIDTH/@EntryValue" value="4" type="int" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/TYPE_DECLARATION_BRACES/@EntryValue" value="END_OF_LINE" type="string" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/WRAP_AFTER_BINARY_OPSIGN/@EntryValue" value="true" type="bool" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/WRAP_AFTER_DECLARATION_LPAR/@EntryValue" value="false" type="bool" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/WRAP_AFTER_INVOCATION_LPAR/@EntryValue" value="false" type="bool" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/WRAP_ARGUMENTS_STYLE/@EntryValue" value="WRAP_IF_LONG" type="string" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/WRAP_BEFORE_DECLARATION_LPAR/@EntryValue" value="false" type="bool" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/WRAP_BEFORE_DECLARATION_RPAR/@EntryValue" value="false" type="bool" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/WRAP_BEFORE_INVOCATION_LPAR/@EntryValue" value="false" type="bool" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/WRAP_BEFORE_INVOCATION_RPAR/@EntryValue" value="false" type="bool" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/WRAP_BEFORE_TERNARY_OPSIGNS/@EntryValue" value="true" type="bool" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/WRAP_PARAMETERS_STYLE/@EntryValue" value="WRAP_IF_LONG" type="string" />
|
||||||
|
<option name="/Default/CodeStyle/EditorConfig/EnableClangFormatSupport/@EntryValue" value="false" type="bool" />
|
||||||
|
</component>
|
||||||
|
</project>
|
10
.idea/material_theme_project_new.xml
generated
Normal file
10
.idea/material_theme_project_new.xml
generated
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="MaterialThemeProjectNewConfig">
|
||||||
|
<option name="metadata">
|
||||||
|
<MTProjectMetadataState>
|
||||||
|
<option name="userId" value="-126d4bf4:196bd985816:-7fff" />
|
||||||
|
</MTProjectMetadataState>
|
||||||
|
</option>
|
||||||
|
</component>
|
||||||
|
</project>
|
7
.idea/misc.xml
generated
Normal file
7
.idea/misc.xml
generated
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="CMakePythonSetting">
|
||||||
|
<option name="pythonIntegrationState" value="YES" />
|
||||||
|
</component>
|
||||||
|
<component name="CMakeWorkspace" PROJECT_DIR="$PROJECT_DIR$" />
|
||||||
|
</project>
|
8
.idea/modules.xml
generated
Normal file
8
.idea/modules.xml
generated
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="ProjectModuleManager">
|
||||||
|
<modules>
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/.idea/Create-Engine.iml" filepath="$PROJECT_DIR$/.idea/Create-Engine.iml" />
|
||||||
|
</modules>
|
||||||
|
</component>
|
||||||
|
</project>
|
7
.idea/vcs.xml
generated
Normal file
7
.idea/vcs.xml
generated
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="VcsDirectoryMappings">
|
||||||
|
<mapping directory="" vcs="Git" />
|
||||||
|
<mapping directory="$PROJECT_DIR$/Remake" vcs="Git" />
|
||||||
|
</component>
|
||||||
|
</project>
|
63
CMakeLists.txt
Normal file
63
CMakeLists.txt
Normal file
@ -0,0 +1,63 @@
|
|||||||
|
cmake_minimum_required(VERSION 3.15)
|
||||||
|
project(CreateEngine VERSION 1.0 LANGUAGES C CXX)
|
||||||
|
|
||||||
|
# --- Standards ---
|
||||||
|
set(CMAKE_C_STANDARD 99)
|
||||||
|
set(CMAKE_CXX_STANDARD 20)
|
||||||
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||||
|
|
||||||
|
# --- Compiler flags ---
|
||||||
|
if(MSVC)
|
||||||
|
add_compile_definitions(GLM_ENABLE_EXPERIMENTAL)
|
||||||
|
add_compile_options(/W4 /Zi)
|
||||||
|
else()
|
||||||
|
add_compile_definitions(GLM_ENABLE_EXPERIMENTAL)
|
||||||
|
add_compile_options(-Wall -g)
|
||||||
|
add_compile_options(-O2 -static -static-libstdc++ -static-libgcc)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
# --- Include directories ---
|
||||||
|
include_directories(
|
||||||
|
${CMAKE_SOURCE_DIR}/src/include
|
||||||
|
${CMAKE_SOURCE_DIR}/src/include/lua
|
||||||
|
${CMAKE_SOURCE_DIR}/src/vendor
|
||||||
|
${CMAKE_SOURCE_DIR}/src/vendor/imgui
|
||||||
|
${CMAKE_SOURCE_DIR}/src/vendor/imguizmo
|
||||||
|
${CMAKE_SOURCE_DIR}/src/vendor/box2d
|
||||||
|
${CMAKE_SOURCE_DIR}/src/vendor/box2d/include
|
||||||
|
${CMAKE_SOURCE_DIR}/src/vendor/xxhash
|
||||||
|
${CMAKE_SOURCE_DIR}/src/vendor/miniaudio
|
||||||
|
)
|
||||||
|
|
||||||
|
# --- Gather source files ---
|
||||||
|
file(GLOB_RECURSE SOURCE_FILES
|
||||||
|
${CMAKE_SOURCE_DIR}/src/src/*.cpp
|
||||||
|
${CMAKE_SOURCE_DIR}/src/src/*.c
|
||||||
|
${CMAKE_SOURCE_DIR}/src/vendor/*.cpp
|
||||||
|
${CMAKE_SOURCE_DIR}/src/vendor/*.c
|
||||||
|
${CMAKE_SOURCE_DIR}/src/include/lua/*.c
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
# --- Define target ---
|
||||||
|
add_executable(${PROJECT_NAME} ${SOURCE_FILES})
|
||||||
|
|
||||||
|
# --- Link libraries ---
|
||||||
|
target_link_libraries(${PROJECT_NAME} PRIVATE
|
||||||
|
glfw3
|
||||||
|
glew32
|
||||||
|
opengl32
|
||||||
|
gdi32
|
||||||
|
yaml-cpp
|
||||||
|
comdlg32
|
||||||
|
ssl
|
||||||
|
crypto
|
||||||
|
dbghelp
|
||||||
|
z
|
||||||
|
freetype
|
||||||
|
)
|
||||||
|
|
||||||
|
# --- Output dir ---
|
||||||
|
set_target_properties(${PROJECT_NAME} PROPERTIES
|
||||||
|
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/src/build"
|
||||||
|
)
|
14
imgui.ini
14
imgui.ini
@ -57,7 +57,7 @@ DockId=0x00000017,1
|
|||||||
Pos=343,955
|
Pos=343,955
|
||||||
Size=1232,222
|
Size=1232,222
|
||||||
Collapsed=0
|
Collapsed=0
|
||||||
DockId=0x00000014,0
|
DockId=0x00000011,0
|
||||||
|
|
||||||
[Window][Profiler Timeline]
|
[Window][Profiler Timeline]
|
||||||
Pos=265,69
|
Pos=265,69
|
||||||
@ -116,7 +116,7 @@ DockId=0x0000000E,0
|
|||||||
Pos=1061,223
|
Pos=1061,223
|
||||||
Size=44,497
|
Size=44,497
|
||||||
Collapsed=0
|
Collapsed=0
|
||||||
DockId=0x00000012,0
|
DockId=0x00000014,0
|
||||||
|
|
||||||
[Window][Master Bus]
|
[Window][Master Bus]
|
||||||
Pos=1003,570
|
Pos=1003,570
|
||||||
@ -190,16 +190,16 @@ DockSpace ID=0x11111111 Window=0x1BBC0F80 Pos=0,19 Size=1280,701 Spl
|
|||||||
DockNode ID=0x00000004 Parent=0x00000001 SizeRef=342,519 HiddenTabBar=1 Selected=0x36AF052B
|
DockNode ID=0x00000004 Parent=0x00000001 SizeRef=342,519 HiddenTabBar=1 Selected=0x36AF052B
|
||||||
DockNode ID=0x00000002 Parent=0x00000005 SizeRef=1577,701 Split=Y Selected=0xC450F867
|
DockNode ID=0x00000002 Parent=0x00000005 SizeRef=1577,701 Split=Y Selected=0xC450F867
|
||||||
DockNode ID=0x00000007 Parent=0x00000002 SizeRef=606,659 Split=X Selected=0xC450F867
|
DockNode ID=0x00000007 Parent=0x00000002 SizeRef=606,659 Split=X Selected=0xC450F867
|
||||||
DockNode ID=0x00000017 Parent=0x00000007 SizeRef=1208,860 CentralNode=1 HiddenTabBar=1 Selected=0xC450F867
|
DockNode ID=0x00000017 Parent=0x00000007 SizeRef=1208,860 CentralNode=1 Selected=0xC450F867
|
||||||
DockNode ID=0x00000018 Parent=0x00000007 SizeRef=367,860 Split=Y Selected=0x36DC96AB
|
DockNode ID=0x00000018 Parent=0x00000007 SizeRef=367,860 Split=Y Selected=0x36DC96AB
|
||||||
DockNode ID=0x0000001B Parent=0x00000018 SizeRef=367,537 HiddenTabBar=1 Selected=0x36DC96AB
|
DockNode ID=0x0000001B Parent=0x00000018 SizeRef=367,537 HiddenTabBar=1 Selected=0x36DC96AB
|
||||||
DockNode ID=0x0000001C Parent=0x00000018 SizeRef=367,120 HiddenTabBar=1 Selected=0x8CFF897F
|
DockNode ID=0x0000001C Parent=0x00000018 SizeRef=367,120 HiddenTabBar=1 Selected=0x8CFF897F
|
||||||
DockNode ID=0x00000008 Parent=0x00000002 SizeRef=606,497 Split=X Selected=0xEA83D666
|
DockNode ID=0x00000008 Parent=0x00000002 SizeRef=606,497 Split=X Selected=0xEA83D666
|
||||||
DockNode ID=0x00000015 Parent=0x00000008 SizeRef=1283,172 Split=X Selected=0xEA83D666
|
DockNode ID=0x00000015 Parent=0x00000008 SizeRef=1283,172 Split=X Selected=0xEA83D666
|
||||||
DockNode ID=0x00000011 Parent=0x00000015 SizeRef=1206,168 Split=Y Selected=0x9B5D3198
|
DockNode ID=0x00000011 Parent=0x00000015 SizeRef=1206,168 HiddenTabBar=1 Selected=0x9B5D3198
|
||||||
DockNode ID=0x00000013 Parent=0x00000011 SizeRef=1449,273 HiddenTabBar=1 Selected=0xEA83D666
|
DockNode ID=0x00000012 Parent=0x00000015 SizeRef=75,168 Split=X Selected=0x56009A08
|
||||||
DockNode ID=0x00000014 Parent=0x00000011 SizeRef=1449,222 HiddenTabBar=1 Selected=0x9B5D3198
|
DockNode ID=0x00000013 Parent=0x00000012 SizeRef=1207,497 Selected=0xEA83D666
|
||||||
DockNode ID=0x00000012 Parent=0x00000015 SizeRef=75,168 HiddenTabBar=1 Selected=0x56009A08
|
DockNode ID=0x00000014 Parent=0x00000012 SizeRef=74,497 HiddenTabBar=1 Selected=0x56009A08
|
||||||
DockNode ID=0x00000016 Parent=0x00000008 SizeRef=292,172 Split=Y Selected=0x3FC1A724
|
DockNode ID=0x00000016 Parent=0x00000008 SizeRef=292,172 Split=Y Selected=0x3FC1A724
|
||||||
DockNode ID=0x00000019 Parent=0x00000016 SizeRef=314,268 HiddenTabBar=1 Selected=0x3FC1A724
|
DockNode ID=0x00000019 Parent=0x00000016 SizeRef=314,268 HiddenTabBar=1 Selected=0x3FC1A724
|
||||||
DockNode ID=0x0000001A Parent=0x00000016 SizeRef=314,227 HiddenTabBar=1 Selected=0xA873C17F
|
DockNode ID=0x0000001A Parent=0x00000016 SizeRef=314,227 HiddenTabBar=1 Selected=0xA873C17F
|
||||||
|
67
src/build/imgui.ini
Normal file
67
src/build/imgui.ini
Normal file
@ -0,0 +1,67 @@
|
|||||||
|
[Window][WindowOverViewport_11111111]
|
||||||
|
Pos=0,19
|
||||||
|
Size=1920,1158
|
||||||
|
Collapsed=0
|
||||||
|
|
||||||
|
[Window][Debug##Default]
|
||||||
|
Pos=60,60
|
||||||
|
Size=400,400
|
||||||
|
Collapsed=0
|
||||||
|
|
||||||
|
[Window][Performance Info]
|
||||||
|
Pos=165,119
|
||||||
|
Size=198,265
|
||||||
|
Collapsed=0
|
||||||
|
|
||||||
|
[Window][Color Correction]
|
||||||
|
Pos=264,422
|
||||||
|
Size=136,215
|
||||||
|
Collapsed=0
|
||||||
|
|
||||||
|
[Window][Resources]
|
||||||
|
Pos=739,417
|
||||||
|
Size=229,105
|
||||||
|
Collapsed=0
|
||||||
|
|
||||||
|
[Window][Audio Output]
|
||||||
|
Pos=421,336
|
||||||
|
Size=120,180
|
||||||
|
Collapsed=0
|
||||||
|
|
||||||
|
[Window][Lua Globals]
|
||||||
|
Pos=957,363
|
||||||
|
Size=184,48
|
||||||
|
Collapsed=0
|
||||||
|
|
||||||
|
[Window][Scene Tree]
|
||||||
|
Pos=357,113
|
||||||
|
Size=240,180
|
||||||
|
Collapsed=0
|
||||||
|
|
||||||
|
[Window][Inspector]
|
||||||
|
Pos=967,84
|
||||||
|
Size=276,245
|
||||||
|
Collapsed=0
|
||||||
|
|
||||||
|
[Window][Viewport]
|
||||||
|
Pos=81,61
|
||||||
|
Size=216,189
|
||||||
|
Collapsed=0
|
||||||
|
|
||||||
|
[Window][Console]
|
||||||
|
Pos=0,600
|
||||||
|
Size=1920,577
|
||||||
|
Collapsed=0
|
||||||
|
DockId=0x00000002,0
|
||||||
|
|
||||||
|
[Table][0x43152D8E,3]
|
||||||
|
RefScale=13
|
||||||
|
Column 0 Width=120
|
||||||
|
Column 1 Width=90
|
||||||
|
Column 2 Weight=1.0000
|
||||||
|
|
||||||
|
[Docking][Data]
|
||||||
|
DockSpace ID=0x11111111 Window=0x1BBC0F80 Pos=0,19 Size=1920,1158 Split=Y
|
||||||
|
DockNode ID=0x00000001 Parent=0x11111111 SizeRef=1920,579 CentralNode=1
|
||||||
|
DockNode ID=0x00000002 Parent=0x11111111 SizeRef=1920,577 Selected=0xEA83D666
|
||||||
|
|
@ -14,6 +14,7 @@ void AudioPlayerComponent::SetAudio(uint64_t uaid) {
|
|||||||
m_UAID = uaid;
|
m_UAID = uaid;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void AudioPlayerComponent::Play() {
|
void AudioPlayerComponent::Play() {
|
||||||
if (m_UAID == 0) return;
|
if (m_UAID == 0) return;
|
||||||
AudioEngine::Play(m_UAID, loop);
|
AudioEngine::Play(m_UAID, loop);
|
||||||
|
@ -22,6 +22,7 @@ void TilemapComponent::UnpackCoord(uint64_t key, int& x, int& y)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
bool TilemapComponent::HasSelection()
|
bool TilemapComponent::HasSelection()
|
||||||
{
|
{
|
||||||
return hasSelection;
|
return hasSelection;
|
||||||
|
@ -20,14 +20,12 @@
|
|||||||
|
|
||||||
#include "core/utils/EngineConfig.h"
|
#include "core/utils/EngineConfig.h"
|
||||||
|
|
||||||
#include "core/functions/Prefab.h"
|
|
||||||
#include "core/functions/ProjectManager.h"
|
#include "core/functions/ProjectManager.h"
|
||||||
#include "core/functions/SceneSerializer.h"
|
#include "core/functions/SceneSerializer.h"
|
||||||
|
|
||||||
#include "utils/GameObjectsList.h"
|
#include "utils/GameObjectsList.h"
|
||||||
#include "core/utils/Profiler.h"
|
#include "core/utils/Profiler.h"
|
||||||
#include "core/utils/utils.h"
|
#include "core/utils/utils.h"
|
||||||
#include "core/utils/LoadingWindow.h"
|
|
||||||
#include "core/scripts/LuaGlobalBridge.h"
|
#include "core/scripts/LuaGlobalBridge.h"
|
||||||
|
|
||||||
#include "editor/windows/AssetBrowser.h"
|
#include "editor/windows/AssetBrowser.h"
|
||||||
@ -62,18 +60,16 @@
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
#define WIN32_LEAN_AND_MEAN
|
#define WIN32_LEAN_AND_MEAN
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <commdlg.h>
|
|
||||||
#include <openssl/sha.h>
|
#include <openssl/sha.h>
|
||||||
#include <fstream>
|
|
||||||
#include <json.hpp>
|
#include <json.hpp>
|
||||||
using json = nlohmann::json;
|
using json = nlohmann::json;
|
||||||
|
|
||||||
static bool playing = false;
|
static bool playing = false;
|
||||||
static bool lastPlaying = false;
|
bool Engine::running = true;
|
||||||
|
|
||||||
|
|
||||||
static glm::vec2 cameraPos = {0, 0};
|
static glm::vec2 cameraPos = {0, 0};
|
||||||
static float cameraZoom = 1.0f;
|
static float cameraZoom = 1.0f;
|
||||||
static ImVec2 lastMousePos = {};
|
|
||||||
|
|
||||||
static glm::vec2 editorCameraSavedPos = {0.0f, 0.0f};
|
static glm::vec2 editorCameraSavedPos = {0.0f, 0.0f};
|
||||||
static float editorCameraSavedZoom = 1.0f;
|
static float editorCameraSavedZoom = 1.0f;
|
||||||
@ -85,7 +81,14 @@ float g_fps = 0.0f;
|
|||||||
|
|
||||||
static const std::string tempScenePath = "__tmp_scene.yaml";
|
static const std::string tempScenePath = "__tmp_scene.yaml";
|
||||||
|
|
||||||
GLFWwindow *window = nullptr;
|
|
||||||
|
|
||||||
|
static std::shared_ptr<Object> previewObj = nullptr;
|
||||||
|
static std::shared_ptr<Object> previousSelection = nullptr;
|
||||||
|
static uint64_t previewUAID = 0;
|
||||||
|
static AssetType previewType = AssetType::Unknown;
|
||||||
|
|
||||||
|
static GLFWwindow *window = nullptr;
|
||||||
|
|
||||||
Engine::Engine()
|
Engine::Engine()
|
||||||
{
|
{
|
||||||
@ -146,7 +149,7 @@ void DrawProfilerTimelineBars(const ProfileNode &node,
|
|||||||
"%s (%.2f ms)",
|
"%s (%.2f ms)",
|
||||||
node.name.c_str(),
|
node.name.c_str(),
|
||||||
node.visualDurationMs);
|
node.visualDurationMs);
|
||||||
if (fn >= 0 && fn < (int)sizeof(fullBuf))
|
if (fn >= 0 && fn < static_cast<int>(sizeof(fullBuf)))
|
||||||
{
|
{
|
||||||
ImVec2 fullSz = ImGui::CalcTextSize(fullBuf);
|
ImVec2 fullSz = ImGui::CalcTextSize(fullBuf);
|
||||||
if (fullSz.x <= availW)
|
if (fullSz.x <= availW)
|
||||||
@ -357,7 +360,7 @@ void Engine::ShowDebugOverlay(float deltaTime)
|
|||||||
|
|
||||||
// === Performance Window ===
|
// === Performance Window ===
|
||||||
static std::vector<float> fpsHistory;
|
static std::vector<float> fpsHistory;
|
||||||
static const int maxFpsHistory = 100;
|
static constexpr int maxFpsHistory = 100;
|
||||||
static float fpsTimer = 0.0f;
|
static float fpsTimer = 0.0f;
|
||||||
float fps = 1.0f / deltaTime;
|
float fps = 1.0f / deltaTime;
|
||||||
g_fps = fps;
|
g_fps = fps;
|
||||||
@ -483,6 +486,18 @@ void DrawGizmoForObject(const std::shared_ptr<Object> &obj,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Engine::OnWindowClose(GLFWwindow* window)
|
||||||
|
{
|
||||||
|
Logger::LogInfo("Closing");
|
||||||
|
glfwSetWindowShouldClose(window, GLFW_TRUE);
|
||||||
|
running = false;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
void Engine::Init()
|
void Engine::Init()
|
||||||
{
|
{
|
||||||
|
|
||||||
@ -508,6 +523,9 @@ void Engine::Init()
|
|||||||
glewInit();
|
glewInit();
|
||||||
|
|
||||||
glfwSetDropCallback(window, GLFWDropCallback);
|
glfwSetDropCallback(window, GLFWDropCallback);
|
||||||
|
glfwSetWindowCloseCallback(window, OnWindowClose);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
g_engineConfig.LoadFromFile();
|
g_engineConfig.LoadFromFile();
|
||||||
Logger::LogOk("Config Core");
|
Logger::LogOk("Config Core");
|
||||||
@ -549,7 +567,10 @@ void Engine::Init()
|
|||||||
|
|
||||||
Logger::LogOk("Engine Core");
|
Logger::LogOk("Engine Core");
|
||||||
|
|
||||||
ProjectManager::LoadProject("C:/Users/spenc/OneDrive/Desktop", "TestProject");
|
|
||||||
|
|
||||||
|
|
||||||
|
//ProjectManager::LoadProject("C:/Users/spenc/OneDrive/Desktop", "TestProject");
|
||||||
}
|
}
|
||||||
|
|
||||||
core::types::Vec2 ScreenToWorld(const core::types::Vec2 &screenPos, const core::types::Vec2 &viewportSize, const core::types::Vec2 &cameraPos, float zoom)
|
core::types::Vec2 ScreenToWorld(const core::types::Vec2 &screenPos, const core::types::Vec2 &viewportSize, const core::types::Vec2 &cameraPos, float zoom)
|
||||||
@ -632,7 +653,7 @@ void Engine::collectObjects(bool playing, const glm::vec2 &camPos, float camZoom
|
|||||||
void Engine::Run()
|
void Engine::Run()
|
||||||
{
|
{
|
||||||
|
|
||||||
while (!glfwWindowShouldClose(window) && running)
|
while (running)
|
||||||
{
|
{
|
||||||
if (g_engineConfig.settings.profile_editor)
|
if (g_engineConfig.settings.profile_editor)
|
||||||
{
|
{
|
||||||
@ -945,9 +966,10 @@ void Engine::Run()
|
|||||||
}
|
}
|
||||||
|
|
||||||
DrawInspectorUI(selected);
|
DrawInspectorUI(selected);
|
||||||
|
|
||||||
ImGui::Begin("Viewport", nullptr, ImGuiWindowFlags_NoScrollbar | ImGuiWindowFlags_NoScrollWithMouse);
|
ImGui::Begin("Viewport", nullptr, ImGuiWindowFlags_NoScrollbar | ImGuiWindowFlags_NoScrollWithMouse);
|
||||||
ImVec2 size = ImGui::GetContentRegionAvail();
|
ImVec2 size = ImGui::GetContentRegionAvail();
|
||||||
|
ImVec2 windowPos = ImGui::GetWindowPos();
|
||||||
|
|
||||||
|
|
||||||
static bool lastPlaying = false;
|
static bool lastPlaying = false;
|
||||||
if (playing && !lastPlaying)
|
if (playing && !lastPlaying)
|
||||||
@ -988,7 +1010,6 @@ void Engine::Run()
|
|||||||
float zoomFactor = (wheel > 0) ? 1.1f : 1.0f / 1.1f;
|
float zoomFactor = (wheel > 0) ? 1.1f : 1.0f / 1.1f;
|
||||||
|
|
||||||
ImVec2 mousePos = ImGui::GetMousePos();
|
ImVec2 mousePos = ImGui::GetMousePos();
|
||||||
ImVec2 windowPos = ImGui::GetWindowPos();
|
|
||||||
ImVec2 contentMin = ImGui::GetWindowContentRegionMin();
|
ImVec2 contentMin = ImGui::GetWindowContentRegionMin();
|
||||||
|
|
||||||
glm::vec2 relativeMouse = glm::vec2(
|
glm::vec2 relativeMouse = glm::vec2(
|
||||||
@ -1007,7 +1028,10 @@ void Engine::Run()
|
|||||||
}
|
}
|
||||||
|
|
||||||
profiler.BeginEngineSection("Renderer::Resize");
|
profiler.BeginEngineSection("Renderer::Resize");
|
||||||
|
if (size.x > 0 && size.y > 0)
|
||||||
|
{
|
||||||
Renderer::Resize((int) size.x, (int) size.y);
|
Renderer::Resize((int) size.x, (int) size.y);
|
||||||
|
}
|
||||||
profiler.EndEngineSection();
|
profiler.EndEngineSection();
|
||||||
|
|
||||||
profiler.BeginEngineSection("Renderer::Begin");
|
profiler.BeginEngineSection("Renderer::Begin");
|
||||||
@ -1159,8 +1183,8 @@ void Engine::Run()
|
|||||||
core::types::Color color = core::types::Color::Lerp(settings.startColor, settings.endColor, t);
|
core::types::Color color = core::types::Color::Lerp(settings.startColor, settings.endColor, t);
|
||||||
|
|
||||||
core::types::Vec2 pWorld = p.position;
|
core::types::Vec2 pWorld = p.position;
|
||||||
core::types::Vec2 size = core::types::Vec2(p.size, p.size);
|
core::types::Vec2 particleSize = core::types::Vec2(p.size, p.size);
|
||||||
Renderer::BatchQuad(pWorld, size, p.rotation, color, cameraPos, cameraZoom, settings.roundness);
|
Renderer::BatchQuad(pWorld, particleSize, p.rotation, color, cameraPos, cameraZoom, settings.roundness);
|
||||||
}
|
}
|
||||||
|
|
||||||
profiler.EndSection();
|
profiler.EndSection();
|
||||||
@ -1180,11 +1204,11 @@ void Engine::Run()
|
|||||||
GLuint texID = Renderer::GetFinalTexture();
|
GLuint texID = Renderer::GetFinalTexture();
|
||||||
ImGui::Image((ImTextureID)(uintptr_t)texID, size, ImVec2(0, 1), ImVec2(1, 0));
|
ImGui::Image((ImTextureID)(uintptr_t)texID, size, ImVec2(0, 1), ImVec2(1, 0));
|
||||||
|
|
||||||
ImVec2 winPos = ImGui::GetWindowPos();
|
|
||||||
ImVec2 winSize = ImGui::GetWindowSize();
|
ImVec2 winSize = ImGui::GetWindowSize();
|
||||||
ImVec2 mousePos = ImGui::GetMousePos();
|
ImVec2 mousePos = ImGui::GetMousePos();
|
||||||
core::types::Vec2 viewportSize(winSize.x, winSize.y);
|
core::types::Vec2 viewportSize(winSize.x, winSize.y);
|
||||||
core::types::Vec2 screenMousePos(mousePos.x - winPos.x, mousePos.y - winPos.y);
|
core::types::Vec2 screenMousePos(mousePos.x - windowPos.x, mousePos.y - windowPos.y);
|
||||||
|
|
||||||
bool mouseInWindow =
|
bool mouseInWindow =
|
||||||
screenMousePos.x >= 0 && screenMousePos.y >= 0 &&
|
screenMousePos.x >= 0 && screenMousePos.y >= 0 &&
|
||||||
@ -1199,14 +1223,12 @@ void Engine::Run()
|
|||||||
if (light)
|
if (light)
|
||||||
{
|
{
|
||||||
auto *drawList = ImGui::GetWindowDrawList();
|
auto *drawList = ImGui::GetWindowDrawList();
|
||||||
ImVec2 winPos = ImGui::GetWindowPos();
|
|
||||||
ImVec2 winSize = ImGui::GetWindowSize();
|
|
||||||
|
|
||||||
auto worldToScreen = [&](const core::types::Vec2 &w)
|
auto worldToScreen = [&](const core::types::Vec2 &w)
|
||||||
{
|
{
|
||||||
float x = (w.x - cameraPos.x) * cameraZoom + winSize.x * 0.5f;
|
float x = (w.x - cameraPos.x) * cameraZoom + winSize.x * 0.5f;
|
||||||
float y = (w.y - cameraPos.y) * cameraZoom + winSize.y * 0.5f;
|
float y = (w.y - cameraPos.y) * cameraZoom + winSize.y * 0.5f;
|
||||||
return ImVec2(winPos.x + x, winPos.y + y);
|
return ImVec2(windowPos.x + x, windowPos.y + y);
|
||||||
};
|
};
|
||||||
|
|
||||||
core::types::Vec2 lightPos = light->GetOwner()->GetWorldPosition();
|
core::types::Vec2 lightPos = light->GetOwner()->GetWorldPosition();
|
||||||
@ -1222,7 +1244,7 @@ void Engine::Run()
|
|||||||
int(color.b * 255),
|
int(color.b * 255),
|
||||||
100);
|
100);
|
||||||
|
|
||||||
const float thickness = 2.0f;
|
constexpr float thickness = 2.0f;
|
||||||
|
|
||||||
drawList->AddCircle(center, radiusPx, col, 0, thickness);
|
drawList->AddCircle(center, radiusPx, col, 0, thickness);
|
||||||
|
|
||||||
@ -1241,20 +1263,18 @@ void Engine::Run()
|
|||||||
static int dragIndex = -1;
|
static int dragIndex = -1;
|
||||||
|
|
||||||
auto *drawList = ImGui::GetWindowDrawList();
|
auto *drawList = ImGui::GetWindowDrawList();
|
||||||
ImVec2 winPos = ImGui::GetWindowPos();
|
|
||||||
ImVec2 winSize = ImGui::GetWindowSize();
|
|
||||||
ImVec2 mouse = ImGui::GetIO().MousePos;
|
ImVec2 mouse = ImGui::GetIO().MousePos;
|
||||||
|
|
||||||
auto worldToScreen = [&](const core::types::Vec2 &w)
|
auto worldToScreen = [&](const core::types::Vec2 &w)
|
||||||
{
|
{
|
||||||
float x = (w.x - cameraPos.x) * cameraZoom + winSize.x * 0.5f;
|
float x = (w.x - cameraPos.x) * cameraZoom + winSize.x * 0.5f;
|
||||||
float y = (w.y - cameraPos.y) * cameraZoom + winSize.y * 0.5f;
|
float y = (w.y - cameraPos.y) * cameraZoom + winSize.y * 0.5f;
|
||||||
return ImVec2(winPos.x + x, winPos.y + y);
|
return ImVec2(windowPos.x + x, windowPos.y + y);
|
||||||
};
|
};
|
||||||
auto screenToWorld = [&](const ImVec2 &s)
|
auto screenToWorld = [&](const ImVec2 &s)
|
||||||
{
|
{
|
||||||
float localX = s.x - winPos.x - winSize.x * 0.5f;
|
float localX = s.x - windowPos.x - winSize.x * 0.5f;
|
||||||
float localY = s.y - winPos.y - winSize.y * 0.5f;
|
float localY = s.y - windowPos.y - winSize.y * 0.5f;
|
||||||
return core::types::Vec2(localX / cameraZoom + cameraPos.x,
|
return core::types::Vec2(localX / cameraZoom + cameraPos.x,
|
||||||
localY / cameraZoom + cameraPos.y);
|
localY / cameraZoom + cameraPos.y);
|
||||||
};
|
};
|
||||||
@ -1337,11 +1357,8 @@ void Engine::Run()
|
|||||||
if (const auto *imageAsset = dynamic_cast<const ImageAssetInfo *>(asset))
|
if (const auto *imageAsset = dynamic_cast<const ImageAssetInfo *>(asset))
|
||||||
{
|
{
|
||||||
auto *drawList = ImGui::GetWindowDrawList();
|
auto *drawList = ImGui::GetWindowDrawList();
|
||||||
const auto texSize = imageAsset->size;
|
|
||||||
int maxCols = static_cast<int>(texSize.x / tileSize.x);
|
|
||||||
int maxRows = static_cast<int>(texSize.y / tileSize.y);
|
|
||||||
|
|
||||||
core::types::Vec2 screenMouse(mousePos.x - winPos.x, mousePos.y - winPos.y);
|
core::types::Vec2 screenMouse(mousePos.x - windowPos.x, mousePos.y - windowPos.y);
|
||||||
core::types::Vec2 worldMouse = ScreenToWorld(screenMouse, {winSize.x, winSize.y}, cameraPos, cameraZoom);
|
core::types::Vec2 worldMouse = ScreenToWorld(screenMouse, {winSize.x, winSize.y}, cameraPos, cameraZoom);
|
||||||
|
|
||||||
int centerCol = static_cast<int>(worldMouse.x / tileSize.x);
|
int centerCol = static_cast<int>(worldMouse.x / tileSize.x);
|
||||||
@ -1353,7 +1370,7 @@ void Engine::Run()
|
|||||||
int minRow = centerRow - radius;
|
int minRow = centerRow - radius;
|
||||||
int maxRow = centerRow + radius;
|
int maxRow = centerRow + radius;
|
||||||
|
|
||||||
core::types::Vec2 screenCenter = {winPos.x + winSize.x * 0.5f, winPos.y + winSize.y * 0.5f};
|
core::types::Vec2 screenCenter = {windowPos.x + winSize.x * 0.5f, windowPos.y + winSize.y * 0.5f};
|
||||||
float maxDist = static_cast<float>(radius) * tileSize.x * cameraZoom;
|
float maxDist = static_cast<float>(radius) * tileSize.x * cameraZoom;
|
||||||
|
|
||||||
for (int y = minRow; y <= maxRow; ++y)
|
for (int y = minRow; y <= maxRow; ++y)
|
||||||
@ -1441,10 +1458,6 @@ void Engine::Run()
|
|||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
static std::shared_ptr<Object> previewObj = nullptr;
|
|
||||||
static std::shared_ptr<Object> previousSelection = nullptr;
|
|
||||||
static uint64_t previewUAID = 0;
|
|
||||||
static AssetType previewType = AssetType::Unknown;
|
|
||||||
|
|
||||||
const ImGuiPayload *payload = ImGui::GetDragDropPayload();
|
const ImGuiPayload *payload = ImGui::GetDragDropPayload();
|
||||||
bool dragging = payload && payload->DataSize == sizeof(uint64_t);
|
bool dragging = payload && payload->DataSize == sizeof(uint64_t);
|
||||||
@ -1457,8 +1470,6 @@ void Engine::Run()
|
|||||||
uint64_t uaid = *(const uint64_t *)payload->Data;
|
uint64_t uaid = *(const uint64_t *)payload->Data;
|
||||||
const auto *asset = AssetManager::GetAssetByID(uaid);
|
const auto *asset = AssetManager::GetAssetByID(uaid);
|
||||||
|
|
||||||
if (!asset)
|
|
||||||
return;
|
|
||||||
|
|
||||||
// --- Create Preview ---
|
// --- Create Preview ---
|
||||||
if (!previewObj || previewUAID != uaid)
|
if (!previewObj || previewUAID != uaid)
|
||||||
@ -1477,14 +1488,12 @@ void Engine::Run()
|
|||||||
if (!prefabInfo)
|
if (!prefabInfo)
|
||||||
{
|
{
|
||||||
Logger::LogError("[AssetManager] Asset is not a PrefabAssetInfo");
|
Logger::LogError("[AssetManager] Asset is not a PrefabAssetInfo");
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
previewObj = prefabInfo->Instantiate();
|
previewObj = prefabInfo->Instantiate();
|
||||||
if (!previewObj)
|
if (!previewObj)
|
||||||
{
|
{
|
||||||
Logger::LogError("[Engine] Failed to instantiate prefab.");
|
Logger::LogError("[Engine] Failed to instantiate prefab.");
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
previewObj->SetName(prefabInfo->prefabName);
|
previewObj->SetName(prefabInfo->prefabName);
|
||||||
|
@ -13,6 +13,7 @@ class ParticleComponent;
|
|||||||
class AnimationComponent;
|
class AnimationComponent;
|
||||||
class TilemapComponent;
|
class TilemapComponent;
|
||||||
class PathFollowerComponent;
|
class PathFollowerComponent;
|
||||||
|
class GLFWwindow;
|
||||||
|
|
||||||
class Engine
|
class Engine
|
||||||
{
|
{
|
||||||
@ -20,6 +21,7 @@ public:
|
|||||||
Engine();
|
Engine();
|
||||||
~Engine();
|
~Engine();
|
||||||
void Run();
|
void Run();
|
||||||
|
static void OnWindowClose(GLFWwindow* window);
|
||||||
std::shared_ptr<Object> GetObjectByTag(const std::string &tag);
|
std::shared_ptr<Object> GetObjectByTag(const std::string &tag);
|
||||||
|
|
||||||
void Shutdown();
|
void Shutdown();
|
||||||
@ -50,7 +52,7 @@ private:
|
|||||||
std::vector<ParticleComponent*> m_particleUpdates;
|
std::vector<ParticleComponent*> m_particleUpdates;
|
||||||
std::vector<PathFollowerComponent*> m_PathUpdates;
|
std::vector<PathFollowerComponent*> m_PathUpdates;
|
||||||
|
|
||||||
bool running = true;
|
static bool running;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -417,6 +417,7 @@ void Renderer::Resize(int w, int h)
|
|||||||
width = w;
|
width = w;
|
||||||
height = h;
|
height = h;
|
||||||
|
|
||||||
|
|
||||||
// Resize all textures
|
// Resize all textures
|
||||||
glBindTexture(GL_TEXTURE_2D, textureColorBuffer);
|
glBindTexture(GL_TEXTURE_2D, textureColorBuffer);
|
||||||
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, width, height, 0, GL_RGBA, GL_UNSIGNED_BYTE, nullptr);
|
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, width, height, 0, GL_RGBA, GL_UNSIGNED_BYTE, nullptr);
|
||||||
|
@ -4,12 +4,15 @@
|
|||||||
#include "../../core/utils/EngineConfig.h"
|
#include "../../core/utils/EngineConfig.h"
|
||||||
#include "../../core/utils/Logging.h"
|
#include "../../core/utils/Logging.h"
|
||||||
#include "../../Engine.h"
|
#include "../../Engine.h"
|
||||||
|
#include "../../core/utils/FileDialog.h"
|
||||||
#include "SceneSerializer.h"
|
#include "SceneSerializer.h"
|
||||||
|
|
||||||
#include <yaml-cpp/yaml.h>
|
#include <yaml-cpp/yaml.h>
|
||||||
#include <filesystem>
|
#include <filesystem>
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include <chrono>
|
#include <chrono>
|
||||||
|
#include <imgui.h>
|
||||||
|
#include <string>
|
||||||
|
|
||||||
namespace fs = std::filesystem;
|
namespace fs = std::filesystem;
|
||||||
|
|
||||||
@ -17,6 +20,81 @@ std::string ProjectManager::s_currentProjectPath;
|
|||||||
std::string ProjectManager::s_currentProjectName;
|
std::string ProjectManager::s_currentProjectName;
|
||||||
std::string ProjectManager::s_defaultScene;
|
std::string ProjectManager::s_defaultScene;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// Call this to open the popup:
|
||||||
|
// ImGui::OpenPopup("Create New Project");
|
||||||
|
// ShowCreateProjectPopup(&open);
|
||||||
|
void ProjectManager::ShowCreateProjectPopup(bool* pOpen)
|
||||||
|
{
|
||||||
|
// Keep static buffers across frames
|
||||||
|
static char nameBuf[128] = "";
|
||||||
|
static char pathBuf[512] = "";
|
||||||
|
|
||||||
|
// Center-popup and set a decent default size
|
||||||
|
ImGui::SetNextWindowSize({500, 0}, ImGuiCond_Appearing);
|
||||||
|
if (!ImGui::BeginPopupModal("Create New Project", pOpen, ImGuiWindowFlags_NoResize))
|
||||||
|
return;
|
||||||
|
|
||||||
|
// Title
|
||||||
|
ImGui::TextUnformatted("Enter details for your new project:");
|
||||||
|
ImGui::Separator();
|
||||||
|
ImGui::Spacing();
|
||||||
|
|
||||||
|
// Project Name field
|
||||||
|
ImGui::InputText("##proj_name", nameBuf, sizeof(nameBuf));
|
||||||
|
ImGui::SameLine();
|
||||||
|
ImGui::Text("Project Name");
|
||||||
|
|
||||||
|
// Project Path field with Browse button
|
||||||
|
ImGui::PushItemWidth(-100); // make path input use remaining width
|
||||||
|
ImGui::InputText("##proj_path", pathBuf, sizeof(pathBuf));
|
||||||
|
ImGui::PopItemWidth();
|
||||||
|
ImGui::SameLine();
|
||||||
|
if (ImGui::Button("Browse...", {80, 0}))
|
||||||
|
{
|
||||||
|
std::string chosen = CreateFileDialog(FileDialogType::Project);
|
||||||
|
if (!chosen.empty())
|
||||||
|
strncpy(pathBuf, chosen.c_str(), sizeof(pathBuf));
|
||||||
|
}
|
||||||
|
ImGui::SameLine();
|
||||||
|
ImGui::Text("Project Folder");
|
||||||
|
|
||||||
|
ImGui::Spacing();
|
||||||
|
|
||||||
|
// Compute and show the final .cproj path preview
|
||||||
|
std::filesystem::path preview = std::filesystem::path(pathBuf) / (std::string(nameBuf) + ".cproj");
|
||||||
|
ImGui::Text("Project file will be created at:");
|
||||||
|
ImGui::TextColored(ImVec4(0.4f, 0.7f, 1.0f, 1.0f), "%s", preview.string().c_str());
|
||||||
|
|
||||||
|
ImGui::Spacing();
|
||||||
|
ImGui::Separator();
|
||||||
|
|
||||||
|
// Buttons: Cancel and Create
|
||||||
|
float width = ImGui::GetContentRegionAvail().x;
|
||||||
|
ImGui::Dummy({0,0}); // for a little vertical padding
|
||||||
|
if (ImGui::Button("Cancel", {width * 0.45f, 0}))
|
||||||
|
{
|
||||||
|
ImGui::CloseCurrentPopup();
|
||||||
|
}
|
||||||
|
ImGui::SameLine();
|
||||||
|
if (ImGui::Button("Create Project", {width * 0.45f, 0}))
|
||||||
|
{
|
||||||
|
CreateProject(nameBuf, pathBuf);
|
||||||
|
ImGui::CloseCurrentPopup();
|
||||||
|
|
||||||
|
// Clear buffers for next time
|
||||||
|
nameBuf[0] = '\0';
|
||||||
|
pathBuf[0] = '\0';
|
||||||
|
}
|
||||||
|
|
||||||
|
ImGui::EndPopup();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
bool CreateDirectories(const fs::path &baseDir)
|
bool CreateDirectories(const fs::path &baseDir)
|
||||||
{
|
{
|
||||||
static const std::vector<std::string> subdirs = {
|
static const std::vector<std::string> subdirs = {
|
||||||
@ -136,6 +214,73 @@ bool ProjectManager::LoadProject(const std::string &projectPath,
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool ProjectManager::CreateProject(const std::string &projectPath,
|
||||||
|
const std::string &projectName)
|
||||||
|
{
|
||||||
|
fs::path baseDir = fs::path(projectPath) / projectName;
|
||||||
|
fs::path projFile = baseDir / (projectName + ".cproj");
|
||||||
|
|
||||||
|
std::error_code ec;
|
||||||
|
if (!fs::create_directories(baseDir, ec) && ec)
|
||||||
|
{
|
||||||
|
Logger::LogError("Failed to create project directory '%s': %s",
|
||||||
|
projectPath.c_str(), ec.message().c_str());
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Set current project path before scene creation
|
||||||
|
s_currentProjectPath = baseDir.string();
|
||||||
|
s_currentProjectName = projectName;
|
||||||
|
|
||||||
|
// Create initial scene
|
||||||
|
fs::path scenePath = baseDir / "Assets" / "Scenes" / "main.cene";
|
||||||
|
|
||||||
|
SceneLoader::SaveScene(scenePath.string());
|
||||||
|
|
||||||
|
s_defaultScene = scenePath.string();
|
||||||
|
|
||||||
|
// Write .cproj YAML
|
||||||
|
YAML::Emitter out;
|
||||||
|
out << YAML::BeginMap;
|
||||||
|
out << YAML::Key << "Name" << YAML::Value << projectName;
|
||||||
|
out << YAML::Key << "EngineVersion" << YAML::Value << g_engineConfig.version;
|
||||||
|
fs::path relPath = fs::relative(scenePath, baseDir);
|
||||||
|
out << YAML::Key << "s_defaultScene" << YAML::Value << ("res://" + relPath.generic_string());
|
||||||
|
|
||||||
|
auto now = std::chrono::system_clock::now();
|
||||||
|
auto t = std::chrono::system_clock::to_time_t(now);
|
||||||
|
std::tm tm{};
|
||||||
|
#if defined(_WIN32)
|
||||||
|
gmtime_s(&tm, &t);
|
||||||
|
#else
|
||||||
|
gmtime_r(&t, &tm);
|
||||||
|
#endif
|
||||||
|
char buf[32];
|
||||||
|
std::strftime(buf, sizeof(buf), "%Y-%m-%dT%H:%M:%SZ", &tm);
|
||||||
|
out << YAML::Key << "CreatedDate" << YAML::Value << buf;
|
||||||
|
out << YAML::EndMap;
|
||||||
|
|
||||||
|
std::ofstream fout(projFile);
|
||||||
|
if (!fout.is_open())
|
||||||
|
{
|
||||||
|
Logger::LogError("Could not open project file for writing: %s",
|
||||||
|
projFile.string().c_str());
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
fout << out.c_str();
|
||||||
|
fout.close();
|
||||||
|
|
||||||
|
Logger::LogOk("Created project '%s' at '%s'",
|
||||||
|
projectName.c_str(), projectPath.c_str());
|
||||||
|
|
||||||
|
CreateDirectories(baseDir);
|
||||||
|
|
||||||
|
SceneLoader::LoadScene(scenePath.string());
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
bool ProjectManager::SaveProject(const std::string &projectPath,
|
bool ProjectManager::SaveProject(const std::string &projectPath,
|
||||||
const std::string &projectName)
|
const std::string &projectName)
|
||||||
{
|
{
|
||||||
@ -150,6 +295,8 @@ bool ProjectManager::SaveProject(const std::string &projectPath,
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
YAML::Emitter out;
|
YAML::Emitter out;
|
||||||
out << YAML::BeginMap;
|
out << YAML::BeginMap;
|
||||||
out << YAML::Key << "Name" << YAML::Value << projectName;
|
out << YAML::Key << "Name" << YAML::Value << projectName;
|
||||||
@ -207,4 +354,5 @@ const std::string &ProjectManager::GetCurrentAssetsPath()
|
|||||||
fs::path p = fs::path(s_currentProjectPath) / s_currentProjectName / "Assets";
|
fs::path p = fs::path(s_currentProjectPath) / s_currentProjectName / "Assets";
|
||||||
assetsPath = p.string();
|
assetsPath = p.string();
|
||||||
return assetsPath;
|
return assetsPath;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -20,6 +20,14 @@ public:
|
|||||||
static bool SaveProject(const std::string& projectPath,
|
static bool SaveProject(const std::string& projectPath,
|
||||||
const std::string& projectName);
|
const std::string& projectName);
|
||||||
|
|
||||||
|
// Creates a project at the path with the name
|
||||||
|
// makes a .cproj file at the path in the name folder
|
||||||
|
static bool CreateProject(const std::string& projectPath,
|
||||||
|
const std::string& projectName);
|
||||||
|
|
||||||
|
void ShowCreateProjectPopup(bool* pOpen);
|
||||||
|
|
||||||
|
|
||||||
static const std::string& GetCurrentProjectPath();
|
static const std::string& GetCurrentProjectPath();
|
||||||
static const std::string& GetCurrentProjectName();
|
static const std::string& GetCurrentProjectName();
|
||||||
static const std::string& GetCurrentAssetsPath();
|
static const std::string& GetCurrentAssetsPath();
|
||||||
|
@ -63,10 +63,11 @@ bool SignalHandler::IsInterrupted() {
|
|||||||
|
|
||||||
void SignalHandler::HandleSignal(int signal) {
|
void SignalHandler::HandleSignal(int signal) {
|
||||||
if (signal == SIGINT) {
|
if (signal == SIGINT) {
|
||||||
|
|
||||||
std::cout << "\n[Engine] Shutting down." << std::endl;
|
std::cout << "\n[Engine] Shutting down." << std::endl;
|
||||||
if (engine)
|
//if (engine)
|
||||||
engine->Stop();
|
// engine->Stop();
|
||||||
engine->Shutdown();
|
// engine->Shutdown();
|
||||||
|
|
||||||
interrupted = true;
|
interrupted = true;
|
||||||
}
|
}
|
||||||
|
@ -22,6 +22,7 @@ static std::unordered_map<FileDialogType, const char*> filters = {
|
|||||||
{ FileDialogType::Shaders, "Shader Files\0*.glsl;*.vert;*.frag;*.hlsl\0All Files\0*.*\0" },
|
{ FileDialogType::Shaders, "Shader Files\0*.glsl;*.vert;*.frag;*.hlsl\0All Files\0*.*\0" },
|
||||||
{ FileDialogType::Fonts, "Font Files\0*.ttf;*.otf;*.fnt\0All Files\0*.*\0" },
|
{ FileDialogType::Fonts, "Font Files\0*.ttf;*.otf;*.fnt\0All Files\0*.*\0" },
|
||||||
{ FileDialogType::Models, "3D Models\0*.obj;*.fbx;*.gltf;*.dae\0All Files\0*.*\0" },
|
{ FileDialogType::Models, "3D Models\0*.obj;*.fbx;*.gltf;*.dae\0All Files\0*.*\0" },
|
||||||
|
{ FileDialogType::Project, "Project File\0*.cproj\0All Files\0*.*\0" },
|
||||||
{ FileDialogType::All, "All Files\0*.*\0" }
|
{ FileDialogType::All, "All Files\0*.*\0" }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -13,6 +13,7 @@ enum class FileDialogType {
|
|||||||
Shaders, // .vert, .frag, .glsl
|
Shaders, // .vert, .frag, .glsl
|
||||||
Fonts, // .ttf, .otf
|
Fonts, // .ttf, .otf
|
||||||
Models, // .obj, .fbx, .gltf, etc.
|
Models, // .obj, .fbx, .gltf, etc.
|
||||||
|
Project,
|
||||||
All
|
All
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user