Example #1
0
        /// <summary>
        /// Retourne la taille en octet d'un sommet
        /// </summary>
        public static int Size(VertexTypeD11 type)
        {
            switch (type)
            {
            case VertexTypeD11.COLOR_VERTEX:
                return(ColoredVertex.GetSize());

            case VertexTypeD11.STANDARD_VERTEX:
                return(StandardVertex.GetSize());
            }
            return(-1);
        }
Example #2
0
        // Public

        // Static Methods

        /// <summary>
        ///  Retourne les informations concernant le type sommet nécessaire à DirectX
        /// </summary>
        public static InputElement[] Infos(VertexTypeD11 type)
        {
            switch (type)
            {
            case VertexTypeD11.COLOR_VERTEX:
                return(ColoredVertex.GetInfos());

            case VertexTypeD11.STANDARD_VERTEX:
                return(StandardVertex.GetInfos());
            }

            return(null);
        }