// BASIC OBJECTS THAT YOU CAN ADD ------------------------------
        // BASIC FLOOR
        public void AddFloor(float width, float length, Vector3 mid_position, Vector3 rotation, string textureFile, Rectangle?sourceRect)
        {
            Obj3D obj = new Obj3D();

            obj.AddQuad(mid_position, width, length, rotation, textureFile, sourceRect);
            objex.Add(obj);
        }
예제 #2
0
        // ADDING BASIC OBJECTS --------------------------
        // Basic Floor
        public void AddFloor(float width, float length, Vector3 mid_position, Vector3 rotation, string textureFile, Rectangle?sourceRect)
        {
            Obj3D obj = new Obj3D();

            obj.AddQuad(mid_position, width, length, rotation, textureFile, sourceRect);
            Console.WriteLine("adding floor with texture " + textureFile);
            objex.Add(obj);
            Console.WriteLine("Added!");
        }