Ejemplo n.º 1
0
        public static PositionColoredTextured CreatePosRaw(Vector3d pos, double u, double v)
        {
            PositionColoredTextured temp = new PositionColoredTextured();

            temp.Tu = u;
            temp.Tv = v;
            temp.Position = pos;

            return temp;
        }
Ejemplo n.º 2
0
        public static PositionColoredTextured CreatePosSize(Vector3d pos, double u, double v, double width, double height)
        {
            PositionColoredTextured temp = new PositionColoredTextured();

            temp.Tu = u * width;
            temp.Tv = v * height;
            temp.Position = pos;

            return temp;
        }
Ejemplo n.º 3
0
        //
        // Summary:
        //     Initializes a new instance of the Microsoft.DirectX.Direct3D.CustomVertex.PositionTextured
        //     class.
        //
        // Parameters:
        //   pos:
        //     A Microsoft.DirectX.Vector3d object that contains the vertex position.
        //
        //   u:
        //     Floating-point value that represents the Microsoft.DirectX.Direct3D.CustomVertex.PositionTextured.#ctor()
        //     component of the texture coordinate.
        //
        //   v:
        //     Floating-point value that represents the Microsoft.DirectX.Direct3D.CustomVertex.PositionTextured.#ctor()
        //     component of the texture coordinate.
        public static PositionColoredTextured CreatePos(Vector3d pos, double u, double v)
        {
            PositionColoredTextured temp = new PositionColoredTextured();

            temp.Tu = u * Tile.uvMultiple;
            temp.Tv = v * Tile.uvMultiple;
            temp.Position = pos;

            return temp;
        }