Newer
Older
Import / projects / Gameloft / bne_lib / code / Utils / Attachments.h
@John John on 29 Dec 2020 618 bytes bulk import from macbookpro checkouts
#ifndef __BNE_ATTACHMENT_UTILS__
#define __BNE_ATTACHMENT_UTILS__

#include <Graphics/Object.h>

namespace bne
{
  int32_t   GetAttachmentPointIndex(CasualCore::Object* a_pObject, const char* a_attachPointName);

  RKMatrix  GetAttachmentPointLocalTransform(CasualCore::Object* a_pObject, int32_t a_attachIndex);

  inline RKMatrix GetAttachmentPointLocalTransform(CasualCore::Object* a_pObject, const char* a_attachPointName) {
    return GetAttachmentPointLocalTransform(a_pObject, GetAttachmentPointIndex(a_pObject, a_attachPointName));
  }

} // namespace bne

#endif // __BNE_ATTACHMENT_UTILS__