示例#1
0
        public static unsafe uint GetNumColorChannels(Silk.NET.Assimp.Mesh *mesh)
        {
            var n = 0;

            while (n < AI_MAX_NUMBER_OF_COLOR_SETS && mesh->MColors[n] != null)
            {
                ++n;
            }

            return((uint)n);
        }
示例#2
0
        public static unsafe uint GetNumUVChannels(Silk.NET.Assimp.Mesh *mesh)
        {
            var n = 0;

            while (n < AI_MAX_NUMBER_OF_TEXTURECOORDS && mesh->MTextureCoords[n] != null)
            {
                ++n;
            }

            return((uint)n);
        }