Exemple #1
0
        private void LoadAnimationChain(ImageID imageID) {
            IL.BindImage(imageID);

            //Get total number of images in array (including first)
            int imageCount = IL.ilGetInteger(ILDefines.IL_NUM_IMAGES) + 1;

            //If just one image, we aren't really an animation chain
            if(imageCount > 1) {
                m_animChain.Add(this);
                for(int i = 1; i < imageCount; i++) {
                    ManagedImage image = new ManagedImage(imageID, i);
                    //If the image wasn't valid, don't add it
                    if(image.Faces.Count != 0)
                        m_animChain.Add(image);
                }
            }
        }