'NiSkinInstance'에 해당되는 글 1건

  1. 2008/04/30 NiSkinInstance 클래스?
NiSkinInstance는 NiGeometry객체에서 얻어올 수 있다.
추가적으로 NiGeometry객체는 NiOvject객체를 캐스팅하여 사용할 수 있다.
아래는 NiGeometry의 GetSkinInstance()와 SetSkinInstance()를 통해서 접근할 수 있다.


: NiSkinInstance* GetSkinInstance() const
: void SetSkinInstance(NiSkinInstance* pkSkinInstance)
- Skinning is achieved in Gamebryo by attaching an NiSkinInstance object to an NiGeometry object. These functions provide access to the NiSkinInstance object associated with an NiGeometry object. Unskinned NiGeometry objects have their NiSkinInstance pointer set to NULL. NiGeometry stores its NiSkinInstance reference as a smart pointer. In the current release of Gamebryo, the only classes derived from NiGeometry that support skinning are NiTriShape and NiTriStrips.



겜브리오에서 스키닝 정보는 NiGeometry오브젝트에 NiSkinInstance에 attach되어 있다. 이 함수는 NiGeometry와 연관된 NiSkinInstance오브젝트에 접근할 수 있도록 제공한다.NiSkinInstance정보가 없는 NiGeometry는 NULL포인터로 초기화되어있다. 오로지 NiGeometry의 베이스 클래스를 상속받은 NiTriShape와 NiTriStrips가 스키닝 될 수 있도록 도와준다.

Trackback Address :: http://daylogs.tistory.com/trackback/12

댓글을 달아 주세요