diff --git a/Jusin154_Team3D/Engine/Public/Model.h b/Jusin154_Team3D/Engine/Public/Model.h index 65e05b28f..0398fb078 100644 --- a/Jusin154_Team3D/Engine/Public/Model.h +++ b/Jusin154_Team3D/Engine/Public/Model.h @@ -20,19 +20,19 @@ class ENGINE_DLL CModel final : public CComponent virtual HRESULT Render_Indexed(_uint iMeshIndex, _uint IndexCount, _uint StartIndexLocation, _uint BaseVertexLocation); #pragma endregion #pragma region Animation - void Change_AnimationIndex(_int iAnimationIndex, _bool bIsLoop, _float fLerpDuration, _bool bIgnoreCurrentIndex = false); // 애니메이션을 다른 인덱스로 변경함 - _bool Play_Animation(_float fTimeDelta); // 애니메이션에 델타타임을 넣어줌 - void RefreshAnim(); // 애님을 현재 애님의 초기상태로 되돌림 + void Change_AnimationIndex(_int iAnimationIndex, _bool bIsLoop, _float fLerpDuration, _bool bIgnoreCurrentIndex = false); // �븷�땲硫붿씠�뀡�쓣 �떎瑜� �씤�뜳�뒪濡� 蹂�寃쏀븿 + _bool Play_Animation(_float fTimeDelta); // �븷�땲硫붿씠�뀡�뿉 �뜽�������엫�쓣 �꽔�뼱以� + void RefreshAnim(); // �븷�떂�쓣 �쁽�옱 �븷�떂�쓽 珥덇린�긽�깭濡� �릺�룎由� void Set_AnimationIndex(_uint iIndex, _bool isLoop = true); - void Stop_Animation(); // 애니메이션을 정지 (초기상태로) + void Stop_Animation(); // �븷�땲硫붿씠�뀡�쓣 �젙吏� (珥덇린�긽�깭濡�) _bool IsFinishedAnim() const { return m_bIsFinishedAnim; } _bool IsFinishedLerp() const { return m_bIsFinishedLerp; } _float Get_AnimProgressRatio(); _int Get_AnimProgressPostion(const _char* pAnimChannelName); _float Get_AnimEstimatedDuration(); void Set_AnimProgressPostion(const _char* pChannelName, _uint iPosition); - void Set_AnimPauseState(_bool bValue);// 애님을 현재상태로 정지 - void ReallocateResources(class CTransform* pTransform = nullptr); // 애님 이동의 대상 트랜스폼(이동시켜야할 트랜스폼)을 재지정함 + void Set_AnimPauseState(_bool bValue);// �븷�떂�쓣 �쁽�옱�긽�깭濡� �젙吏� + void ReallocateResources(class CTransform* pTransform = nullptr); // �븷�떂 �씠�룞�쓽 ����긽 �듃�옖�뒪�뤌(�씠�룞�떆耳쒖빞�븷 �듃�옖�뒪�뤌)�쓣 �옱吏��젙�븿 void Set_CurrentTrackPosition(_float TrackPosition); const _char* Get_AnimList(_uint iIndex); size_t Get_AnimSize() { return m_Animations.size(); } @@ -54,7 +54,7 @@ class ENGINE_DLL CModel final : public CComponent const _float4x4* Get_BoneMatrixPtr(const _char* pBoneName) const; _int Get_RootBoneIndex() const { return m_iRootBoneIndex; } void Set_RootBoneIndex(_int iIndex) { m_iRootBoneIndex = iIndex; } -static _int Get_BoneIndex(const _char* pBoneName, vector Bones); // 본의 벡터와 이름을 넘겨주면 인덱스를 넘겨줌 ( n 순회 ) +static _int Get_BoneIndex(const _char* pBoneName, vector Bones); // 蹂몄쓽 踰≫꽣��� �씠由꾩쓣 �꽆寃⑥<硫� �씤�뜳�뒪瑜� �꽆寃⑥쨲 ( n �닚�쉶 ) _int Get_BoneIndex(const _char* pBoneName) const; _matrix Get_BoneMatrix(_uint iBoneIndex); #pragma endregion @@ -74,7 +74,7 @@ static _int Get_BoneIndex(const _char* pBoneName, vector Bones); / HRESULT Ready_Materials_FromFile(const aiScene* pAIScene, const _char* pModelFilePath); HRESULT Ready_Animations(const aiScene* pAIScene); HRESULT Ready_Bones(const aiNode* pAINode, _int iParentIndex); - // 바이너리 + // 諛붿씠�꼫由� _bool SaveAssimpModel(const _char* filename); _int SaveNodeRecursive(const aiNode* pAINode, std::vector& outNodes, _int parentIndex); // @@ -88,49 +88,49 @@ static _int Get_BoneIndex(const _char* pBoneName, vector Bones); / #endif private: - MODEL m_eType = {}; // 모델의 타입 - _float4x4 m_PreTransformMatrix = {}; // 사전에 루트본에 곱해줄 매트릭스 + MODEL m_eType = {}; // 紐⑤뜽�쓽 ����엯 + _float4x4 m_PreTransformMatrix = {}; // �궗�쟾�뿉 猷⑦듃蹂몄뿉 怨깊빐以� 留ㅽ듃由��뒪 - _uint m_iNumMeshes = {}; // 메쉬의 갯수 - vector m_Meshes; // 메쉬의 벡터 - _uint m_iNumPhysXMeshes = {}; // 피직스 메쉬의 갯수 - vector m_TriMeshes = {}; // 피직스 메쉬의 갯수 + _uint m_iNumMeshes = {}; // 硫붿돩�쓽 媛��닔 + vector m_Meshes; // 硫붿돩�쓽 踰≫꽣 + _uint m_iNumPhysXMeshes = {}; // �뵾吏곸뒪 硫붿돩�쓽 媛��닔 + vector m_TriMeshes = {}; // �뵾吏곸뒪 硫붿돩�쓽 媛��닔 - _uint m_iNumMaterials = {}; // 머테리얼의 갯수 - vector m_Materials; // 머테리얼의 벡터 + _uint m_iNumMaterials = {}; // 癒명뀒由ъ뼹�쓽 媛��닔 + vector m_Materials; // 癒명뀒由ъ뼹�쓽 踰≫꽣 - vector m_Bones; // 본의 벡터, 정렬순서는 루트본부터 트리의 마지막 노드까지 + vector m_Bones; // 蹂몄쓽 踰≫꽣, �젙�젹�닚�꽌�뒗 猷⑦듃蹂몃���꽣 �듃由ъ쓽 留덉��留� �끂�뱶源뚯�� - _int m_iCurrentAnimIndex = { -1 }; // 현재 선택된 애니메이션 ( m_Animations의 인덱스 ) - _uint m_iNumAnimations = {}; // 애니메이션의 종류 - _bool m_bIsLoop = { false }; // 루프애니메이션인지 - _bool m_bIsFinishedAnim = { false }; // 대상 애니메이션이 끝났는지 - _bool m_bIsFinishedLerp = { false }; // 럴프 애니메이션이 끝났는지 + _int m_iCurrentAnimIndex = { -1 }; // �쁽�옱 �꽑�깮�맂 �븷�땲硫붿씠�뀡 ( m_Animations�쓽 �씤�뜳�뒪 ) + _uint m_iNumAnimations = {}; // �븷�땲硫붿씠�뀡�쓽 醫낅쪟 + _bool m_bIsLoop = { false }; // 猷⑦봽�븷�땲硫붿씠�뀡�씤吏� + _bool m_bIsFinishedAnim = { false }; // ����긽 �븷�땲硫붿씠�뀡�씠 �걹�궗�뒗吏� + _bool m_bIsFinishedLerp = { false }; // �윺�봽 �븷�땲硫붿씠�뀡�씠 �걹�궗�뒗吏� _bool m_bPlayAnim = { true }; - vector m_Animations; // 애니메이션의 벡터, + vector m_Animations; // �븷�땲硫붿씠�뀡�쓽 踰≫꽣, - class CLerpAnim* m_pLerpAnim = { nullptr }; // 럴프전용 애니메이션 + class CLerpAnim* m_pLerpAnim = { nullptr }; // �윺�봽�쟾�슜 �븷�땲硫붿씠�뀡 - _int m_iRootBoneIndex = { -1 }; // 루트본의 인덱스 - _matrix m_PrevAnimationMatrix = XMMatrixIdentity(); // 루트본의 이전 위치 - _matrix m_DeltaAnimationMatrix = {}; // 루트본의 델타애니메이션 - class CTransform* m_pTransform = { nullptr }; // 모델 대상의 트랜스폼 + _int m_iRootBoneIndex = { -1 }; // 猷⑦듃蹂몄쓽 �씤�뜳�뒪 + _matrix m_PrevAnimationMatrix = XMMatrixIdentity(); // 猷⑦듃蹂몄쓽 �씠�쟾 �쐞移� + _matrix m_DeltaAnimationMatrix = {}; // 猷⑦듃蹂몄쓽 �뜽����븷�땲硫붿씠�뀡 + class CTransform* m_pTransform = { nullptr }; // 紐⑤뜽 ����긽�쓽 �듃�옖�뒪�뤌 - // 바이너리 + // 諛붿씠�꼫由� SaveModel* m_pSaveModel = { nullptr }; list m_SaveModel; // private: - // 바이너리 + // 諛붿씠�꼫由� virtual HRESULT Initialize_Prototype(MODEL eType, const _char* pModelFilePath, _fmatrix PreTransformMatrix); bool LoadData(const _char* filename); // virtual HRESULT Initialize(void* pArg) override; private: - // 바이너리 + // 諛붿씠�꼫由� HRESULT Ready_Meshes(); HRESULT Ready_Materials(const _char* pModelFilePath); HRESULT Ready_Bones(const std::vector& allNodes, _int currentIndex, _int parentIndex); @@ -138,7 +138,7 @@ static _int Get_BoneIndex(const _char* pBoneName, vector Bones); / // public: - // 바이너리 + // 諛붿씠�꼫由� static CModel* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, MODEL eType, const _char* pModelFilePath, _fmatrix PreTransformMatrix = XMMatrixIdentity()); // virtual CComponent* Clone(void* pArg, class CGameObject* pOwner = nullptr); @@ -147,4 +147,4 @@ virtual void Free(); public: void Describe_Entity() override; }; -NS_END \ No newline at end of file +NS_END