Merge branch 'Develope' into Effect
This commit is contained in:
@@ -25,3 +25,6 @@ xcopy /y .\Engine\ThirdPartyLib\DirectXTK\DirectXTK.pdb .\Engine\Default\x
|
||||
|
||||
xcopy /y .\Engine\ThirdPartyLib\FX11\Effects11d.pdb .\Engine\Default\x64\Debug\
|
||||
xcopy /y .\Engine\ThirdPartyLib\FX11\Effects11.pdb .\Engine\Default\x64\Release\
|
||||
|
||||
xcopy /y .\Engine\ThirdPartyLib\PhysX\PhysX_debug\*.pdb .\Engine\Default\x64\Debug\
|
||||
xcopy /y .\Engine\ThirdPartyLib\PhysX\PhysX_Release\*.pdb .\Engine\Default\x64\Release\
|
||||
|
||||
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -142,7 +142,7 @@ PS_OUT PS_Sptire_Sheet(PS_IN In)
|
||||
|
||||
Color = Texture;
|
||||
|
||||
if (Color.r <= 0.f)
|
||||
if (Color.r <= 0.4f)
|
||||
discard;
|
||||
|
||||
Out.vColor = Color;
|
||||
|
||||
Binary file not shown.
Binary file not shown.
|
Before Width: | Height: | Size: 228 KiB |
@@ -151,13 +151,21 @@
|
||||
<ItemGroup>
|
||||
<ClInclude Include="..\Public\Body.h" />
|
||||
<ClInclude Include="..\public\Active_Icon.h" />
|
||||
<ClInclude Include="..\public\GamePlay_Canvas.h" />
|
||||
<ClInclude Include="..\Public\DebugCamera.h" />
|
||||
<ClInclude Include="..\Public\Dummy_PhysXBox.h" />
|
||||
<ClInclude Include="..\Public\Dummy_PhysXMesh.h">
|
||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</ExcludedFromBuild>
|
||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</ExcludedFromBuild>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Effect_Editor.h" />
|
||||
<ClInclude Include="..\Public\EditEffect.h" />
|
||||
<ClInclude Include="..\public\Level_MapViewer.h" />
|
||||
<ClInclude Include="..\Public\LoadingWidget.h" />
|
||||
<ClInclude Include="..\public\MapObject.h" />
|
||||
<ClInclude Include="..\public\MapObject_Manager.h" />
|
||||
<ClInclude Include="..\public\Terrain.h" />
|
||||
<ClInclude Include="..\Public\Level_PhysXLab.h" />
|
||||
<ClInclude Include="..\Public\TestEffect.h" />
|
||||
<ClInclude Include="..\Public\EffectObject.h" />
|
||||
<ClInclude Include="..\Public\DummyRect.h" />
|
||||
@@ -167,11 +175,15 @@
|
||||
<ClInclude Include="..\Public\Editor_Define.h" />
|
||||
<ClInclude Include="..\Public\Editor_Macro.h" />
|
||||
<ClInclude Include="..\Public\Editor_Struct.h" />
|
||||
<ClInclude Include="..\Public\Hair.h" />
|
||||
<ClInclude Include="..\Public\Level_EffectViewer.h" />
|
||||
<ClInclude Include="..\public\LodingWidget1.h" />
|
||||
<ClInclude Include="..\public\IMGUIUI.h" />
|
||||
<ClInclude Include="..\public\LoadingWidget_Flame.h" />
|
||||
<ClInclude Include="..\public\Loading_Panel.h" />
|
||||
<ClInclude Include="..\public\MiniMap_Panel.h" />
|
||||
<ClInclude Include="..\public\MiniMap_TrimBorder.h" />
|
||||
<ClInclude Include="..\public\Mission.h" />
|
||||
<ClInclude Include="..\Public\Head.h" />
|
||||
<ClInclude Include="..\public\Mission_Panel.h" />
|
||||
<ClInclude Include="..\Public\Level_Loading.h" />
|
||||
<ClInclude Include="..\Public\Level_Logo.h" />
|
||||
<ClInclude Include="..\public\Level_UI.h" />
|
||||
@@ -184,7 +196,9 @@
|
||||
<ClInclude Include="..\public\Mission_Icon.h" />
|
||||
<ClInclude Include="..\public\Mission_Key.h" />
|
||||
<ClInclude Include="..\public\Mission_KeyHold.h" />
|
||||
<ClInclude Include="..\Public\Monster.h" />
|
||||
<ClInclude Include="..\public\Mouse_Cursor.h" />
|
||||
<ClInclude Include="..\Public\RootModelPart.h" />
|
||||
<ClInclude Include="Editor.h" />
|
||||
<ClInclude Include="framework.h" />
|
||||
<ClInclude Include="Resource.h" />
|
||||
@@ -193,25 +207,37 @@
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\Private\Body.cpp" />
|
||||
<ClCompile Include="..\private\Active_Icon.cpp" />
|
||||
<ClCompile Include="..\private\GamePlay_Canvas.cpp" />
|
||||
<ClCompile Include="..\Private\DebugCamera.cpp" />
|
||||
<ClCompile Include="..\Private\Dummy_PhysXBox.cpp" />
|
||||
<ClCompile Include="..\Private\Dummy_PhysXMesh.cpp">
|
||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</ExcludedFromBuild>
|
||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Effect_Editor.cpp" />
|
||||
<ClCompile Include="..\Private\EditEffect.cpp" />
|
||||
<ClCompile Include="..\private\Level_MapViewer.cpp" />
|
||||
<ClCompile Include="..\Private\LoadingWidget.cpp" />
|
||||
<ClCompile Include="..\private\MapObject.cpp" />
|
||||
<ClCompile Include="..\private\MapObject_Manager.cpp" />
|
||||
<ClCompile Include="..\private\Terrain.cpp" />
|
||||
<ClCompile Include="..\Private\Level_PhysXLab.cpp" />
|
||||
<ClCompile Include="..\Private\TestEffect.cpp" />
|
||||
<ClCompile Include="..\Private\EffectObject.cpp" />
|
||||
<ClCompile Include="..\Private\DummyRect.cpp" />
|
||||
<ClCompile Include="..\Private\Dummy_Cube.cpp" />
|
||||
<ClCompile Include="..\Private\Dummy_Goblin.cpp" />
|
||||
<ClCompile Include="..\Private\Hair.cpp" />
|
||||
<ClCompile Include="..\Private\Loader.cpp" />
|
||||
<ClCompile Include="..\Private\Level_EffectViewer.cpp" />
|
||||
<ClCompile Include="..\private\LodingWidget1.cpp" />
|
||||
<ClCompile Include="..\private\IMGUIUI.cpp" />
|
||||
<ClCompile Include="..\private\LoadingWidget_Flame.cpp" />
|
||||
<ClCompile Include="..\private\Loading_Panel.cpp" />
|
||||
<ClCompile Include="..\private\MiniMap_Panel.cpp" />
|
||||
<ClCompile Include="..\private\MiniMap_TrimBorder.cpp" />
|
||||
<ClCompile Include="..\private\Mission.cpp" />
|
||||
<ClCompile Include="..\Private\Dummy_Goblin_Head.cpp" />
|
||||
<ClCompile Include="..\Private\Head.cpp" />
|
||||
<ClCompile Include="..\private\Mission_Panel.cpp" />
|
||||
<ClCompile Include="..\Private\Level_Loading.cpp" />
|
||||
<ClCompile Include="..\Private\Level_Logo.cpp" />
|
||||
<ClCompile Include="..\private\Level_UI.cpp" />
|
||||
@@ -223,11 +249,13 @@
|
||||
<ClCompile Include="..\private\Mission_Icon.cpp" />
|
||||
<ClCompile Include="..\private\Mission_Key.cpp" />
|
||||
<ClCompile Include="..\private\Mission_KeyHold.cpp" />
|
||||
<ClCompile Include="..\Private\Monster.cpp" />
|
||||
<ClCompile Include="..\private\Mouse_Cursor.cpp" />
|
||||
<ClCompile Include="..\Private\pch.cpp">
|
||||
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Create</PrecompiledHeader>
|
||||
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Create</PrecompiledHeader>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\RootModelPart.cpp" />
|
||||
<ClCompile Include="Editor.cpp" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
|
||||
@@ -64,9 +64,6 @@
|
||||
<Filter Include="50.UI">
|
||||
<UniqueIdentifier>{627570ac-7129-4888-bdd1-467149dbcf35}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="50.UI\Mission">
|
||||
<UniqueIdentifier>{b652ee5a-69ca-4c85-8c6c-def398a4dd23}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="50.UI\Mouse_Cursor">
|
||||
<UniqueIdentifier>{b5d188ff-5925-40bd-8da4-2ed00c89f730}</UniqueIdentifier>
|
||||
</Filter>
|
||||
@@ -106,42 +103,69 @@
|
||||
<Filter Include="02.GameObjects\Layer_Effect\Effect_Editor">
|
||||
<UniqueIdentifier>{5b31b993-b137-42d2-b737-000aeb27a675}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="50.UI\LodingWidget1">
|
||||
<UniqueIdentifier>{167182ec-ed5f-46fc-9c27-a82e327fa1ac}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="50.UI\Mission\Mission_Key">
|
||||
<UniqueIdentifier>{887de1c6-ada2-4dc8-be5c-bcef4213e3b6}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="50.UI\Mission\Mission_KeyHold">
|
||||
<UniqueIdentifier>{3804137e-7af7-40db-b729-8afa81035b35}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="50.UI\Mission\MissionBanner_Key">
|
||||
<UniqueIdentifier>{f897068c-184a-4bb2-a4fb-e74ec1877b02}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="50.UI\Mission\MissionBanner_Border">
|
||||
<UniqueIdentifier>{d1c99bb3-369e-49b9-93f9-6b8536579cb5}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="50.UI\Mission\Mission_Icon">
|
||||
<UniqueIdentifier>{5da34159-e4a2-4b4b-a7a0-a65966579e2f}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="50.UI\MiniMap">
|
||||
<UniqueIdentifier>{61a808c7-2765-42d9-8b4c-b4bed93b013e}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="50.UI\MiniMap\MiniMap_TrimBorder">
|
||||
<UniqueIdentifier>{999ed728-0bc5-425c-b861-1422c77ccbe6}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="50.UI\IMGUIUI">
|
||||
<UniqueIdentifier>{f60f1948-8c11-4796-843a-8c38f10043e3}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="50.UI\Mission\Active_Icon">
|
||||
<Filter Include="50.UI\GamePlay_Canvas">
|
||||
<UniqueIdentifier>{9900c91e-574d-4d80-b8bc-142c971fb7b4}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="50.UI\GamePlay_Canvas\Mission_Panel">
|
||||
<UniqueIdentifier>{b652ee5a-69ca-4c85-8c6c-def398a4dd23}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="50.UI\GamePlay_Canvas\Mission_Panel\Mission_Key">
|
||||
<UniqueIdentifier>{887de1c6-ada2-4dc8-be5c-bcef4213e3b6}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="50.UI\GamePlay_Canvas\Mission_Panel\Mission_KeyHold">
|
||||
<UniqueIdentifier>{3804137e-7af7-40db-b729-8afa81035b35}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="50.UI\GamePlay_Canvas\Mission_Panel\MissionBanner_Key">
|
||||
<UniqueIdentifier>{f897068c-184a-4bb2-a4fb-e74ec1877b02}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="50.UI\GamePlay_Canvas\Mission_Panel\MissionBanner_Border">
|
||||
<UniqueIdentifier>{d1c99bb3-369e-49b9-93f9-6b8536579cb5}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="50.UI\GamePlay_Canvas\Mission_Panel\Mission_Icon">
|
||||
<UniqueIdentifier>{5da34159-e4a2-4b4b-a7a0-a65966579e2f}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="50.UI\GamePlay_Canvas\Mission_Panel\Active_Icon">
|
||||
<UniqueIdentifier>{977fe4d3-c3b5-413c-80fe-777ece19453e}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="50.UI\GamePlay_Canvas\MiniMap_Panel">
|
||||
<UniqueIdentifier>{61a808c7-2765-42d9-8b4c-b4bed93b013e}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="50.UI\GamePlay_Canvas\MiniMap_Panel\MiniMap_TrimBorder">
|
||||
<UniqueIdentifier>{999ed728-0bc5-425c-b861-1422c77ccbe6}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="50.UI\GamePlay_Canvas\Loding_Panel">
|
||||
<UniqueIdentifier>{f21ccde9-97d1-4700-af94-2e5cf21a72c4}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="50.UI\GamePlay_Canvas\Loding_Panel\LoadingWidget">
|
||||
<UniqueIdentifier>{167182ec-ed5f-46fc-9c27-a82e327fa1ac}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Terrain">
|
||||
<UniqueIdentifier>{44a3ddc2-3993-48d6-840c-3da09daeab70}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Env\Manger">
|
||||
<UniqueIdentifier>{584466e9-fe1a-4a7d-a4ba-54d62ee1a7c1}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="01.Level\60.PhysXLab">
|
||||
<UniqueIdentifier>{943a760b-2861-45b7-87b8-462e1309c172}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\ModelParts\RootModelPart">
|
||||
<UniqueIdentifier>{a9a39942-3c35-4932-b845-e8d1787f3ec3}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Monster">
|
||||
<UniqueIdentifier>{a2944f33-1db0-480a-b793-7ec7f81e8116}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="50.UI\GamePlay_Canvas\Loding_Panel\LoadingWidget_Flame">
|
||||
<UniqueIdentifier>{c347da03-98f1-4095-a4e4-2c840c308916}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Dummys\PhysXBox">
|
||||
<UniqueIdentifier>{c7e7d3c7-fd26-4035-88b4-11233459559c}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Dummys\PhysXMesh">
|
||||
<UniqueIdentifier>{15a9dfe7-f3f7-4906-8bd4-91734f4ddc92}</UniqueIdentifier>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="Editor.h">
|
||||
@@ -186,8 +210,8 @@
|
||||
<ClInclude Include="..\public\Level_UI.h">
|
||||
<Filter>01.Level\50.UIViewer</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\public\Mission.h">
|
||||
<Filter>50.UI\Mission</Filter>
|
||||
<ClInclude Include="..\public\Mission_Panel.h">
|
||||
<Filter>50.UI\GamePlay_Canvas\Mission_Panel</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\public\Mouse_Cursor.h">
|
||||
<Filter>50.UI\Mouse_Cursor</Filter>
|
||||
@@ -207,11 +231,20 @@
|
||||
<ClInclude Include="..\Public\Body.h">
|
||||
<Filter>02.GameObjects\ModelParts\Body</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Head.h">
|
||||
<Filter>02.GameObjects\ModelParts\Head</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Hair.h">
|
||||
<Filter>02.GameObjects\ModelParts\Hair</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\ModelParts.h">
|
||||
<Filter>02.GameObjects\ModelParts</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Head.h">
|
||||
<Filter>02.GameObjects\ModelParts\Head</Filter>
|
||||
<ClInclude Include="..\Public\RootModelPart.h">
|
||||
<Filter>02.GameObjects\ModelParts\RootModelPart</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Monster.h">
|
||||
<Filter>02.GameObjects\Monster</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Level_EffectViewer.h">
|
||||
<Filter>01.Level\40.EffectViewer</Filter>
|
||||
@@ -228,29 +261,44 @@
|
||||
<ClInclude Include="..\Public\Effect_Editor.h">
|
||||
<Filter>02.GameObjects\Layer_Effect\Effect_Editor</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\public\LodingWidget1.h">
|
||||
<Filter>50.UI\LodingWidget1</Filter>
|
||||
<ClInclude Include="..\public\LoadingWidget.h">
|
||||
<Filter>50.UI\GamePlay_Canvas\Loding_Panel\LoadingWidget</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\public\Mission_Key.h">
|
||||
<Filter>50.UI\Mission\Mission_Key</Filter>
|
||||
<Filter>50.UI\GamePlay_Canvas\Mission_Panel\Mission_Key</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\public\MissionBanner_Border.h">
|
||||
<Filter>50.UI\Mission\MissionBanner_Border</Filter>
|
||||
<Filter>50.UI\GamePlay_Canvas\Mission_Panel\MissionBanner_Border</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\public\Mission_KeyHold.h">
|
||||
<Filter>50.UI\Mission\Mission_KeyHold</Filter>
|
||||
<Filter>50.UI\GamePlay_Canvas\Mission_Panel\Mission_KeyHold</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\public\MissionBanner_Key.h">
|
||||
<Filter>50.UI\Mission\MissionBanner_Key</Filter>
|
||||
<Filter>50.UI\GamePlay_Canvas\Mission_Panel\MissionBanner_Key</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\public\Mission_Icon.h">
|
||||
<Filter>50.UI\Mission\Mission_Icon</Filter>
|
||||
<Filter>50.UI\GamePlay_Canvas\Mission_Panel\Mission_Icon</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\public\MiniMap_TrimBorder.h">
|
||||
<Filter>50.UI\MiniMap\MiniMap_TrimBorder</Filter>
|
||||
<Filter>50.UI\GamePlay_Canvas\MiniMap_Panel\MiniMap_TrimBorder</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\public\Active_Icon.h">
|
||||
<Filter>50.UI\Mission\Active_Icon</Filter>
|
||||
<Filter>50.UI\GamePlay_Canvas\Mission_Panel\Active_Icon</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\public\IMGUIUI.h">
|
||||
<Filter>50.UI\IMGUIUI</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\public\GamePlay_Canvas.h">
|
||||
<Filter>50.UI\GamePlay_Canvas</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\public\LoadingWidget_Flame.h">
|
||||
<Filter>50.UI\GamePlay_Canvas\Loding_Panel\LoadingWidget_Flame</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\public\MiniMap_Panel.h">
|
||||
<Filter>50.UI\GamePlay_Canvas\MiniMap_Panel</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\public\Loading_Panel.h">
|
||||
<Filter>50.UI\GamePlay_Canvas\Loding_Panel</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\public\Level_MapViewer.h">
|
||||
<Filter>01.Level\30.MapViewer</Filter>
|
||||
@@ -264,6 +312,18 @@
|
||||
<ClInclude Include="..\public\MapObject_Manager.h">
|
||||
<Filter>02.GameObjects\Env\Manger</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Level_PhysXLab.h">
|
||||
<Filter>01.Level\60.PhysXLab</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Dummy_PhysXBox.h">
|
||||
<Filter>02.GameObjects\Dummys\PhysXBox</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Dummy_PhysXMesh.h">
|
||||
<Filter>02.GameObjects\Dummys\PhysXMesh</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\LoadingWidget.h">
|
||||
<Filter>50.UI\GamePlay_Canvas\Loding_Panel\LoadingWidget</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Image Include="Editor.ico">
|
||||
@@ -298,8 +358,8 @@
|
||||
<ClCompile Include="..\private\Level_UI.cpp">
|
||||
<Filter>01.Level\50.UIViewer</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\private\Mission.cpp">
|
||||
<Filter>50.UI\Mission</Filter>
|
||||
<ClCompile Include="..\private\Mission_Panel.cpp">
|
||||
<Filter>50.UI\GamePlay_Canvas\Mission_Panel</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\private\Mouse_Cursor.cpp">
|
||||
<Filter>50.UI\Mouse_Cursor</Filter>
|
||||
@@ -319,9 +379,6 @@
|
||||
<ClCompile Include="..\Private\Body.cpp">
|
||||
<Filter>02.GameObjects\ModelParts\Body</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\ModelParts.cpp">
|
||||
<Filter>02.GameObjects\ModelParts</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Head.cpp">
|
||||
<Filter>02.GameObjects\ModelParts\Head</Filter>
|
||||
</ClCompile>
|
||||
@@ -343,29 +400,44 @@
|
||||
<ClCompile Include="..\Private\Effect_Editor.cpp">
|
||||
<Filter>02.GameObjects\Layer_Effect\Effect_Editor</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\private\LodingWidget1.cpp">
|
||||
<Filter>50.UI\LodingWidget1</Filter>
|
||||
<ClCompile Include="..\private\LoadingWidget.cpp">
|
||||
<Filter>50.UI\GamePlay_Canvas\Loding_Panel\LoadingWidget</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\private\Mission_Key.cpp">
|
||||
<Filter>50.UI\Mission\Mission_Key</Filter>
|
||||
<Filter>50.UI\GamePlay_Canvas\Mission_Panel\Mission_Key</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\private\MissionBanner_Border.cpp">
|
||||
<Filter>50.UI\Mission\MissionBanner_Border</Filter>
|
||||
<Filter>50.UI\GamePlay_Canvas\Mission_Panel\MissionBanner_Border</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\private\Mission_KeyHold.cpp">
|
||||
<Filter>50.UI\Mission\Mission_KeyHold</Filter>
|
||||
<Filter>50.UI\GamePlay_Canvas\Mission_Panel\Mission_KeyHold</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\private\MissionBanner_Key.cpp">
|
||||
<Filter>50.UI\Mission\MissionBanner_Key</Filter>
|
||||
<Filter>50.UI\GamePlay_Canvas\Mission_Panel\MissionBanner_Key</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\private\Mission_Icon.cpp">
|
||||
<Filter>50.UI\Mission\Mission_Icon</Filter>
|
||||
<Filter>50.UI\GamePlay_Canvas\Mission_Panel\Mission_Icon</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\private\MiniMap_TrimBorder.cpp">
|
||||
<Filter>50.UI\MiniMap\MiniMap_TrimBorder</Filter>
|
||||
<Filter>50.UI\GamePlay_Canvas\MiniMap_Panel\MiniMap_TrimBorder</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\private\Active_Icon.cpp">
|
||||
<Filter>50.UI\Mission\Active_Icon</Filter>
|
||||
<Filter>50.UI\GamePlay_Canvas\Mission_Panel\Active_Icon</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\private\IMGUIUI.cpp">
|
||||
<Filter>50.UI\IMGUIUI</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\private\GamePlay_Canvas.cpp">
|
||||
<Filter>50.UI\GamePlay_Canvas</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\private\LoadingWidget_Flame.cpp">
|
||||
<Filter>50.UI\GamePlay_Canvas\Loding_Panel\LoadingWidget_Flame</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\private\MiniMap_Panel.cpp">
|
||||
<Filter>50.UI\GamePlay_Canvas\MiniMap_Panel</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\private\Loading_Panel.cpp">
|
||||
<Filter>50.UI\GamePlay_Canvas\Loding_Panel</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\private\Level_MapViewer.cpp">
|
||||
<Filter>01.Level\30.MapViewer</Filter>
|
||||
@@ -379,6 +451,33 @@
|
||||
<ClCompile Include="..\private\MapObject_Manager.cpp">
|
||||
<Filter>02.GameObjects\Env\Manger</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Level_PhysXLab.cpp">
|
||||
<Filter>01.Level\60.PhysXLab</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Hair.cpp">
|
||||
<Filter>02.GameObjects\ModelParts\Hair</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\ModelParts.cpp">
|
||||
<Filter>02.GameObjects\ModelParts</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\RootModelPart.cpp">
|
||||
<Filter>02.GameObjects\ModelParts\RootModelPart</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Monster.cpp">
|
||||
<Filter>02.GameObjects\Monster</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Dummy_PhysXBox.cpp">
|
||||
<Filter>02.GameObjects\Dummys\PhysXBox</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Dummy_PhysXMesh.cpp">
|
||||
<Filter>02.GameObjects\Dummys\PhysXMesh</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\LoadingWidget.cpp">
|
||||
<Filter>50.UI\LoadingWidget</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\LoadingWidget.cpp">
|
||||
<Filter>50.UI\GamePlay_Canvas\Loding_Panel\LoadingWidget</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ResourceCompile Include="Editor.rc">
|
||||
|
||||
@@ -109,7 +109,7 @@ HRESULT CActive_Icon::Ready_Components(void* pArg)
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Keyboard"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom), nullptr)))
|
||||
if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_ActiveMission_Icon_0"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom), nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
#include "Body.h"
|
||||
|
||||
#include "GameInstance.h"
|
||||
#include "RootModelPart.h"
|
||||
|
||||
CBody::CBody(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CModelParts(pDevice, pContext)
|
||||
@@ -27,8 +28,9 @@ HRESULT CBody::Initialize(void* pArg)
|
||||
if (FAILED(Ready_Components()))
|
||||
return E_FAIL;
|
||||
|
||||
m_pModelCom->Set_AnimationIndex(0);
|
||||
dynamic_cast<CRootModelPart*>(m_pOwner)->Push_ModelParts(this);
|
||||
|
||||
dynamic_cast<CRootModelPart*>(m_pOwner)->Push_MainModel(m_pModelCom);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -39,7 +41,7 @@ void CBody::Priority_Update(_float fTimeDelta)
|
||||
|
||||
void CBody::Update(_float fTimeDelta)
|
||||
{
|
||||
m_pModelCom->Play_Animation(fTimeDelta);
|
||||
//m_pModelCom->Play_Animation(fTimeDelta);
|
||||
}
|
||||
|
||||
void CBody::Late_Update(_float fTimeDelta)
|
||||
@@ -85,7 +87,7 @@ HRESULT CBody::Render()
|
||||
HRESULT CBody::Ready_Components()
|
||||
{
|
||||
/* Com_Model */
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_Steve_Model"),
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_HumanBody_Model"),
|
||||
reinterpret_cast<CComponent**>(&m_pModelCom))))
|
||||
return E_FAIL;
|
||||
|
||||
@@ -110,7 +112,7 @@ CBody* CBody::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
CGameObject* CBody::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CBody* pInstance = new CBody(*this);
|
||||
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CBody");
|
||||
@@ -124,6 +126,7 @@ void CBody::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
|
||||
}
|
||||
|
||||
void CBody::Describe_Entity()
|
||||
|
||||
@@ -83,6 +83,8 @@ HRESULT CDummyRect::Ready_Components(void* pArg)
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
|
||||
CGameObject* asdf = this;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -84,8 +84,6 @@ HRESULT CDummy_Goblin::Render()
|
||||
|
||||
HRESULT CDummy_Goblin::Ready_Components()
|
||||
{
|
||||
__super::Ready_Components(nullptr);
|
||||
|
||||
/* Com_Model */
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_GoblinBody_Model"),
|
||||
reinterpret_cast<CComponent**>(&m_pModelCom))))
|
||||
|
||||
@@ -83,8 +83,6 @@ HRESULT CDummy_Goblin_Head::Render()
|
||||
|
||||
HRESULT CDummy_Goblin_Head::Ready_Components()
|
||||
{
|
||||
__super::Ready_Components(nullptr);
|
||||
|
||||
/* Com_Model */
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_GoblinHead_Model"),
|
||||
reinterpret_cast<CComponent**>(&m_pModelCom))))
|
||||
|
||||
@@ -0,0 +1,167 @@
|
||||
#include "pch.h"
|
||||
#include "Dummy_PhysXBox.h"
|
||||
|
||||
#include "GameInstance.h"
|
||||
|
||||
|
||||
CDummy_PhysXBox::CDummy_PhysXBox(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CGameObject{ pDevice, pContext }
|
||||
{
|
||||
}
|
||||
|
||||
CDummy_PhysXBox::CDummy_PhysXBox(const CDummy_PhysXBox& rhs)
|
||||
: CGameObject(rhs)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CDummy_PhysXBox::Initialize_Prototype()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CDummy_PhysXBox::Initialize(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Initialize(pArg))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(Ready_Components(pArg))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CDummy_PhysXBox::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void CDummy_PhysXBox::Update(_float fTimeDelta)
|
||||
{
|
||||
}
|
||||
|
||||
void CDummy_PhysXBox::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
//_float4* vPos = (_float4*)(m_pTransformCom->Get_WorldMatrixPtr()->m[3]);
|
||||
//m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this, *vPos, m_pTransformCom->Get_Radius());
|
||||
}
|
||||
|
||||
HRESULT CDummy_PhysXBox::Render()
|
||||
{
|
||||
//if (FAILED(Bind_ShaderResources())) {
|
||||
// return E_FAIL;
|
||||
//}
|
||||
|
||||
|
||||
//_uint iNumMeshes = m_pModelCom->Get_NumMeshes();
|
||||
|
||||
//for (_uint i = 0; i < iNumMeshes; i++)
|
||||
//{
|
||||
// if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom, "g_DiffuseTexture", aiTextureType_DIFFUSE, 0))) {
|
||||
// return E_FAIL;
|
||||
// }
|
||||
// if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom, "g_NormalTexture", aiTextureType_NORMALS, 0))) {
|
||||
// return E_FAIL;
|
||||
// }
|
||||
|
||||
// if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_MESH::SKYBOX)))) {
|
||||
// return E_FAIL;
|
||||
// }
|
||||
|
||||
// if (FAILED(m_pModelCom->Render(i))) {
|
||||
// return E_FAIL;
|
||||
// }
|
||||
//}
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CDummy_PhysXBox::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Ready_Components(pArg))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
BOXSTARTPOS_DESC* pBox = static_cast<BOXSTARTPOS_DESC*>(pArg);
|
||||
|
||||
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&pBox->vPos), 1.f));
|
||||
m_pTransformCom->Rotation(pBox->vRotRPY.x, pBox->vRotRPY.y, pBox->vRotRPY.z);
|
||||
|
||||
|
||||
{ // RIGID_BODY
|
||||
CRigidBody::RIGIDBODY_DESC Desc{};
|
||||
Desc.tRigidDynamicDesc.bIsKinematic = false;
|
||||
Desc.tRigidDynamicDesc.fDensity = 1000.f;
|
||||
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_BOX"), (CComponent**)&m_pRigidBody, &Desc))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_pActor = m_pGameInstance->Add_DynamicActor(*m_pRigidBody);
|
||||
if (nullptr == m_pActor) {
|
||||
assert(false);
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CDummy_PhysXBox::Bind_ShaderResources()
|
||||
{
|
||||
//if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) {
|
||||
// return E_FAIL;
|
||||
//}
|
||||
//if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) {
|
||||
// return E_FAIL;
|
||||
//}
|
||||
//if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ)))) {
|
||||
// return E_FAIL;
|
||||
//}
|
||||
|
||||
//if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) {
|
||||
// return E_FAIL;
|
||||
//}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CDummy_PhysXBox* CDummy_PhysXBox::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CDummy_PhysXBox* pInstance = new CDummy_PhysXBox(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CDummy_PhysXBox");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
CGameObject* CDummy_PhysXBox::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CDummy_PhysXBox* pInstance = new CDummy_PhysXBox(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CDummy_PhysXBox");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CDummy_PhysXBox::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pRigidBody);
|
||||
//SAFE_RELEASE(m_pModelCom);
|
||||
//SAFE_RELEASE(m_pShaderCom);
|
||||
}
|
||||
|
||||
void CDummy_PhysXBox::Describe_Entity()
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,166 @@
|
||||
#include "pch.h"
|
||||
#include "Dummy_PhysXMesh.h"
|
||||
|
||||
#include "GameInstance.h"
|
||||
|
||||
|
||||
CDummy_PhysXMesh::CDummy_PhysXMesh(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CGameObject{ pDevice, pContext }
|
||||
{
|
||||
}
|
||||
|
||||
CDummy_PhysXMesh::CDummy_PhysXMesh(const CDummy_PhysXMesh& rhs)
|
||||
: CGameObject(rhs)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CDummy_PhysXMesh::Initialize_Prototype()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CDummy_PhysXMesh::Initialize(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Initialize(pArg))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(Ready_Components(pArg))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CDummy_PhysXMesh::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void CDummy_PhysXMesh::Update(_float fTimeDelta)
|
||||
{
|
||||
}
|
||||
|
||||
void CDummy_PhysXMesh::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
//_float4* vPos = (_float4*)(m_pTransformCom->Get_WorldMatrixPtr()->m[3]);
|
||||
//m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this, *vPos, m_pTransformCom->Get_Radius());
|
||||
}
|
||||
|
||||
HRESULT CDummy_PhysXMesh::Render()
|
||||
{
|
||||
//if (FAILED(Bind_ShaderResources())) {
|
||||
// return E_FAIL;
|
||||
//}
|
||||
|
||||
|
||||
//_uint iNumMeshes = m_pModelCom->Get_NumMeshes();
|
||||
|
||||
//for (_uint i = 0; i < iNumMeshes; i++)
|
||||
//{
|
||||
// if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom, "g_DiffuseTexture", aiTextureType_DIFFUSE, 0))) {
|
||||
// return E_FAIL;
|
||||
// }
|
||||
// if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom, "g_NormalTexture", aiTextureType_NORMALS, 0))) {
|
||||
// return E_FAIL;
|
||||
// }
|
||||
|
||||
// if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_MESH::SKYBOX)))) {
|
||||
// return E_FAIL;
|
||||
// }
|
||||
|
||||
// if (FAILED(m_pModelCom->Render(i))) {
|
||||
// return E_FAIL;
|
||||
// }
|
||||
//}
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CDummy_PhysXMesh::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Ready_Components(pArg))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
BOXSTARTPOS_DESC* pBox = static_cast<BOXSTARTPOS_DESC*>(pArg);
|
||||
|
||||
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&pBox->vPos), 1.f));
|
||||
m_pTransformCom->Rotation(pBox->vRotRPY.x, pBox->vRotRPY.y, pBox->vRotRPY.z);
|
||||
|
||||
|
||||
{ // RIGID_BODY
|
||||
CRigidBody::RIGIDBODY_DESC Desc{};
|
||||
Desc.tRigidDynamicDesc.bIsKinematic = false;
|
||||
Desc.tRigidDynamicDesc.fDensity = 1000.f;
|
||||
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_BOX"), (CComponent**)&m_pRigidBody, &Desc))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_pActor = m_pGameInstance->Add_DynamicActor(*m_pRigidBody);
|
||||
if (nullptr == m_pActor) {
|
||||
assert(false);
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CDummy_PhysXMesh::Bind_ShaderResources()
|
||||
{
|
||||
//if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) {
|
||||
// return E_FAIL;
|
||||
//}
|
||||
//if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) {
|
||||
// return E_FAIL;
|
||||
//}
|
||||
//if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ)))) {
|
||||
// return E_FAIL;
|
||||
//}
|
||||
|
||||
//if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) {
|
||||
// return E_FAIL;
|
||||
//}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CDummy_PhysXMesh* CDummy_PhysXMesh::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CDummy_PhysXMesh* pInstance = new CDummy_PhysXMesh(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CDummy_PhysXMesh");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
CGameObject* CDummy_PhysXMesh::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CDummy_PhysXMesh* pInstance = new CDummy_PhysXMesh(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CDummy_PhysXMesh");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CDummy_PhysXMesh::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pRigidBody);
|
||||
//SAFE_RELEASE(m_pModelCom);
|
||||
//SAFE_RELEASE(m_pShaderCom);
|
||||
}
|
||||
|
||||
void CDummy_PhysXMesh::Describe_Entity()
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,153 @@
|
||||
#include "pch.h"
|
||||
#include "GamePlay_Canvas.h"
|
||||
#include "GameInstance.h"
|
||||
#include "Mission_Panel.h"
|
||||
#include "MiniMap_Panel.h"
|
||||
#include "Loading_Panel.h"
|
||||
#include "Mouse_Cursor.h"
|
||||
|
||||
CGamePlay_Canvas::CGamePlay_Canvas(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
:CCanvasObject(pDevice, pContext)
|
||||
{
|
||||
}
|
||||
|
||||
CGamePlay_Canvas::CGamePlay_Canvas(const CGamePlay_Canvas& rhs)
|
||||
:CCanvasObject(rhs)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
HRESULT CGamePlay_Canvas::Initialize_Prototype()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CGamePlay_Canvas::Initialize(void* pArg)
|
||||
{
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = 0.f;
|
||||
Desc.fY = 0.f;
|
||||
Desc.fSizeX = 1920.f;
|
||||
Desc.fSizeY = 1080.f;
|
||||
|
||||
if (FAILED(__super::Initialize(&Desc)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Ready_Panel(pArg)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CGamePlay_Canvas::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CGamePlay_Canvas::Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CGamePlay_Canvas::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible) {
|
||||
_float4* vPos = (_float4*)(m_pTransformCom->Get_WorldMatrixPtr()->m[3]);
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::UI, this, *vPos, m_pTransformCom->Get_Radius());
|
||||
}
|
||||
__super::Late_Update(fTimeDelta);
|
||||
}
|
||||
|
||||
HRESULT CGamePlay_Canvas::Render()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
_vector CGamePlay_Canvas::Get_WorldPostion()
|
||||
{
|
||||
return m_pTransformCom->Get_State(STATE::POSITION);
|
||||
}
|
||||
|
||||
HRESULT CGamePlay_Canvas::Bind_ShaderResources()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CGamePlay_Canvas::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(Add_Component<CVIBuffer_Rect>(g_iStaticLevel, &m_pVIBufferCom))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CGamePlay_Canvas::Ready_Panel(void* pArg)
|
||||
{
|
||||
CGameObject* asdf = this;
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CLoading_Panel>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, &m_pLoading_Panel)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
Add_Panel(TEXT("LoadingPanel"), m_pLoading_Panel);
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CMiniMap_Panel>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, &m_pMinimap_Panel)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
Add_Panel(TEXT("Minimap"), m_pMinimap_Panel);
|
||||
//if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CMission_Panel>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, &Mission_Panel)))
|
||||
//{
|
||||
// return E_FAIL;
|
||||
//}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CGamePlay_Canvas::Clear_Penel()
|
||||
{
|
||||
}
|
||||
|
||||
CGamePlay_Canvas* CGamePlay_Canvas::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CGamePlay_Canvas* pInstance = new CGamePlay_Canvas(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CGamePlay_Canvas");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
CGameObject* CGamePlay_Canvas::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CGamePlay_Canvas* pInstance = new CGamePlay_Canvas(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CGamePlay_Canvas");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CGamePlay_Canvas::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pVIBufferCom);
|
||||
}
|
||||
|
||||
void CGamePlay_Canvas::Describe_Entity()
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,131 @@
|
||||
#include "pch.h"
|
||||
#include "Hair.h"
|
||||
|
||||
#include "GameInstance.h"
|
||||
#include "RootModelPart.h"
|
||||
|
||||
CHair::CHair(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CModelParts(pDevice, pContext)
|
||||
{
|
||||
}
|
||||
|
||||
CHair::CHair(const CHair& Prototype)
|
||||
: CModelParts(Prototype)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CHair::Initialize_Prototype()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CHair::Initialize(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Initialize(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(Ready_Components()))
|
||||
return E_FAIL;
|
||||
|
||||
dynamic_cast<CRootModelPart*>(m_pOwner)->Push_ModelParts(this);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CHair::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void CHair::Update(_float fTimeDelta)
|
||||
{
|
||||
//m_pModelCom->Play_Animation(fTimeDelta);
|
||||
}
|
||||
|
||||
void CHair::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
_float4 vPos;
|
||||
XMStoreFloat4(&vPos, Get_WorldPostion());
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::BLEND, this, vPos, 20.f);
|
||||
}
|
||||
|
||||
HRESULT CHair::Render()
|
||||
{
|
||||
if (FAILED(Bind_ShaderResources())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
_uint iNumMeshes = m_pModelCom->Get_NumMeshes();
|
||||
|
||||
for (_uint i = 0; i < iNumMeshes; i++)
|
||||
{
|
||||
if (FAILED(m_pModelCom->Bind_BoneMatrices(i, m_pShaderCom, "g_BoneMatrices"))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom, "g_DiffuseTexture", aiTextureType_DIFFUSE, 0))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom, "g_NormalTexture", aiTextureType_NORMALS, 0))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_ANIM::DEFAULT)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pModelCom->Render(i))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CHair::Ready_Components()
|
||||
{
|
||||
/* Com_Model */
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_HumanHair_Model"),
|
||||
reinterpret_cast<CComponent**>(&m_pModelCom))))
|
||||
return E_FAIL;
|
||||
|
||||
/*m_pModelCom->Change_AnimationIndex(0, true, 0.4f, true);*/
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CHair* CHair::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CHair* pInstance = new CHair(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CHair");
|
||||
Safe_Release(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
CGameObject* CHair::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CHair* pInstance = new CHair(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CHair");
|
||||
Safe_Release(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CHair::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
}
|
||||
|
||||
void CHair::Describe_Entity()
|
||||
{
|
||||
}
|
||||
@@ -2,6 +2,7 @@
|
||||
#include "Head.h"
|
||||
|
||||
#include "GameInstance.h"
|
||||
#include "RootModelPart.h"
|
||||
|
||||
CHead::CHead(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CModelParts(pDevice, pContext)
|
||||
@@ -27,7 +28,7 @@ HRESULT CHead::Initialize(void* pArg)
|
||||
if (FAILED(Ready_Components()))
|
||||
return E_FAIL;
|
||||
|
||||
m_pModelCom->Set_AnimationIndex(0);
|
||||
dynamic_cast<CRootModelPart*>(m_pOwner)->Push_ModelParts(this);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
@@ -39,7 +40,7 @@ void CHead::Priority_Update(_float fTimeDelta)
|
||||
|
||||
void CHead::Update(_float fTimeDelta)
|
||||
{
|
||||
m_pModelCom->Play_Animation(fTimeDelta);
|
||||
//m_pModelCom->Play_Animation(fTimeDelta);
|
||||
}
|
||||
|
||||
void CHead::Late_Update(_float fTimeDelta)
|
||||
@@ -85,7 +86,7 @@ HRESULT CHead::Render()
|
||||
HRESULT CHead::Ready_Components()
|
||||
{
|
||||
/* Com_Model */
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_GoblinBody_Model"),
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_HumanHead_Model"),
|
||||
reinterpret_cast<CComponent**>(&m_pModelCom))))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
@@ -0,0 +1,290 @@
|
||||
#include "pch.h"
|
||||
#include "IMGUIUI.h"
|
||||
#include "UIObject.h"
|
||||
#include "GamePlay_Canvas.h"
|
||||
#include "PanelObject.h"
|
||||
#include "ElementObject.h"
|
||||
#include "Mouse_Cursor.h"
|
||||
|
||||
CIMGUIUI::CIMGUIUI(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CGameObject(pDevice, pContext)
|
||||
{
|
||||
}
|
||||
|
||||
CIMGUIUI::CIMGUIUI(const CIMGUIUI& rhs)
|
||||
: CGameObject(rhs)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CIMGUIUI::Initialize_Prototype()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CIMGUIUI::Initialize(void* pArg)
|
||||
{
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CIMGUIUI::PanelwstringTostring(vector<std::wstring>& panelNames)
|
||||
{
|
||||
m_iPanelNamestring.clear();
|
||||
m_iPanelName.clear();
|
||||
m_iPanelNamewstring.clear();
|
||||
|
||||
m_iPanelNamewstring = panelNames;
|
||||
|
||||
for (auto& wname : panelNames)
|
||||
{
|
||||
// wstring -> UTF-8 string 변환
|
||||
int size = WideCharToMultiByte(CP_UTF8, 0,
|
||||
wname.c_str(), (int)wname.size(),
|
||||
nullptr, 0, nullptr, nullptr);
|
||||
|
||||
std::string result(size, 0);
|
||||
|
||||
WideCharToMultiByte(CP_UTF8, 0,
|
||||
wname.c_str(), (int)wname.size(),
|
||||
&result[0], size, nullptr, nullptr);
|
||||
|
||||
// 변환된 string 저장
|
||||
m_iPanelNamestring.push_back(std::move(result));
|
||||
}
|
||||
|
||||
// vector<const char*> 업데이트
|
||||
for (auto& str : m_iPanelNamestring)
|
||||
m_iPanelName.push_back(str.c_str());
|
||||
}
|
||||
|
||||
void CIMGUIUI::ElementwstringTostring(vector<wstring>& panelNames)
|
||||
{
|
||||
m_pElementNamestring.clear();
|
||||
m_pElementName.clear();
|
||||
m_pElementNamewstring.clear();
|
||||
|
||||
m_pElementNamewstring = panelNames;
|
||||
|
||||
for (auto& wname : panelNames)
|
||||
{
|
||||
// wstring -> UTF-8 string 변환
|
||||
int size = WideCharToMultiByte(CP_UTF8, 0,
|
||||
wname.c_str(), (int)wname.size(),
|
||||
nullptr, 0, nullptr, nullptr);
|
||||
|
||||
std::string result(size, 0);
|
||||
|
||||
WideCharToMultiByte(CP_UTF8, 0,
|
||||
wname.c_str(), (int)wname.size(),
|
||||
&result[0], size, nullptr, nullptr);
|
||||
|
||||
// 변환된 string 저장
|
||||
m_pElementNamestring.push_back(std::move(result));
|
||||
}
|
||||
|
||||
// vector<const char*> 업데이트
|
||||
for (auto& str : m_pElementNamestring)
|
||||
m_pElementName.push_back(str.c_str());
|
||||
}
|
||||
|
||||
void CIMGUIUI::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
}
|
||||
|
||||
void CIMGUIUI::Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_pPanelObject != nullptr)
|
||||
{
|
||||
m_fPanelPos.x = static_cast<CPanelObject*>(m_pPanelObject)->Get_Current_Position().m128_f32[0];
|
||||
m_fPanelPos.y = static_cast<CPanelObject*>(m_pPanelObject)->Get_Current_Position().m128_f32[1];
|
||||
|
||||
m_fPanelSize.x = static_cast<CPanelObject*>(m_pPanelObject)->Get_Current_Size().x;
|
||||
m_fPanelSize.y = static_cast<CPanelObject*>(m_pPanelObject)->Get_Current_Size().y;
|
||||
|
||||
m_fPanelSizeXY = static_cast<CPanelObject*>(m_pPanelObject)->Get_Current_Size();
|
||||
|
||||
m_fPanelTimeMult = static_cast<CPanelObject*>(m_pPanelObject)->Get_TimeMult();
|
||||
}
|
||||
|
||||
if (m_pElementObject != nullptr)
|
||||
{
|
||||
m_fPos.x = static_cast<CElementObject*>(m_pElementObject)->Get_Current_Position().m128_f32[0];
|
||||
m_fPos.y = static_cast<CElementObject*>(m_pElementObject)->Get_Current_Position().m128_f32[1];
|
||||
|
||||
m_fSize.x = static_cast<CElementObject*>(m_pElementObject)->Get_Current_Size().x;
|
||||
m_fSize.y = static_cast<CElementObject*>(m_pElementObject)->Get_Current_Size().y;
|
||||
|
||||
m_fSizeXY = static_cast<CElementObject*>(m_pElementObject)->Get_Current_Size();
|
||||
|
||||
m_fTimeMult = static_cast<CElementObject*>(m_pElementObject)->Get_TimeMult();
|
||||
}
|
||||
GUI::Begin("Current_PanelObject_Info");
|
||||
if (m_pGamePlay_Canvas != nullptr)
|
||||
{
|
||||
if (m_pGamePlay_Canvas != nullptr)
|
||||
{
|
||||
auto panelNames = static_cast<CCanvasObject*>(m_pGamePlay_Canvas)->Panel_Name();
|
||||
PanelwstringTostring(panelNames);
|
||||
if (GUI::Combo("Panels", &m_iPanelCount, m_iPanelName.data(), static_cast<_int>(m_iPanelName.size())))
|
||||
{
|
||||
m_pPanelObject = static_cast<CCanvasObject*>(m_pGamePlay_Canvas)->Get_Panel(m_iPanelNamewstring[m_iPanelCount]);
|
||||
}
|
||||
}
|
||||
|
||||
if (m_pPanelObject != nullptr)
|
||||
{
|
||||
GUI::Text("Origin Position : %.1f, %.1f", static_cast<CPanelObject*>(m_pPanelObject)->Get_Origin_Position().x, static_cast<CUIObject*>(m_pPanelObject)->Get_Origin_Position().y);
|
||||
GUI::Text("Current Position : %.1f, %.1f", static_cast<CPanelObject*>(m_pPanelObject)->Get_Current_Position().m128_f32[0], static_cast<CUIObject*>(m_pPanelObject)->Get_Current_Position().m128_f32[1]);
|
||||
GUI::Text("Origin Size : %.1f, %.1f", static_cast<CPanelObject*>(m_pPanelObject)->Get_Origin_Size().x, static_cast<CUIObject*>(m_pPanelObject)->Get_Origin_Size().y);
|
||||
GUI::Text("Current Size : %.1f, %.1f", static_cast<CPanelObject*>(m_pPanelObject)->Get_Current_Size().x, static_cast<CUIObject*>(m_pPanelObject)->Get_Current_Size().y);
|
||||
|
||||
GUI::Text("PanelPosition");
|
||||
if (GUI::SliderFloat("X##PanelPos", &m_fPanelPos.x, 0.f, 1920.f))
|
||||
{
|
||||
static_cast<CPanelObject*>(m_pPanelObject)->MoveX(m_fPanelPos.x);
|
||||
}
|
||||
|
||||
if (GUI::SliderFloat("Y##PanelPos", &m_fPanelPos.y, 0.f, 1080))
|
||||
{
|
||||
static_cast<CPanelObject*>(m_pPanelObject)->MoveY(m_fPanelPos.y);
|
||||
}
|
||||
|
||||
GUI::Text("PanelSize");
|
||||
if (GUI::SliderFloat("X##PanelSize", &m_fPanelSize.x, 1.f, 1920.f))
|
||||
{
|
||||
static_cast<CPanelObject*>(m_pPanelObject)->SizeUpdate(m_fPanelSize.x, m_fPanelSize.y);
|
||||
}
|
||||
|
||||
if (GUI::SliderFloat("Y##PanelSize", &m_fPanelSize.y, 1.f, 1080.f))
|
||||
{
|
||||
static_cast<CPanelObject*>(m_pPanelObject)->SizeUpdate(m_fPanelSize.x, m_fPanelSize.y);
|
||||
}
|
||||
|
||||
if (GUI::SliderFloat("PanelSize", &m_fPanelSizeXY.x, 1.f, 1980.f))
|
||||
{
|
||||
m_fPanelSizeXY.y = m_fPanelSizeXY.x;
|
||||
static_cast<CPanelObject*>(m_pPanelObject)->SizeUpdate_float(m_fPanelSizeXY);
|
||||
}
|
||||
|
||||
if (GUI::DragFloat("PanelTimeMult", &m_fPanelTimeMult, 0.01f, 0.f, 10.f))
|
||||
{
|
||||
static_cast<CPanelObject*>(m_pPanelObject)->Set_TimeMult(m_fPanelTimeMult);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
GUI::End();
|
||||
|
||||
GUI::Begin("Current_ElementObject_Info");
|
||||
if (m_pPanelObject != nullptr)
|
||||
{
|
||||
auto ElementNames = static_cast<CPanelObject*>(m_pPanelObject)->Element_Name();
|
||||
ElementwstringTostring(ElementNames);
|
||||
if (GUI::Combo("Element", &m_iElementCount, m_pElementName.data(), static_cast<_int>(m_pElementName.size())))
|
||||
{
|
||||
m_pElementObject = static_cast<CPanelObject*>(m_pPanelObject)->Get_Element(m_pElementNamewstring[m_iElementCount]);
|
||||
}
|
||||
}
|
||||
if (m_pElementObject != nullptr)
|
||||
{
|
||||
GUI::Text("Origin Position : %.1f, %.1f", static_cast<CElementObject*>(m_pElementObject)->Get_Origin_Position().x, static_cast<CUIObject*>(m_pElementObject)->Get_Origin_Position().y);
|
||||
GUI::Text("Current Position : %.1f, %.1f", static_cast<CElementObject*>(m_pElementObject)->Get_Current_Position().m128_f32[0], static_cast<CUIObject*>(m_pElementObject)->Get_Current_Position().m128_f32[1]);
|
||||
GUI::Text("Origin Size : %.1f, %.1f", static_cast<CElementObject*>(m_pElementObject)->Get_Origin_Size().x, static_cast<CUIObject*>(m_pElementObject)->Get_Origin_Size().y);
|
||||
GUI::Text("Current Size : %.1f, %.1f", static_cast<CElementObject*>(m_pElementObject)->Get_Current_Size().x, static_cast<CUIObject*>(m_pElementObject)->Get_Current_Size().y);
|
||||
|
||||
GUI::Text("Position");
|
||||
if (GUI::SliderFloat("X##Pos", &m_fPos.x, 0.f, 1920.f))
|
||||
{
|
||||
static_cast<CElementObject*>(m_pElementObject)->MoveX(m_fPos.x);
|
||||
}
|
||||
|
||||
if (GUI::SliderFloat("Y##Pos", &m_fPos.y, 0.f, 1080))
|
||||
{
|
||||
static_cast<CElementObject*>(m_pElementObject)->MoveY(m_fPos.y);
|
||||
}
|
||||
|
||||
GUI::Text("Size");
|
||||
if (GUI::SliderFloat("X##Size", &m_fSize.x, 1.f, 1920.f))
|
||||
{
|
||||
static_cast<CElementObject*>(m_pElementObject)->SizeUpdate(m_fSize.x, m_fSize.y);
|
||||
}
|
||||
|
||||
if (GUI::SliderFloat("Y##Size", &m_fSize.y, 1.f, 1080.f))
|
||||
{
|
||||
static_cast<CElementObject*>(m_pElementObject)->SizeUpdate(m_fSize.x, m_fSize.y);
|
||||
}
|
||||
|
||||
if (GUI::SliderFloat("Size", &m_fSizeXY.x, 1.f, 1980.f))
|
||||
{
|
||||
m_fSizeXY.y = m_fSizeXY.x;
|
||||
static_cast<CElementObject*>(m_pElementObject)->SizeUpdate_float(m_fSizeXY);
|
||||
}
|
||||
|
||||
if (GUI::DragFloat("TimeMult", &m_fTimeMult, 0.01f, 0.f, 10.f))
|
||||
{
|
||||
static_cast<CElementObject*>(m_pElementObject)->Set_TimeMult(m_fTimeMult);
|
||||
}
|
||||
}
|
||||
GUI::End();
|
||||
}
|
||||
|
||||
void CIMGUIUI::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CIMGUIUI::Render()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CIMGUIUI::Bind_ShaderResources()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CIMGUIUI::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CGamePlay_Canvas>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, &m_pGamePlay_Canvas)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CIMGUIUI* CIMGUIUI::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CIMGUIUI* pInstance = new CIMGUIUI(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CIMGUIUI");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
CGameObject* CIMGUIUI::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CIMGUIUI* pInstance = new CIMGUIUI(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CIMGUIUI");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CIMGUIUI::Free()
|
||||
{
|
||||
__super::Free();
|
||||
}
|
||||
|
||||
void CIMGUIUI::Describe_Entity()
|
||||
{
|
||||
}
|
||||
@@ -8,6 +8,8 @@
|
||||
#include "Level_ObjectViewer.h"
|
||||
#include "Level_EffectViewer.h"
|
||||
#include "Level_MapViewer.h"
|
||||
#include "Level_PhysXLab.h"
|
||||
|
||||
|
||||
CLevel_Loading::CLevel_Loading(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID)
|
||||
: CLevel{ pDevice, pContext, ENUM_CLASS(eLevelID) }
|
||||
@@ -57,9 +59,9 @@ void CLevel_Loading::Update(_float fTimeDelta)
|
||||
case LEVEL::EFFECT:
|
||||
pNewLevel = CLevel_EffectViewer::Create(m_pDevice, m_pContext, m_eNextLevelID);
|
||||
break;
|
||||
//case LEVEL::SKIllSTUDIO:
|
||||
// pNewLevel = CLevel_SkillStudio::Create(m_pDevice, m_pContext, m_eNextLevelID);
|
||||
// break;
|
||||
case LEVEL::PHYSX:
|
||||
pNewLevel = CLevel_PhysXLab::Create(m_pDevice, m_pContext, m_eNextLevelID);
|
||||
break;
|
||||
//case LEVEL::PARTICLE:
|
||||
// pNewLevel = CLevel_ParticleViewer::Create(m_pDevice, m_pContext, m_eNextLevelID);
|
||||
// break;
|
||||
|
||||
@@ -38,10 +38,10 @@ void CLevel_Logo::Update(_float fTimeDelta)
|
||||
if (FAILED(m_pGameInstance->Change_Level(CLevel_Loading::Create(m_pDevice, m_pContext, LEVEL::LOADING, LEVEL::EFFECT))))
|
||||
return;
|
||||
}
|
||||
//else if (GUI::Button("Skill Editor", { 100, 100 })) {
|
||||
// if (FAILED(m_pGameInstance->Change_Level(CLevel_Loading::Create(m_pDevice, m_pContext, LEVEL::LOADING, LEVEL::SKIllSTUDIO))))
|
||||
// return;
|
||||
//}
|
||||
else if (GUI::Button("PhysX Simulator", { 100, 100 })) {
|
||||
if (FAILED(m_pGameInstance->Change_Level(CLevel_Loading::Create(m_pDevice, m_pContext, LEVEL::LOADING, LEVEL::PHYSX))))
|
||||
return;
|
||||
}
|
||||
//else if (GUI::Button("Particle Editor", { 100, 100 })) {
|
||||
// if (FAILED(m_pGameInstance->Change_Level(CLevel_Loading::Create(m_pDevice, m_pContext, LEVEL::LOADING, LEVEL::PARTICLE))))
|
||||
// return;
|
||||
|
||||
@@ -2,11 +2,15 @@
|
||||
#include "Level_ObjectViewer.h"
|
||||
#include "GameInstance.h"
|
||||
#include "Level_Loading.h"
|
||||
#include "RootModelPart.h"
|
||||
#include "Body.h"
|
||||
#include "Head.h"
|
||||
#include "Hair.h"
|
||||
#include "Dummy_Cube.h"
|
||||
#include "DebugCamera.h"
|
||||
#include "Layer.h"
|
||||
#include "GameObject.h"
|
||||
#include "Monster.h"
|
||||
|
||||
CLevel_ObjectViewer::CLevel_ObjectViewer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID)
|
||||
: CLevel{ pDevice, pContext, ENUM_CLASS(eLevelID) }
|
||||
@@ -39,6 +43,10 @@ void CLevel_ObjectViewer::Update(_float fTimeDelta)
|
||||
Add_Object();
|
||||
|
||||
Show_ModelFilePath();
|
||||
|
||||
Show_AnimList();
|
||||
|
||||
Object_Setting();
|
||||
}
|
||||
|
||||
HRESULT CLevel_ObjectViewer::Render()
|
||||
@@ -54,60 +62,155 @@ void CLevel_ObjectViewer::Add_Object()
|
||||
|
||||
if (GUI::BeginTabBar("ObjectTabs"))
|
||||
{
|
||||
if (ImGui::BeginTabItem("Creatures"))
|
||||
{
|
||||
GUI::EndTabItem();
|
||||
}
|
||||
if (ImGui::BeginTabItem("Human"))
|
||||
{
|
||||
if (GUI::CollapsingHeader("Body"))
|
||||
{
|
||||
if (GUI::Button("Add"))
|
||||
{
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CBody>(ENUM_CLASS(LEVEL::STATIC), NEXT_LEVEL, TEXT("Layer_Body"))))
|
||||
return;
|
||||
CBody* pBody = m_pGameInstance->Get_Layer(NEXT_LEVEL, TEXT("Layer_Body"))->Get_Object<CBody>();
|
||||
}
|
||||
if (GUI::Button("Delete"))
|
||||
{
|
||||
m_pGameInstance->Get_Layer(NEXT_LEVEL, TEXT("Layer_Body"))->Clear_Layer();
|
||||
}
|
||||
}
|
||||
if (GUI::CollapsingHeader("Head"))
|
||||
{
|
||||
if (GUI::Button("Add"))
|
||||
{
|
||||
CGameObject* pOwner = m_pGameInstance->Get_Layer(NEXT_LEVEL, TEXT("Layer_Body"))->Get_Object<CBody>();
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CHead>(ENUM_CLASS(LEVEL::STATIC), NEXT_LEVEL, TEXT("Layer_Head"), nullptr, pOwner)))
|
||||
return;
|
||||
}
|
||||
}
|
||||
if (GUI::CollapsingHeader("Hair"))
|
||||
{
|
||||
}
|
||||
GUI::EndTabItem();
|
||||
}
|
||||
Add_Creature();
|
||||
|
||||
GUI::EndTabBar();
|
||||
Add_Human();
|
||||
|
||||
}
|
||||
GUI::EndTabBar();
|
||||
GUI::End();
|
||||
|
||||
}
|
||||
|
||||
GUI::End();
|
||||
void CLevel_ObjectViewer::Add_Creature()
|
||||
{
|
||||
if (ImGui::BeginTabItem("Creatures"))
|
||||
{
|
||||
if (GUI::Button("Add Monster"))
|
||||
{
|
||||
CGameObject* pTempObject = { nullptr };
|
||||
CMonster::OBJECT_DESC Desc = {};
|
||||
Desc.pModelPrototypeTag = TEXT("Prototype_Component_Troll_Model");
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CMonster>(ENUM_CLASS(LEVEL::STATIC), NEXT_LEVEL, TEXT("Layer_Monster"), &Desc, nullptr, &pTempObject)))
|
||||
return;
|
||||
m_Objects.push_back(pTempObject);
|
||||
}
|
||||
|
||||
GUI::EndTabItem();
|
||||
}
|
||||
}
|
||||
|
||||
void CLevel_ObjectViewer::Add_Human()
|
||||
{
|
||||
if (ImGui::BeginTabItem("Human"))
|
||||
{
|
||||
if (GUI::CollapsingHeader("Body"))
|
||||
{
|
||||
if (GUI::Button("Add Body"))
|
||||
{
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CRootModelPart>(ENUM_CLASS(LEVEL::STATIC), NEXT_LEVEL, TEXT("Layer_Root"), nullptr, nullptr, &m_HumanRoot)))
|
||||
return;
|
||||
|
||||
CGameObject* pTempObject = { nullptr };
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CBody>(ENUM_CLASS(LEVEL::STATIC), NEXT_LEVEL, TEXT("Layer_Body"), nullptr, m_HumanRoot, &pTempObject)))
|
||||
return;
|
||||
m_Objects.push_back(pTempObject);
|
||||
}
|
||||
}
|
||||
_bool bDisabled = (m_HumanRoot == nullptr);
|
||||
if (bDisabled) ImGui::BeginDisabled();
|
||||
if (GUI::CollapsingHeader("Head"))
|
||||
{
|
||||
if (GUI::Button("Add Head"))
|
||||
{
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CHead>(ENUM_CLASS(LEVEL::STATIC), NEXT_LEVEL, TEXT("Layer_Head"), nullptr, m_HumanRoot)))
|
||||
return;
|
||||
}
|
||||
}
|
||||
if (GUI::CollapsingHeader("Hair"))
|
||||
{
|
||||
if (GUI::Button("Add Hair"))
|
||||
{
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CHair>(ENUM_CLASS(LEVEL::STATIC), NEXT_LEVEL, TEXT("Layer_Hair"), nullptr, m_HumanRoot)))
|
||||
return;
|
||||
}
|
||||
}
|
||||
if (bDisabled) ImGui::EndDisabled();
|
||||
GUI::EndTabItem();
|
||||
}
|
||||
}
|
||||
|
||||
void CLevel_ObjectViewer::Show_ModelFilePath()
|
||||
{
|
||||
GUI::Begin("Model_List");
|
||||
for (_uint i = 0; i < m_pGameInstance->ModelFilePathCount(); i++)
|
||||
if(GUI::BeginTabBar("Model_List"))
|
||||
{
|
||||
/*GUI::Text(m_pGameInstance->Load_BinaryModelFilePath(i));*/
|
||||
GUI::SameLine();
|
||||
|
||||
std::string label = "Binary##" + std::to_string(i);
|
||||
if (GUI::Button(label.c_str()))
|
||||
if (GUI::BeginTabItem("Model"))
|
||||
{
|
||||
m_pGameInstance->SaveAssimpModel(m_pGameInstance->Load_ModelFilePath(i));
|
||||
if (m_pGameInstance->BinaryModelFilePathCount() > 0)
|
||||
{
|
||||
for (_uint i = 0; i < m_pGameInstance->BinaryModelFilePathCount(); i++)
|
||||
{
|
||||
if (GUI::Button(m_pGameInstance->Load_BinaryModelFilePath(i)))
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
GUI::EndTabItem();
|
||||
}
|
||||
}
|
||||
GUI::EndTabBar();
|
||||
GUI::End();
|
||||
}
|
||||
|
||||
void CLevel_ObjectViewer::Show_AnimList()
|
||||
{
|
||||
GUI::Begin("Anim_List");
|
||||
if (!m_Objects.empty())
|
||||
{
|
||||
if (!m_Objects[m_iObjectIndex]->isDead())
|
||||
{
|
||||
CModel* pModel = m_Objects[m_iObjectIndex]->Get_Component<CModel>();
|
||||
for (_uint i = 0; i < pModel->Get_AnimSize(); i++)
|
||||
{
|
||||
if (GUI::Button(pModel->Get_AnimList(i)))
|
||||
{
|
||||
pModel->Set_AnimationIndex(i);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
GUI::End();
|
||||
}
|
||||
|
||||
void CLevel_ObjectViewer::Show_ObjectList()
|
||||
{
|
||||
for (size_t i = 0; i < m_Objects.size(); i++)
|
||||
{
|
||||
if (GUI::Selectable(typeid(*m_Objects[i]).name()))
|
||||
{
|
||||
m_iObjectIndex = (_int)i;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void CLevel_ObjectViewer::Object_Setting()
|
||||
{
|
||||
GUI::Begin("Object_Info");
|
||||
if (!m_Objects.empty())
|
||||
{
|
||||
Show_ObjectList();
|
||||
CModel* pModel = m_Objects[m_iObjectIndex]->Get_Component<CModel>();
|
||||
|
||||
_float AnimTrack = pModel->Get_CurrentTrackPosition();
|
||||
GUI::DragFloat("AnimTrack", &AnimTrack);
|
||||
|
||||
_float AnimSpeed = pModel->Get_AnimSpeed();
|
||||
GUI::DragFloat("AnimSpeed", &AnimSpeed, 0.1f);
|
||||
pModel->Set_AnimSpeed(AnimSpeed);
|
||||
|
||||
_bool bPlayAnim = pModel->Get_PlayAnim();
|
||||
if (GUI::Checkbox("Play Anim", &bPlayAnim))
|
||||
{
|
||||
pModel->Set_PlayAnim(bPlayAnim);
|
||||
}
|
||||
if (GUI::Button("Delete"))
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
GUI::End();
|
||||
}
|
||||
|
||||
@@ -117,7 +220,7 @@ HRESULT CLevel_ObjectViewer::Ready_Layer_Camera(const _wstring& strLayerTag)
|
||||
CameraDesc.fFovy = XMConvertToRadians(60.0f);
|
||||
CameraDesc.fNear = 0.1f;
|
||||
CameraDesc.fFar = 500.f;
|
||||
CameraDesc.vEye = _float3(0.f, 10.f, -10.f);
|
||||
CameraDesc.vEye = _float3(0.f, 50.f, -10.f);
|
||||
CameraDesc.vAt = _float3(0.f, 0.f, 0.f);
|
||||
CameraDesc.fSpeedPerSec = 5.f;
|
||||
CameraDesc.fRotationPerSec = XMConvertToRadians(90.0f);
|
||||
@@ -153,8 +256,8 @@ HRESULT CLevel_ObjectViewer::Ready_Layer_UI(const _wstring& strLayerTag)
|
||||
|
||||
HRESULT CLevel_ObjectViewer::Ready_Layer_Dummy(const _wstring& strLayerTag)
|
||||
{
|
||||
/*if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CDummy_Cube>(g_iStaticLevel, NEXT_LEVEL, LAYER_CUBE)))
|
||||
return E_FAIL;*/
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CDummy_Cube>(g_iStaticLevel, NEXT_LEVEL, LAYER_CUBE)))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,122 @@
|
||||
#include "pch.h"
|
||||
#include "Level_PhysXLab.h"
|
||||
#include "GameInstance.h"
|
||||
|
||||
#include "Level_Loading.h"
|
||||
#include "DebugCamera.h"
|
||||
#include "Terrain.h"
|
||||
#include "Dummy_PhysXBox.h"
|
||||
|
||||
CLevel_PhysXLab::CLevel_PhysXLab(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID)
|
||||
: CLevel{ pDevice, pContext, ENUM_CLASS(eLevelID) }
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void CLevel_PhysXLab::Update(_float fTimeDelta)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
HRESULT CLevel_PhysXLab::Render()
|
||||
{
|
||||
SetWindowText(g_hWnd, TEXT("PhysXEditor·¹º§ÀÔ´Ï´Ù"));
|
||||
GUI::ShowDemoWindow();
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CLevel_PhysXLab::Initialize()
|
||||
{
|
||||
if (FAILED(Ready_Layer_Light()))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(Ready_Layer_Camera(LAYER_CAMERA))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(Ready_Layer_Terrain(TEXT("Layer_Terrain")))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(Ready_Layer_PhysXObjects(TEXT("Layer_PhysXObject")))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CLevel_PhysXLab::Ready_Layer_Light()
|
||||
{
|
||||
LIGHT_DESC LightDesc{};
|
||||
|
||||
LightDesc.eType = LIGHT::DIRECTIONAL;
|
||||
LightDesc.vDiffuse = _float4(0.8f, 0.8f, 0.8f, 0.f);
|
||||
LightDesc.vAmbient = _float4(0.8f, 0.8f, 0.8f, 0.f);
|
||||
LightDesc.vSpecular = _float4(0.f, 0.f, 0.f, 0.f);
|
||||
LightDesc.vDirection = _float4(1.f, -1.f, 1.f, 0.f);
|
||||
|
||||
if (FAILED(m_pGameInstance->On_Light(NEXT_LEVEL, TEXT("Main_Light"), LightDesc, nullptr))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CLevel_PhysXLab::Ready_Layer_Camera(const _wstring& strLayerTag)
|
||||
{
|
||||
CDebugCamera::CAMERA_DEBUG_DESC CameraDesc{};
|
||||
CameraDesc.fFovy = XMConvertToRadians(60.0f);
|
||||
CameraDesc.fNear = 0.1f;
|
||||
CameraDesc.fFar = 500.f;
|
||||
CameraDesc.vEye = _float3(0.f, 10.f, -10.f);
|
||||
CameraDesc.vAt = _float3(0.f, 0.f, 0.f);
|
||||
CameraDesc.fSpeedPerSec = 2.f;
|
||||
CameraDesc.fRotationPerSec = XMConvertToRadians(90.0f);
|
||||
CameraDesc.fMouseSensor = 0.1f;
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CDebugCamera>(g_iStaticLevel, NEXT_LEVEL,
|
||||
strLayerTag, &CameraDesc)))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CLevel_PhysXLab::Ready_Layer_Terrain(const _wstring& strLayerTag)
|
||||
{
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CLevel_PhysXLab::Ready_Layer_PhysXObjects(const _wstring& strLayerTag)
|
||||
{
|
||||
for (int i = 0; i < 50; ++i) {
|
||||
CDummy_PhysXBox::BOXSTARTPOS_DESC Desc{};
|
||||
Desc.vPos = { m_pGameInstance->Random_Float(0.f, 30.f), m_pGameInstance->Random_Float(3.f, 33.f), m_pGameInstance->Random_Float(0.f, 30.f) };
|
||||
Desc.vRotRPY = { m_pGameInstance->Random_Float(0.f, XM_2PI), m_pGameInstance->Random_Float(0.f, XM_2PI), m_pGameInstance->Random_Float(0.f, XM_2PI) };
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CDummy_PhysXBox>(g_iStaticLevel, NEXT_LEVEL, LAYER_CUBE, &Desc))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CLevel_PhysXLab* CLevel_PhysXLab::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID)
|
||||
{
|
||||
CLevel_PhysXLab* pInstance = new CLevel_PhysXLab(pDevice, pContext, eLevelID);
|
||||
|
||||
if (FAILED(pInstance->Initialize()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CLevel_PhysXLab");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
|
||||
|
||||
void CLevel_PhysXLab::Free()
|
||||
{
|
||||
__super::Free();
|
||||
}
|
||||
@@ -3,15 +3,9 @@
|
||||
#include "GameInstance.h"
|
||||
#include "Level_Loading.h"
|
||||
#include "DummyRect.h"
|
||||
#include "Mission.h"
|
||||
#include "MissionBanner_Border.h"
|
||||
#include "MissionBanner_Key.h"
|
||||
#include "Mission_Icon.h"
|
||||
#include "Mission_Key.h"
|
||||
#include "Mission_KeyHold.h"
|
||||
#include "IMGUIUI.h"
|
||||
#include "GamePlay_Canvas.h"
|
||||
#include "Mouse_Cursor.h"
|
||||
#include "LodingWidget1.h"
|
||||
#include "MiniMap_TrimBorder.h"
|
||||
|
||||
CLevel_UI::CLevel_UI(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID)
|
||||
: CLevel{ pDevice, pContext, ENUM_CLASS(eLevelID) }
|
||||
@@ -51,28 +45,17 @@ HRESULT CLevel_UI::Ready_Layer_Camera(const _wstring& strLayerTag)
|
||||
|
||||
HRESULT CLevel_UI::Ready_Layer_UI(const _wstring& strLayerTag)
|
||||
{
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CMission>(g_iStaticLevel, NEXT_LEVEL, strLayerTag)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CLodingWidget1>(g_iStaticLevel, NEXT_LEVEL, strLayerTag)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CMissionBanner_Key>(g_iStaticLevel, NEXT_LEVEL, strLayerTag)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CMiniMap_TrimBorder>(g_iStaticLevel, NEXT_LEVEL, strLayerTag)))
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CIMGUIUI>(g_iStaticLevel, NEXT_LEVEL, strLayerTag)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CLevel_UI::Ready_Layer_Cursor(const _wstring& strLayerTag)
|
||||
{
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CMouse_Cursor>(g_iStaticLevel, NEXT_LEVEL, strLayerTag)))
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CMouse_Cursor>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
@@ -4,28 +4,41 @@
|
||||
#include "GameInstance.h"
|
||||
#include "DummyRect.h"
|
||||
#include "MainApp.h"
|
||||
|
||||
#include "Dummy_Cube.h"
|
||||
|
||||
#pragma region OBJECT_HEADER
|
||||
|
||||
#include "RootModelPart.h"
|
||||
#include "Head.h"
|
||||
#include "Body.h"
|
||||
#include "Hair.h"
|
||||
#include "Dummy_Goblin.h"
|
||||
#include <filesystem>
|
||||
#include "Monster.h"
|
||||
#pragma endregion
|
||||
|
||||
#pragma region UI
|
||||
|
||||
#include "Mission.h"
|
||||
#include "GamePlay_Canvas.h"
|
||||
|
||||
#include "Mission_Panel.h"
|
||||
#include "MissionBanner_Border.h"
|
||||
#include "MissionBanner_Key.h"
|
||||
#include "Mission_Icon.h"
|
||||
#include "Mission_Key.h"
|
||||
#include "Mission_KeyHold.h"
|
||||
#include "Mouse_Cursor.h"
|
||||
#include "Head.h"
|
||||
#include "Body.h"
|
||||
#include "Dummy_Goblin.h"
|
||||
#include "Dummy_Cube.h"
|
||||
#include "LodingWidget1.h"
|
||||
|
||||
#include "MiniMap_TrimBorder.h"
|
||||
#include "Active_Icon.h"
|
||||
|
||||
#include "MiniMap_Panel.h"
|
||||
|
||||
#include "Loading_Panel.h"
|
||||
#include "LoadingWidget.h"
|
||||
#include "LoadingWidget_Flame.h"
|
||||
|
||||
#include "IMGUIUI.h"
|
||||
|
||||
#pragma endregion
|
||||
|
||||
#pragma region MAP_HEADER
|
||||
@@ -44,6 +57,12 @@
|
||||
|
||||
#pragma endregion
|
||||
|
||||
#pragma region PHYSX_HEADER
|
||||
|
||||
#include "Dummy_PhysXBox.h"
|
||||
|
||||
#pragma endregion
|
||||
|
||||
CLoader::CLoader(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: m_pDevice{ pDevice }
|
||||
, m_pContext{ pContext }
|
||||
@@ -110,9 +129,9 @@ HRESULT CLoader::Loading()
|
||||
case LEVEL::EFFECT:
|
||||
hr = Loading_For_Effect();
|
||||
break;
|
||||
//case LEVEL::SKIllSTUDIO:
|
||||
// hr = Loading_For_SkillStudio();
|
||||
// break;
|
||||
case LEVEL::PHYSX:
|
||||
hr = Loading_For_PhysXLevel();
|
||||
break;
|
||||
//case LEVEL::PARTICLE:
|
||||
// hr = Loading_For_Particle();
|
||||
// break;
|
||||
@@ -214,58 +233,64 @@ HRESULT CLoader::Loading_For_UI()
|
||||
|
||||
m_strMessage = TEXT("Texture Loading..");
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Keyboard"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("../Bin/Resources/Textures/Keyboard/Keyboard_%d.png"), 10)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
Asset_FileLoad("../Bin/Resources/Textures/Keyboard", L"Prototype_Texture_", [&](_wstring wstrFileName, const _char* pFilePath)
|
||||
{
|
||||
|
||||
_string strFilePath = pFilePath;
|
||||
_wstring wstrFilePath = CMyTools::ToWstring(strFilePath);
|
||||
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), wstrFileName,
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
|
||||
});
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Cursor"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Textures/Cursor/UI_T_CursorRings.dds"), 0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("LodingWidget1"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Textures/Loading/LoadingWidget.png"), 0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
Asset_FileLoad("../Bin/Resources/Textures/Loading", L"Prototype_Texture_", [&](_wstring wstrFileName, const _char* pFilePath)
|
||||
{
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("MissionBanner_Border"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Textures/Mission/MissionBanner_Border.png"), 0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
_string strFilePath = pFilePath;
|
||||
_wstring wstrFilePath = CMyTools::ToWstring(strFilePath);
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("MissionBanner_Key"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Textures/Mission/MissionBanner_Key.png"), 0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Finishi_Rect"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Textures/Mission/Finishi_Rect.png"), 0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), wstrFileName,
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Mission_Main"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Textures/Mission/Mission_Main.png"), 0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
return S_OK;
|
||||
|
||||
});
|
||||
|
||||
Asset_FileLoad("../Bin/Resources/Textures/Mission", L"Prototype_Texture_", [&](_wstring wstrFileName, const _char* pFilePath)
|
||||
{
|
||||
|
||||
_string strFilePath = pFilePath;
|
||||
_wstring wstrFilePath = CMyTools::ToWstring(strFilePath);
|
||||
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), wstrFileName,
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
|
||||
});
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("HUD_MiniMap_TrimBorder"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Textures/MiniMap/HUD_MiniMap_TrimBorder.png"), 0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("ActiveMission_Icon"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("../Bin/Resources/Textures/MiniMap/ActiveMission_Icon_%d.png"), 2)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Mission_Icon_"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("../Bin/Resources/Textures/MiniMap/Mission_Icon_%d.png"), 2)))) {
|
||||
return E_FAIL;
|
||||
|
||||
}
|
||||
|
||||
|
||||
m_strMessage = TEXT("Model Loading..");
|
||||
|
||||
m_strMessage = TEXT("Shader Loading..");
|
||||
@@ -278,7 +303,7 @@ HRESULT CLoader::Loading_For_UI()
|
||||
m_strMessage = TEXT("Prototype Loading..");
|
||||
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CMission>(g_iStaticLevel, CMission::Create(m_pDevice, m_pContext))))
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CGamePlay_Canvas>(g_iStaticLevel, CGamePlay_Canvas::Create(m_pDevice, m_pContext))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -288,11 +313,23 @@ HRESULT CLoader::Loading_For_UI()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CLodingWidget1>(g_iStaticLevel, CLodingWidget1::Create(m_pDevice, m_pContext))))
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CLoading_Panel>(g_iStaticLevel, CLoading_Panel::Create(m_pDevice, m_pContext))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CLoadingWidget>(g_iStaticLevel, CLoadingWidget::Create(m_pDevice, m_pContext))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CLoadingWidget_Flame>(g_iStaticLevel, CLoadingWidget_Flame::Create(m_pDevice, m_pContext))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CMission_Panel>(g_iStaticLevel, CMission_Panel::Create(m_pDevice, m_pContext))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CMissionBanner_Border>(g_iStaticLevel, CMissionBanner_Border::Create(m_pDevice, m_pContext))))
|
||||
{
|
||||
return E_FAIL;
|
||||
@@ -313,11 +350,22 @@ HRESULT CLoader::Loading_For_UI()
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CActive_Icon>(g_iStaticLevel, CActive_Icon::Create(m_pDevice, m_pContext))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CMiniMap_Panel>(g_iStaticLevel, CMiniMap_Panel::Create(m_pDevice, m_pContext))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CMiniMap_TrimBorder>(g_iStaticLevel, CMiniMap_TrimBorder::Create(m_pDevice, m_pContext))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CActive_Icon>(g_iStaticLevel, CActive_Icon::Create(m_pDevice, m_pContext))))
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CIMGUIUI>(g_iStaticLevel, CIMGUIUI::Create(m_pDevice, m_pContext))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -427,6 +475,46 @@ HRESULT CLoader::Loading_For_Effect()
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CLoader::Loading_For_PhysXLevel()
|
||||
{
|
||||
m_strMessage = TEXT("PhysX Bodies Loading..");
|
||||
|
||||
{
|
||||
CRigidBody::RIGIDBODY_PROTOTYPEDESC Desc{};
|
||||
Desc.tRigidDynamicDesc.bExclusive = false;
|
||||
Desc.tRigidDynamicDesc.vhalfGeometryInfo = { 0.5f, 0.5f, 0.5f };
|
||||
Desc.tRigidDynamicDesc.vMatInfo = { 0.5f, 0.5f, 0.6f };
|
||||
Desc.tRigidDynamicDesc.ePxShapeFlag = { PSX::PxShapeFlag::eVISUALIZATION | PSX::PxShapeFlag::eSCENE_QUERY_SHAPE | PSX::PxShapeFlag::eSIMULATION_SHAPE };
|
||||
|
||||
m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_BOX"), CRigidBody::Create(m_pDevice, m_pContext, Desc));
|
||||
}
|
||||
//{
|
||||
// CRigidBody::RIGIDBODY_PROTOTYPEDESC Desc{};
|
||||
// Desc.tRigidStaticDesc.pMesh;
|
||||
// Desc.tRigidStaticDesc.vMatInfo = { 0.5f, 0.5f, 0.6f };
|
||||
// Desc.tRigidStaticDesc.pMeshKey = TEXT("PHYSX_STATIC_MESH");
|
||||
//}
|
||||
|
||||
m_strMessage = TEXT("Texture Loading..");
|
||||
|
||||
m_strMessage = TEXT("Model Loading..");
|
||||
|
||||
m_strMessage = TEXT("Shader Loading..");
|
||||
|
||||
m_strMessage = TEXT("Prototype Loading..");
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CDummy_PhysXBox>(g_iStaticLevel, CDummy_PhysXBox::Create(m_pDevice, m_pContext)))){
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_strMessage = TEXT("Loading Success!");
|
||||
|
||||
m_isFinished = true;
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CLoader::Asset_FileLoad(const _char* pDirectoryPath, const _tchar* pPreName, function<HRESULT(_wstring, const _char*)> AddPrototypeEvent)
|
||||
{
|
||||
for (const auto& file : filesystem::directory_iterator(pDirectoryPath))
|
||||
@@ -460,45 +548,47 @@ HRESULT CLoader::Loading_For_ObjectViewer()
|
||||
|
||||
m_strMessage = TEXT("Model Loading..");
|
||||
|
||||
|
||||
/*if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_GoblinBody_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, "../Bin/Resources/Models/Goblin/GoblinBody.fbx", MODEL::ANIM, XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixIdentity(), 0))))
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_HumanBody_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Human/Body/Body.bin", XMMatrixScaling(0.001f, 0.001f, 0.001f) * XMMatrixIdentity()))))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_HumanHead_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Human/Head/Head.bin", XMMatrixScaling(0.001f, 0.001f, 0.001f) * XMMatrixIdentity()))))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_HumanHair_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Human/Hair/Hair.bin", XMMatrixScaling(0.001f, 0.001f, 0.001f) * XMMatrixIdentity()))))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_GoblinHead_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, "../Bin/Resources/Models/Goblin/GoblinHead.fbx", MODEL::ANIM, XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixIdentity(), 0))))
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Goblin/GoblinHead.bin", XMMatrixScaling(0.001f, 0.001f, 0.001f) * XMMatrixIdentity()))))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Desc_Box"),
|
||||
CModel::Create(m_pDevice, m_pContext, "../Bin/Resources/Models/Box/Box.fbx", MODEL::NONANIM, XMMatrixIdentity(), 0))))
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_GoblinBody_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Goblin/GoblinBody.bin", XMMatrixScaling(0.001f, 0.001f, 0.001f) * XMMatrixIdentity()))))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Steve_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, "../Bin/Resources/Models/Steve/Steve.fbx", MODEL::ANIM, XMMatrixIdentity(), 0))))
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Steve/Steve.bin",XMMatrixScaling(0.01f,0.01f,0.01f)* XMMatrixIdentity()))))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_TombProtector_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, "../Bin/Resources/Models/TombProtector/TombProtector.fbx", MODEL::ANIM,XMMatrixIdentity(), 0))))
|
||||
return E_FAIL;*/
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/TombProtector/TombProtector.bin", XMMatrixScaling(0.001f, 0.001f, 0.001f) * XMMatrixIdentity()))))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Troll_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Troll/Troll.bin", XMMatrixScaling(0.001f, 0.001f, 0.001f) * XMMatrixIdentity()))))
|
||||
return E_FAIL;
|
||||
|
||||
m_strMessage = TEXT("Shader Loading..");
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_GoblinBody_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/SaveFile/GoblinBody", XMMatrixScaling(0.001f, 0.001f, 0.001f) * XMMatrixIdentity()))))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Steve_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/SaveFile/Steve",XMMatrixScaling(0.01f,0.01f,0.01f)* XMMatrixIdentity()))))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_TombProtector_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/SaveFile/TombProtector", XMMatrixScaling(0.001f, 0.001f, 0.001f) * XMMatrixIdentity()))))
|
||||
return E_FAIL;
|
||||
|
||||
m_strMessage = TEXT("Prototype Loading..");
|
||||
|
||||
/* For.Prototype_GameObject_RootModelPart */
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CRootModelPart>(g_iStaticLevel, CRootModelPart::Create(m_pDevice, m_pContext))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_GameObject_Body */
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CBody>(g_iStaticLevel, CBody::Create(m_pDevice, m_pContext))))
|
||||
return E_FAIL;
|
||||
@@ -507,6 +597,14 @@ HRESULT CLoader::Loading_For_ObjectViewer()
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CHead>(g_iStaticLevel, CHead::Create(m_pDevice, m_pContext))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_GameObject_Hair */
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CHair>(g_iStaticLevel, CHair::Create(m_pDevice, m_pContext))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_GameObject_Monster */
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CMonster>(g_iStaticLevel, CMonster::Create(m_pDevice, m_pContext))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_GameObject_Dummy_Cube */
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CDummy_Cube>(g_iStaticLevel, CDummy_Cube::Create(m_pDevice, m_pContext))))
|
||||
return E_FAIL;
|
||||
|
||||
+29
-26
@@ -1,23 +1,23 @@
|
||||
#include "pch.h"
|
||||
#include "LodingWidget1.h"
|
||||
#include "LoadingWidget.h"
|
||||
#include "GameInstance.h"
|
||||
|
||||
CLodingWidget1::CLodingWidget1(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
:CUIObject(pDevice, pContext)
|
||||
CLoadingWidget::CLoadingWidget(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
:CElementObject(pDevice, pContext)
|
||||
{
|
||||
}
|
||||
|
||||
CLodingWidget1::CLodingWidget1(const CLodingWidget1& rhs)
|
||||
:CUIObject(rhs)
|
||||
CLoadingWidget::CLoadingWidget(const CLoadingWidget& rhs)
|
||||
:CElementObject(rhs)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CLodingWidget1::Initialize_Prototype()
|
||||
|
||||
HRESULT CLoadingWidget::Initialize_Prototype()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CLodingWidget1::Initialize(void* pArg)
|
||||
HRESULT CLoadingWidget::Initialize(void* pArg)
|
||||
{
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
@@ -39,28 +39,31 @@ HRESULT CLodingWidget1::Initialize(void* pArg)
|
||||
|
||||
m_iImageFrameX = 6;
|
||||
m_fFrame = 0.2f;
|
||||
|
||||
m_fTimeMult = 3.f;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CLodingWidget1::Priority_Update(_float fTimeDelta)
|
||||
void CLoadingWidget::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CLodingWidget1::Update(_float fTimeDelta)
|
||||
void CLoadingWidget::Update(_float fTimeDelta)
|
||||
{
|
||||
m_fTime += fTimeDelta * 3.f;
|
||||
m_fTime += fTimeDelta * m_fTimeMult;
|
||||
__super::Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CLodingWidget1::Late_Update(_float fTimeDelta)
|
||||
void CLoadingWidget::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible) {
|
||||
_float4* vPos = (_float4*)(m_pTransformCom->Get_WorldMatrixPtr()->m[3]);
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::UI, this, *vPos, m_pTransformCom->Get_Radius());
|
||||
__super::Late_Update(fTimeDelta);
|
||||
}
|
||||
}
|
||||
|
||||
HRESULT CLodingWidget1::Render()
|
||||
HRESULT CLoadingWidget::Render()
|
||||
{
|
||||
if (FAILED(Bind_ShaderResources())) {
|
||||
return E_FAIL;
|
||||
@@ -78,12 +81,12 @@ HRESULT CLodingWidget1::Render()
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
_vector CLodingWidget1::Get_WorldPostion()
|
||||
_vector CLoadingWidget::Get_WorldPostion()
|
||||
{
|
||||
return m_pTransformCom->Get_State(STATE::POSITION);
|
||||
}
|
||||
|
||||
HRESULT CLodingWidget1::Bind_ShaderResources()
|
||||
HRESULT CLoadingWidget::Bind_ShaderResources()
|
||||
{
|
||||
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
|
||||
{
|
||||
@@ -120,13 +123,13 @@ HRESULT CLodingWidget1::Bind_ShaderResources()
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CLodingWidget1::Ready_Components(void* pArg)
|
||||
HRESULT CLoadingWidget::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(Add_Component<CVIBuffer_Rect>(g_iStaticLevel, &m_pVIBufferCom)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("LodingWidget1"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom), nullptr)))
|
||||
if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_LoadingWidget"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom), nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -138,33 +141,33 @@ HRESULT CLodingWidget1::Ready_Components(void* pArg)
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CLodingWidget1* CLodingWidget1::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
CLoadingWidget* CLoadingWidget::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CLodingWidget1* pInstance = new CLodingWidget1(pDevice, pContext);
|
||||
CLoadingWidget* pInstance = new CLoadingWidget(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CLodingWidget1");
|
||||
MSG_BOX("Failed to Created : CLoadingWidget");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
CGameObject* CLodingWidget1::Clone(void* pArg, CGameObject* pOwner)
|
||||
CGameObject* CLoadingWidget::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CLodingWidget1* pInstance = new CLodingWidget1(*this);
|
||||
CLoadingWidget* pInstance = new CLoadingWidget(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CLodingWidget1");
|
||||
MSG_BOX("Failed to Cloned : CLoadingWidget");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CLodingWidget1::Free()
|
||||
void CLoadingWidget::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
@@ -173,6 +176,6 @@ void CLodingWidget1::Free()
|
||||
SAFE_RELEASE(m_pVIBufferCom);
|
||||
}
|
||||
|
||||
void CLodingWidget1::Describe_Entity()
|
||||
void CLoadingWidget::Describe_Entity()
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,181 @@
|
||||
#include "pch.h"
|
||||
#include "LoadingWidget_Flame.h"
|
||||
#include "GameInstance.h"
|
||||
|
||||
CLoadingWidget_Flame::CLoadingWidget_Flame(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
:CElementObject(pDevice, pContext)
|
||||
{
|
||||
}
|
||||
|
||||
CLoadingWidget_Flame::CLoadingWidget_Flame(const CLoadingWidget_Flame& rhs)
|
||||
:CElementObject(rhs)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CLoadingWidget_Flame::Initialize_Prototype()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CLoadingWidget_Flame::Initialize(void* pArg)
|
||||
{
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = 1800.f;
|
||||
Desc.fY = 850.f;
|
||||
Desc.fSizeX = 200.f;
|
||||
Desc.fSizeY = 200.f;
|
||||
|
||||
m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
|
||||
|
||||
if (FAILED(__super::Initialize(&Desc)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_iImageFrameX = 3;
|
||||
m_fFrame = 0.2f;
|
||||
m_fTimeMult = 3.f;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CLoadingWidget_Flame::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CLoadingWidget_Flame::Update(_float fTimeDelta)
|
||||
{
|
||||
m_fTime += fTimeDelta * m_fTimeMult;
|
||||
__super::Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CLoadingWidget_Flame::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible) {
|
||||
_float4* vPos = (_float4*)(m_pTransformCom->Get_WorldMatrixPtr()->m[3]);
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::UI, this, *vPos, m_pTransformCom->Get_Radius());
|
||||
__super::Late_Update(fTimeDelta);
|
||||
}
|
||||
}
|
||||
|
||||
HRESULT CLoadingWidget_Flame::Render()
|
||||
{
|
||||
if (FAILED(Bind_ShaderResources())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::LODING)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pVIBufferCom->Bind_Resources())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pVIBufferCom->Render())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
_vector CLoadingWidget_Flame::Get_WorldPostion()
|
||||
{
|
||||
return m_pTransformCom->Get_State(STATE::POSITION);
|
||||
}
|
||||
|
||||
HRESULT CLoadingWidget_Flame::Bind_ShaderResources()
|
||||
{
|
||||
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fTime", &m_fTime, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fFrame", &m_fFrame, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_iImageCount", &m_iImageFrameX, sizeof(_int))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CLoadingWidget_Flame::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(Add_Component<CVIBuffer_Rect>(g_iStaticLevel, &m_pVIBufferCom)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_LoadingWidget_Flame"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom), nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CLoadingWidget_Flame* CLoadingWidget_Flame::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CLoadingWidget_Flame* pInstance = new CLoadingWidget_Flame(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CLoadingWidget_Flame");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
CGameObject* CLoadingWidget_Flame::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CLoadingWidget_Flame* pInstance = new CLoadingWidget_Flame(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CLoadingWidget_Flame");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CLoadingWidget_Flame::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pDiffuse_TextureCom);
|
||||
SAFE_RELEASE(m_pShaderCom);
|
||||
SAFE_RELEASE(m_pVIBufferCom);
|
||||
}
|
||||
|
||||
void CLoadingWidget_Flame::Describe_Entity()
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,185 @@
|
||||
#include "pch.h"
|
||||
#include "Loading_Panel.h"
|
||||
#include "GameInstance.h"
|
||||
#include "LoadingWidget.h"
|
||||
#include "LoadingWidget_Flame.h"
|
||||
|
||||
CLoading_Panel::CLoading_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
:CPanelObject(pDevice, pContext)
|
||||
{
|
||||
}
|
||||
|
||||
CLoading_Panel::CLoading_Panel(const CLoading_Panel& rhs)
|
||||
:CPanelObject(rhs)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CLoading_Panel::Initialize_Prototype()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CLoading_Panel::Initialize(void* pArg)
|
||||
{
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = 0.f;
|
||||
Desc.fY = 0.f;
|
||||
Desc.fSizeX = 100.f;
|
||||
Desc.fSizeY = 100.f;
|
||||
|
||||
if (FAILED(__super::Initialize(&Desc)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Ready_Element(pArg)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CLoading_Panel::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CLoading_Panel::Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CLoading_Panel::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible) {
|
||||
_float4* vPos = (_float4*)(m_pTransformCom->Get_WorldMatrixPtr()->m[3]);
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::UI, this, *vPos, m_pTransformCom->Get_Radius());
|
||||
}
|
||||
__super::Late_Update(fTimeDelta);
|
||||
}
|
||||
|
||||
HRESULT CLoading_Panel::Render()
|
||||
{
|
||||
if (FAILED(Bind_ShaderResources())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::DEFAULT)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pVIBufferCom->Bind_Resources())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pVIBufferCom->Render())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
_vector CLoading_Panel::Get_WorldPostion()
|
||||
{
|
||||
return m_pTransformCom->Get_State(STATE::POSITION);
|
||||
}
|
||||
|
||||
HRESULT CLoading_Panel::Bind_ShaderResources()
|
||||
{
|
||||
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pTextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CLoading_Panel::Ready_Components(void* pArg)
|
||||
{
|
||||
|
||||
if (FAILED(Add_Component<CVIBuffer_Rect>(g_iStaticLevel, &m_pVIBufferCom)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_Keyboard_0"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom), nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CLoading_Panel::Ready_Element(void* pArg)
|
||||
{
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CLoadingWidget>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, &m_pLoadingWidget)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
Add_Element(TEXT("LoadingWidget"), m_pLoadingWidget);
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CLoadingWidget_Flame>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, &m_pLoadingWidget_Flame)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
Add_Element(TEXT("LoadingWidget_Flame"), m_pLoadingWidget_Flame);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CLoading_Panel* CLoading_Panel::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CLoading_Panel* pInstance = new CLoading_Panel(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CLoading_Panel");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
CGameObject* CLoading_Panel::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CLoading_Panel* pInstance = new CLoading_Panel(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CLoading_Panel");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CLoading_Panel::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pTextureCom);
|
||||
SAFE_RELEASE(m_pShaderCom);
|
||||
SAFE_RELEASE(m_pVIBufferCom);
|
||||
}
|
||||
|
||||
void CLoading_Panel::Describe_Entity()
|
||||
{
|
||||
}
|
||||
+34
-26
@@ -1,26 +1,26 @@
|
||||
#include "pch.h"
|
||||
#include "Mission.h"
|
||||
#include "MiniMap_Panel.h"
|
||||
#include "GameInstance.h"
|
||||
|
||||
CMission::CMission(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
:CUIObject(pDevice, pContext)
|
||||
CMiniMap_Panel::CMiniMap_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
:CPanelObject(pDevice, pContext)
|
||||
{
|
||||
}
|
||||
|
||||
CMission::CMission(const CMission& rhs)
|
||||
:CUIObject(rhs)
|
||||
CMiniMap_Panel::CMiniMap_Panel(const CMiniMap_Panel& rhs)
|
||||
:CPanelObject(rhs)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CMission::Initialize_Prototype()
|
||||
HRESULT CMiniMap_Panel::Initialize_Prototype()
|
||||
{
|
||||
return S_OK;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CMission::Initialize(void* pArg)
|
||||
HRESULT CMiniMap_Panel::Initialize(void* pArg)
|
||||
{
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
|
||||
Desc.fX = 300.f;
|
||||
Desc.fY = 300.f;
|
||||
Desc.fSizeX = 100.f;
|
||||
@@ -39,23 +39,26 @@ HRESULT CMission::Initialize(void* pArg)
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CMission::Priority_Update(_float fTimeDelta)
|
||||
void CMiniMap_Panel::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CMission::Update(_float fTimeDelta)
|
||||
void CMiniMap_Panel::Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CMission::Late_Update(_float fTimeDelta)
|
||||
void CMiniMap_Panel::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible) {
|
||||
_float4* vPos = (_float4*)(m_pTransformCom->Get_WorldMatrixPtr()->m[3]);
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::UI, this, *vPos, m_pTransformCom->Get_Radius());
|
||||
}
|
||||
__super::Late_Update(fTimeDelta);
|
||||
}
|
||||
|
||||
HRESULT CMission::Render()
|
||||
HRESULT CMiniMap_Panel::Render()
|
||||
{
|
||||
if (FAILED(Bind_ShaderResources())) {
|
||||
return E_FAIL;
|
||||
@@ -73,12 +76,12 @@ HRESULT CMission::Render()
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
_vector CMission::Get_WorldPostion()
|
||||
_vector CMiniMap_Panel::Get_WorldPostion()
|
||||
{
|
||||
return m_pTransformCom->Get_State(STATE::POSITION);
|
||||
return m_pOwner->Get_WorldPostion();
|
||||
}
|
||||
|
||||
HRESULT CMission::Bind_ShaderResources()
|
||||
HRESULT CMiniMap_Panel::Bind_ShaderResources()
|
||||
{
|
||||
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
|
||||
{
|
||||
@@ -103,13 +106,13 @@ HRESULT CMission::Bind_ShaderResources()
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CMission::Ready_Components(void* pArg)
|
||||
HRESULT CMiniMap_Panel::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(Add_Component<CVIBuffer_Rect>(g_iStaticLevel, &m_pVIBufferCom)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Keyboard"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom), nullptr)))
|
||||
if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_Keyboard_0"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom), nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -118,36 +121,41 @@ HRESULT CMission::Ready_Components(void* pArg)
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CMiniMap_Panel::Ready_Element(void* pArg)
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CMission* CMission::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
CMiniMap_Panel* CMiniMap_Panel::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CMission* pInstance = new CMission(pDevice, pContext);
|
||||
CMiniMap_Panel* pInstance = new CMiniMap_Panel(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CMission");
|
||||
MSG_BOX("Failed to Created : CMiniMap_Panel");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
CGameObject* CMission::Clone(void* pArg, CGameObject* pOwner)
|
||||
CGameObject* CMiniMap_Panel::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CMission* pInstance = new CMission(*this);
|
||||
CMiniMap_Panel* pInstance = new CMiniMap_Panel(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CMission");
|
||||
MSG_BOX("Failed to Cloned : CMiniMap_Panel");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CMission::Free()
|
||||
void CMiniMap_Panel::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
@@ -156,6 +164,6 @@ void CMission::Free()
|
||||
SAFE_RELEASE(m_pVIBufferCom);
|
||||
}
|
||||
|
||||
void CMission::Describe_Entity()
|
||||
void CMiniMap_Panel::Describe_Entity()
|
||||
{
|
||||
}
|
||||
@@ -118,7 +118,7 @@ HRESULT CMissionBanner_Border::Ready_Components(void* pArg)
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Cursor"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom), nullptr)))
|
||||
if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_MissionBanner_Border"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom), nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
#include "pch.h"
|
||||
#include "MissionBanner_Key.h"
|
||||
#include "GameInstance.h"
|
||||
#include "Mission_KeyHold.h"
|
||||
#include "Mission_Key.h"
|
||||
#include "Active_Icon.h"
|
||||
|
||||
CMissionBanner_Key::CMissionBanner_Key(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
:CUIObject(pDevice, pContext)
|
||||
@@ -113,7 +110,7 @@ HRESULT CMissionBanner_Key::Ready_Components(void* pArg)
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("MissionBanner_Key"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom), nullptr)))
|
||||
if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_MissionBanner_Key"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom), nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -121,18 +118,6 @@ HRESULT CMissionBanner_Key::Ready_Components(void* pArg)
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CMission_KeyHold>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, &m_pMission_KeyHold)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CMission_Key>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, &m_pMission_Key)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CActive_Icon>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, &m_pActive_Icon)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -118,7 +118,7 @@ HRESULT CMission_Icon::Ready_Components(void* pArg)
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Cursor"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom), nullptr)))
|
||||
if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_Mission_Icon_0"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom), nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
@@ -114,7 +114,7 @@ HRESULT CMission_Key::Ready_Components(void* pArg)
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Keyboard"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom), nullptr)))
|
||||
if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_MissionBanner_Key"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom), nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
@@ -111,7 +111,7 @@ HRESULT CMission_KeyHold::Ready_Components(void* pArg)
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Finishi_Rect"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom), nullptr)))
|
||||
if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_Finishi_Rect"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom), nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,181 @@
|
||||
#include "pch.h"
|
||||
#include "Mission_Panel.h"
|
||||
#include "GameInstance.h"
|
||||
#include "Mission_KeyHold.h"
|
||||
#include "Mission_Key.h"
|
||||
#include "Active_Icon.h"
|
||||
#include "MissionBanner_Key.h"
|
||||
|
||||
CMission_Panel::CMission_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
:CPanelObject(pDevice, pContext)
|
||||
{
|
||||
}
|
||||
|
||||
CMission_Panel::CMission_Panel(const CMission_Panel& rhs)
|
||||
:CPanelObject(rhs)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CMission_Panel::Initialize_Prototype()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CMission_Panel::Initialize(void* pArg)
|
||||
{
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = 300.f;
|
||||
Desc.fY = 300.f;
|
||||
Desc.fSizeX = 100.f;
|
||||
Desc.fSizeY = 100.f;
|
||||
|
||||
m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
|
||||
|
||||
if (FAILED(__super::Initialize(&Desc)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CMission_Panel::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
}
|
||||
|
||||
void CMission_Panel::Update(_float fTimeDelta)
|
||||
{
|
||||
}
|
||||
|
||||
void CMission_Panel::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible) {
|
||||
_float4* vPos = (_float4*)(m_pTransformCom->Get_WorldMatrixPtr()->m[3]);
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::UI, this, *vPos, m_pTransformCom->Get_Radius());
|
||||
}
|
||||
}
|
||||
|
||||
HRESULT CMission_Panel::Render()
|
||||
{
|
||||
if (FAILED(Bind_ShaderResources())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::DEFAULT)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pVIBufferCom->Bind_Resources())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pVIBufferCom->Render())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
_vector CMission_Panel::Get_WorldPostion()
|
||||
{
|
||||
return m_pTransformCom->Get_State(STATE::POSITION);
|
||||
}
|
||||
|
||||
HRESULT CMission_Panel::Bind_ShaderResources()
|
||||
{
|
||||
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pTextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CMission_Panel::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(Add_Component<CVIBuffer_Rect>(g_iStaticLevel, &m_pVIBufferCom)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Keyboard"), reinterpret_cast<CComponent**>(&m_pTextureCom), nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CMission_KeyHold>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, &m_pMission_KeyHold)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CMission_Key>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, &m_pMission_Key)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CActive_Icon>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, &m_pActive_Icon)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CMissionBanner_Key>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, &m_pMissionBanner_Key)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CMission_Panel* CMission_Panel::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CMission_Panel* pInstance = new CMission_Panel(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CMission_Panel");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
CGameObject* CMission_Panel::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CMission_Panel* pInstance = new CMission_Panel(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CMission_Panel");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CMission_Panel::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pTextureCom);
|
||||
SAFE_RELEASE(m_pShaderCom);
|
||||
SAFE_RELEASE(m_pVIBufferCom);
|
||||
}
|
||||
|
||||
void CMission_Panel::Describe_Entity()
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,163 @@
|
||||
#include "pch.h"
|
||||
#include "Monster.h"
|
||||
|
||||
#include "GameInstance.h"
|
||||
#include "DebugCamera.h"
|
||||
|
||||
CMonster::CMonster(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CGameObject(pDevice, pContext)
|
||||
{
|
||||
}
|
||||
|
||||
CMonster::CMonster(const CMonster& Prototype)
|
||||
: CGameObject(Prototype)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CMonster::Initialize_Prototype()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CMonster::Initialize(void* pArg)
|
||||
{
|
||||
OBJECT_DESC* pDesc = static_cast<OBJECT_DESC*>(pArg);
|
||||
|
||||
m_strModelPrototypeTag = pDesc->pModelPrototypeTag;
|
||||
|
||||
if (FAILED(__super::Initialize(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Ready_Components()))
|
||||
return E_FAIL;
|
||||
|
||||
m_pModelCom->Set_AnimationIndex(0);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CMonster::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void CMonster::Update(_float fTimeDelta)
|
||||
{
|
||||
m_pModelCom->Play_Animation(fTimeDelta);
|
||||
}
|
||||
|
||||
void CMonster::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
_float4 vPos;
|
||||
XMStoreFloat4(&vPos, Get_WorldPostion());
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::BLEND, this, vPos, 20.f);
|
||||
}
|
||||
|
||||
HRESULT CMonster::Render()
|
||||
{
|
||||
if (FAILED(Bind_ShaderResources())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
_uint iNumMeshes = m_pModelCom->Get_NumMeshes();
|
||||
|
||||
for (_uint i = 0; i < iNumMeshes; i++)
|
||||
{
|
||||
if (FAILED(m_pModelCom->Bind_BoneMatrices(i, m_pShaderCom, "g_BoneMatrices"))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom, "g_DiffuseTexture", aiTextureType_DIFFUSE, 0))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom, "g_NormalTexture", aiTextureType_NORMALS, 0))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_ANIM::DEFAULT)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pModelCom->Render(i))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CMonster::Ready_Components()
|
||||
{
|
||||
__super::Ready_Components(nullptr);
|
||||
|
||||
/* Com_Model */
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, m_strModelPrototypeTag,
|
||||
reinterpret_cast<CComponent**>(&m_pModelCom))))
|
||||
return E_FAIL;
|
||||
|
||||
/* Com_Shader */
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_ANIMMESH,
|
||||
reinterpret_cast<CComponent**>(&m_pShaderCom))))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CMonster::Bind_ShaderResources()
|
||||
{
|
||||
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CMonster* CMonster::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CMonster* pInstance = new CMonster(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CMonster");
|
||||
Safe_Release(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
CGameObject* CMonster::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CMonster* pInstance = new CMonster(*this);
|
||||
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CMonster");
|
||||
Safe_Release(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
|
||||
|
||||
void CMonster::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
Safe_Release(m_pShaderCom);
|
||||
Safe_Release(m_pModelCom);
|
||||
}
|
||||
|
||||
void CMonster::Describe_Entity()
|
||||
{
|
||||
}
|
||||
@@ -48,7 +48,7 @@ void CMouse_Cursor::Priority_Update(_float fTimeDelta)
|
||||
void CMouse_Cursor::Update(_float fTimeDelta)
|
||||
{
|
||||
m_fTime += fTimeDelta;
|
||||
ShowCursor(false);
|
||||
/*ShowCursor(false);*/
|
||||
}
|
||||
|
||||
void CMouse_Cursor::Late_Update(_float fTimeDelta)
|
||||
@@ -57,7 +57,7 @@ void CMouse_Cursor::Late_Update(_float fTimeDelta)
|
||||
POINT m_pPt{};
|
||||
GetCursorPos(&m_pPt);
|
||||
ScreenToClient(g_hWnd, &m_pPt);
|
||||
_vector MousePos = XMVectorSet(static_cast<_float>(m_pPt.x - m_fWinSizeX * 0.5), static_cast<_float>(-m_pPt.y + m_fWinSizeY * 0.5), 0.f, 1.f);
|
||||
_vector MousePos = XMVectorSet(static_cast<_float>(m_pPt.x - m_fWinSizeX * 0.5), static_cast<_float>(-m_pPt.y + m_fWinSizeY * 0.5) - 10.f, 0.f, 1.f);
|
||||
m_pTransformCom->Set_State(STATE::POSITION, MousePos);
|
||||
|
||||
_float4* vPos = (_float4*)(m_pTransformCom->Get_WorldMatrixPtr()->m[3]);
|
||||
|
||||
@@ -0,0 +1,129 @@
|
||||
#include "pch.h"
|
||||
#include "RootModelPart.h"
|
||||
|
||||
#include "GameInstance.h"
|
||||
#include "DebugCamera.h"
|
||||
#include "ModelParts.h"
|
||||
|
||||
CRootModelPart::CRootModelPart(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CGameObject(pDevice, pContext)
|
||||
{
|
||||
}
|
||||
|
||||
CRootModelPart::CRootModelPart(const CRootModelPart& Prototype)
|
||||
: CGameObject(Prototype)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CRootModelPart::Initialize_Prototype()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CRootModelPart::Initialize(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Initialize(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CRootModelPart::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
}
|
||||
|
||||
void CRootModelPart::Update(_float fTimeDelta)
|
||||
{
|
||||
if (!m_pMainModel)
|
||||
return;
|
||||
|
||||
Update_Anim(fTimeDelta);
|
||||
}
|
||||
|
||||
void CRootModelPart::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CRootModelPart::Render()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CRootModelPart::Update_Anim(_float fTimeDelta)
|
||||
{
|
||||
for (size_t i = 0; i < m_ModelParts.size(); i++)
|
||||
{
|
||||
m_ModelParts[i]->Get_Component<CModel>()->Set_PlayAnim(m_pMainModel->Get_PlayAnim());
|
||||
m_ModelParts[i]->Get_Component<CModel>()->Set_AnimationIndex(m_pMainModel->Get_AnimIndex());
|
||||
m_ModelParts[i]->Get_Component<CModel>()->Play_Animation(fTimeDelta);
|
||||
}
|
||||
}
|
||||
|
||||
void CRootModelPart::Push_ModelParts(CModelParts* ModelParts)
|
||||
{
|
||||
m_ModelParts.push_back(ModelParts);
|
||||
SAFE_ADDREF(ModelParts);
|
||||
for (auto& ModelParts : m_ModelParts)
|
||||
{
|
||||
ModelParts->Get_Component<CModel>()->Set_AnimationIndex(0);
|
||||
ModelParts->Get_Component<CModel>()->Reset_CurrentTrackPosition();
|
||||
}
|
||||
}
|
||||
|
||||
void CRootModelPart::Push_MainModel(CModel* MainModel)
|
||||
{
|
||||
m_pMainModel = MainModel;
|
||||
SAFE_ADDREF(MainModel);
|
||||
}
|
||||
|
||||
HRESULT CRootModelPart::Ready_Components()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CRootModelPart::Bind_ShaderResources()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CRootModelPart* CRootModelPart::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CRootModelPart* pInstance = new CRootModelPart(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CRootModelPart");
|
||||
Safe_Release(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
CGameObject* CRootModelPart::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CRootModelPart* pInstance = new CRootModelPart(*this);
|
||||
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CRootModelPart");
|
||||
Safe_Release(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CRootModelPart::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
for (auto& ModelParts : m_ModelParts)
|
||||
{
|
||||
SAFE_RELEASE(ModelParts);
|
||||
}
|
||||
m_ModelParts.clear();
|
||||
SAFE_RELEASE(m_pMainModel);
|
||||
}
|
||||
|
||||
void CRootModelPart::Describe_Entity()
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
#pragma once
|
||||
|
||||
#include "Editor_Define.h"
|
||||
#include "GameObject.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
class CModel;
|
||||
class CShader;
|
||||
class CRigidBody;
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Editor)
|
||||
|
||||
class CDummy_PhysXBox final : public CGameObject
|
||||
{
|
||||
public:
|
||||
typedef struct tagBoxStartPos
|
||||
{
|
||||
_float3 vPos = {};
|
||||
_float3 vRotRPY = {};
|
||||
}BOXSTARTPOS_DESC;
|
||||
private:
|
||||
CDummy_PhysXBox(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CDummy_PhysXBox(const CDummy_PhysXBox& rhs);
|
||||
virtual ~CDummy_PhysXBox() = default;
|
||||
|
||||
public:
|
||||
virtual void Priority_Update(_float fTimeDelta) override;
|
||||
virtual void Update(_float fTimeDelta) override;
|
||||
virtual void Late_Update(_float fTimeDelta) override;
|
||||
virtual HRESULT Render() override;
|
||||
|
||||
private:
|
||||
CRigidBody* m_pRigidBody = { nullptr };
|
||||
const PSX::PxRigidDynamic* m_pActor = { nullptr };
|
||||
//CModel* m_pModelCom = { nullptr };
|
||||
//CShader* m_pShaderCom = { nullptr };
|
||||
|
||||
|
||||
private:
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
virtual HRESULT Ready_Components(void* pArg) override;
|
||||
virtual HRESULT Bind_ShaderResources() override;
|
||||
|
||||
public:
|
||||
static CDummy_PhysXBox* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
virtual void Free() override;
|
||||
void Describe_Entity() override;
|
||||
};
|
||||
|
||||
NS_END
|
||||
@@ -0,0 +1,53 @@
|
||||
#pragma once
|
||||
|
||||
#include "Editor_Define.h"
|
||||
#include "GameObject.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
class CModel;
|
||||
class CShader;
|
||||
class CRigidBody;
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Editor)
|
||||
|
||||
class CDummy_PhysXMesh final : public CGameObject
|
||||
{
|
||||
public:
|
||||
typedef struct tagBoxStartPos
|
||||
{
|
||||
_float3 vPos = {};
|
||||
_float3 vRotRPY = {};
|
||||
}BOXSTARTPOS_DESC;
|
||||
private:
|
||||
CDummy_PhysXMesh(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CDummy_PhysXMesh(const CDummy_PhysXMesh& rhs);
|
||||
virtual ~CDummy_PhysXMesh() = default;
|
||||
|
||||
public:
|
||||
virtual void Priority_Update(_float fTimeDelta) override;
|
||||
virtual void Update(_float fTimeDelta) override;
|
||||
virtual void Late_Update(_float fTimeDelta) override;
|
||||
virtual HRESULT Render() override;
|
||||
|
||||
private:
|
||||
CRigidBody* m_pRigidBody = { nullptr };
|
||||
const PSX::PxRigidDynamic* m_pActor = { nullptr };
|
||||
//CModel* m_pModelCom = { nullptr };
|
||||
//CShader* m_pShaderCom = { nullptr };
|
||||
|
||||
|
||||
private:
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
virtual HRESULT Ready_Components(void* pArg) override;
|
||||
virtual HRESULT Bind_ShaderResources() override;
|
||||
|
||||
public:
|
||||
static CDummy_PhysXMesh* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
virtual void Free() override;
|
||||
void Describe_Entity() override;
|
||||
};
|
||||
|
||||
NS_END
|
||||
@@ -11,7 +11,7 @@ namespace Editor
|
||||
const unsigned int g_iWinSizeX = 1920;
|
||||
const unsigned int g_iWinSizeY = 1080;
|
||||
|
||||
enum class LEVEL { STATIC, LOADING, LOGO, LOBY, GAMEPLAY, RESTART, OBJECT, MAP,UI, EFFECT, END };
|
||||
enum class LEVEL { STATIC, LOADING, LOGO, LOBY, GAMEPLAY, RESTART, OBJECT, MAP,UI, EFFECT, PHYSX, END };
|
||||
enum class COLLIDABLEOBJECT { PLAYER, MONSTER, HOSTILE_HITBOX, ALLY_HITBOX, NEUTRAL_HITBOX, ENVIRIONMENT, NPC, ITEM, TRIGGERBOX, REGION, NOCOLLIDE, END };
|
||||
|
||||
enum class SHADER_PASS_ANIM { DEFAULT, SHADOW, CAPTURE, BLUR, END };
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user