// BASIC CUBE
        public void AddCube(float width, float length, float height, Vector3 mid_position, Vector3 rotation, string textureFile, Rectangle?sourceRect)
        {
            Obj3D obj = new Obj3D();

            obj.AddCube(mid_position, new Vector3(width, height, length), rotation, textureFile, sourceRect);
            objex.Add(obj);
        }
예제 #2
0
        // Basic Cube
        public void AddCube(float width, float length, float height, Vector3 mid_position, Vector3 rotation, string textureFile, Rectangle?sourceRect)
        {
            Obj3D obj = new Obj3D();

            obj.AddCube(mid_position, new Vector3(width, height, length), rotation, textureFile, sourceRect);
            Console.WriteLine("adding cube with texture " + textureFile);
            objex.Add(obj);
            Console.WriteLine("Added!");
        }