private void createLetterG(PersonalArrayList<VertexPositionColor> i_Vertices)
 {
     i_Vertices.Add(new VertexPositionColor(new Vector3(3, 12, -5.01f), Color.Black));
     i_Vertices.Add(new VertexPositionColor(new Vector3(3, 14, -5.01f), Color.Black));
     i_Vertices.Add(new VertexPositionColor(new Vector3(-3, 14, -5.01f), Color.Black));
     i_Vertices.Add(new VertexPositionColor(new Vector3(3, 12, -5.01f), Color.Black));
     i_Vertices.Add(new VertexPositionColor(new Vector3(-3, 14, -5.01f), Color.Black));
     i_Vertices.Add(new VertexPositionColor(new Vector3(-3, 12, -5.01f), Color.Black));
     i_Vertices.Add(new VertexPositionColor(new Vector3(-3, 12, -5.01f), Color.Black));
     i_Vertices.Add(new VertexPositionColor(new Vector3(-1, 6, -5.01f), Color.Black));
     i_Vertices.Add(new VertexPositionColor(new Vector3(-1, 12, -5.01f), Color.Black));
     i_Vertices.Add(new VertexPositionColor(new Vector3(-3, 12, -5.01f), Color.Black));
     i_Vertices.Add(new VertexPositionColor(new Vector3(-3, 6, -5.01f), Color.Black));
     i_Vertices.Add(new VertexPositionColor(new Vector3(-1, 6, -5.01f), Color.Black));
     i_Vertices.Add(new VertexPositionColor(new Vector3(-1, 8, -5.01f), Color.Black));
     i_Vertices.Add(new VertexPositionColor(new Vector3(3, 8, -5.01f), Color.Black));
     i_Vertices.Add(new VertexPositionColor(new Vector3(-1, 10, -5.01f), Color.Black));
     i_Vertices.Add(new VertexPositionColor(new Vector3(3, 8, -5.01f), Color.Black));
     i_Vertices.Add(new VertexPositionColor(new Vector3(3, 10, -5.01f), Color.Black));
     i_Vertices.Add(new VertexPositionColor(new Vector3(-1, 10, -5.01f), Color.Black));
     i_Vertices.Add(new VertexPositionColor(new Vector3(3, 8, -5.01f), Color.Black));
     i_Vertices.Add(new VertexPositionColor(new Vector3(1, 8, -5.01f), Color.Black));
     i_Vertices.Add(new VertexPositionColor(new Vector3(3, 6, -5.01f), Color.Black));
     i_Vertices.Add(new VertexPositionColor(new Vector3(3, 6, -5.01f), Color.Black));
     i_Vertices.Add(new VertexPositionColor(new Vector3(1, 8, -5.01f), Color.Black));
     i_Vertices.Add(new VertexPositionColor(new Vector3(1, 6, -5.01f), Color.Black));
 }
        protected override void LoadContent()
        {
            base.LoadContent();

            BodyPrimitiveType = PrimitiveType.TriangleList;
            PersonalArrayList<short> indicies = new PersonalArrayList<short>(24);
            indicies.Add(0, 1, 2, 1, 3, 2, 2, 3, 4, 4, 3, 5, 4, 5, 6, 6, 5, 7, 6, 7, 8, 8, 7, 9);
            BodyIndicies = new IndexBuffer(this.GraphicsDevice, IndexElementSize.SixteenBits, indicies.Length, BufferUsage.WriteOnly);
            BodyIndicies.SetData(indicies.ToArray());
        }
        protected override void LoadContent()
        {
            base.LoadContent();

            BodyEffect.VertexColorEnabled = true;
            BodyPrimitiveType = PrimitiveType.TriangleList;
            PersonalArrayList<VertexPositionColor> vertices = new PersonalArrayList<VertexPositionColor>(114);

            vertices.Add(new VertexPositionColor(new Vector3(-5, 5, 5), Color.Blue));
            vertices.Add(new VertexPositionColor(new Vector3(-5, 15, 5), Color.Blue));
            vertices.Add(new VertexPositionColor(new Vector3(5, 5, 5), Color.Blue));

            vertices.Add(new VertexPositionColor(new Vector3(5, 5, 5), Color.Blue));
            vertices.Add(new VertexPositionColor(new Vector3(-5, 15, 5), Color.Blue));
            vertices.Add(new VertexPositionColor(new Vector3(5, 15, 5), Color.Blue));

            vertices.Add(new VertexPositionColor(new Vector3(5, 5, 5), Color.Red));
            vertices.Add(new VertexPositionColor(new Vector3(5, 15, 5), Color.Red));
            vertices.Add(new VertexPositionColor(new Vector3(5, 5, -5), Color.Red));

            vertices.Add(new VertexPositionColor(new Vector3(5, 5, -5), Color.Red));
            vertices.Add(new VertexPositionColor(new Vector3(5, 15, 5), Color.Red));
            vertices.Add(new VertexPositionColor(new Vector3(5, 15, -5), Color.Red));

            vertices.Add(new VertexPositionColor(new Vector3(5, 5, -5), new Color(76, 255, 0)));
            vertices.Add(new VertexPositionColor(new Vector3(5, 15, -5), new Color(76, 255, 0)));
            vertices.Add(new VertexPositionColor(new Vector3(-5, 15, -5), new Color(76, 255, 0)));

            vertices.Add(new VertexPositionColor(new Vector3(5, 5, -5), new Color(76, 255, 0)));
            vertices.Add(new VertexPositionColor(new Vector3(-5, 15, -5), new Color(76, 255, 0)));
            vertices.Add(new VertexPositionColor(new Vector3(-5, 5, -5), new Color(76, 255, 0)));

            vertices.Add(new VertexPositionColor(new Vector3(-5, 5, -5), Color.Yellow));
            vertices.Add(new VertexPositionColor(new Vector3(-5, 15, -5), Color.Yellow));
            vertices.Add(new VertexPositionColor(new Vector3(-5, 5, 5), Color.Yellow));

            vertices.Add(new VertexPositionColor(new Vector3(-5, 5, 5), Color.Yellow));
            vertices.Add(new VertexPositionColor(new Vector3(-5, 15, -5), Color.Yellow));
            vertices.Add(new VertexPositionColor(new Vector3(-5, 15, 5), Color.Yellow));

            createLetterP(vertices);
            createLetterH(vertices);
            createLetterG(vertices);
            createLetterN(vertices);

            BodyBuffer = new VertexBuffer(this.GraphicsDevice, typeof(VertexPositionColor), vertices.Length, BufferUsage.WriteOnly);
            BodyBuffer.SetData(vertices.ToArray(), 0, vertices.Length);
            BodyPrimitiveCount = vertices.Length / 3;
        }
        protected override void LoadContent()
        {
            base.LoadContent();

            Texture2D texture = Game.Content.Load<Texture2D>(@"Textures\Body");
            BodyEffect.Texture = texture;
            BodyEffect.TextureEnabled = true;
            PersonalArrayList<VertexPositionTexture> verticies = new PersonalArrayList<VertexPositionTexture>(10);
            verticies.Add(new VertexPositionTexture(new Vector3(-5, 5, 5), new Vector2(0, 1)));
            verticies.Add(new VertexPositionTexture(new Vector3(-5, 15, 5), new Vector2(0, 0)));
            verticies.Add(new VertexPositionTexture(new Vector3(5, 5, 5), new Vector2(0.25f, 1)));
            verticies.Add(new VertexPositionTexture(new Vector3(5, 15, 5), new Vector2(0.25f, 0)));
            verticies.Add(new VertexPositionTexture(new Vector3(5, 5, -5), new Vector2(0.5f, 1)));
            verticies.Add(new VertexPositionTexture(new Vector3(5, 15, -5), new Vector2(0.5f, 0)));
            verticies.Add(new VertexPositionTexture(new Vector3(-5, 5, -5), new Vector2(0.75f, 1)));
            verticies.Add(new VertexPositionTexture(new Vector3(-5, 15, -5), new Vector2(0.75f, 0)));
            verticies.Add(new VertexPositionTexture(new Vector3(-5, 5, 5), new Vector2(1, 1)));
            verticies.Add(new VertexPositionTexture(new Vector3(-5, 15, 5), new Vector2(1, 0)));
            BodyBuffer = new VertexBuffer(this.GraphicsDevice, typeof(VertexPositionTexture), verticies.Length, BufferUsage.WriteOnly);
            BodyBuffer.SetData(verticies.ToArray(), 0, verticies.Length);
            BodyPrimitiveCount = 8;
        }
 private void createLetterP(PersonalArrayList<VertexPositionColor> i_Vertices)
 {
     i_Vertices.Add(new VertexPositionColor(new Vector3(-3, 12, 5.01f), Color.Black));
     i_Vertices.Add(new VertexPositionColor(new Vector3(-3, 14, 5.01f), Color.Black));
     i_Vertices.Add(new VertexPositionColor(new Vector3(3, 14, 5.01f), Color.Black));
     i_Vertices.Add(new VertexPositionColor(new Vector3(-3, 12, 5.01f), Color.Black));
     i_Vertices.Add(new VertexPositionColor(new Vector3(3, 14, 5.01f), Color.Black));
     i_Vertices.Add(new VertexPositionColor(new Vector3(3, 12, 5.01f), Color.Black));
     i_Vertices.Add(new VertexPositionColor(new Vector3(1, 12, 5.01f), Color.Black));
     i_Vertices.Add(new VertexPositionColor(new Vector3(3, 12, 5.01f), Color.Black));
     i_Vertices.Add(new VertexPositionColor(new Vector3(1, 6, 5.01f), Color.Black));
     i_Vertices.Add(new VertexPositionColor(new Vector3(1, 6, 5.01f), Color.Black));
     i_Vertices.Add(new VertexPositionColor(new Vector3(3, 12, 5.01f), Color.Black));
     i_Vertices.Add(new VertexPositionColor(new Vector3(3, 6, 5.01f), Color.Black));
     i_Vertices.Add(new VertexPositionColor(new Vector3(-3, 6, 5.01f), Color.Black));
     i_Vertices.Add(new VertexPositionColor(new Vector3(1, 8, 5.01f), Color.Black));
     i_Vertices.Add(new VertexPositionColor(new Vector3(1, 6, 5.01f), Color.Black));
     i_Vertices.Add(new VertexPositionColor(new Vector3(-3, 6, 5.01f), Color.Black));
     i_Vertices.Add(new VertexPositionColor(new Vector3(-3, 8, 5.01f), Color.Black));
     i_Vertices.Add(new VertexPositionColor(new Vector3(1, 8, 5.01f), Color.Black));
     i_Vertices.Add(new VertexPositionColor(new Vector3(-3, 8, 5.01f), Color.Black));
     i_Vertices.Add(new VertexPositionColor(new Vector3(-3, 10, 5.01f), Color.Black));
     i_Vertices.Add(new VertexPositionColor(new Vector3(-2, 8, 5.01f), Color.Black));
     i_Vertices.Add(new VertexPositionColor(new Vector3(-2, 8, 5.01f), Color.Black));
     i_Vertices.Add(new VertexPositionColor(new Vector3(-3, 10, 5.01f), Color.Black));
     i_Vertices.Add(new VertexPositionColor(new Vector3(-2, 10, 5.01f), Color.Black));
     i_Vertices.Add(new VertexPositionColor(new Vector3(-2, 10, 5.01f), Color.Black));
     i_Vertices.Add(new VertexPositionColor(new Vector3(0, 10, 5.01f), Color.Black));
     i_Vertices.Add(new VertexPositionColor(new Vector3(-2, 9, 5.01f), Color.Black));
     i_Vertices.Add(new VertexPositionColor(new Vector3(-2, 9, 5.01f), Color.Black));
     i_Vertices.Add(new VertexPositionColor(new Vector3(0, 10, 5.01f), Color.Black));
     i_Vertices.Add(new VertexPositionColor(new Vector3(0, 9, 5.01f), Color.Black));
 }
 private void createLetterN(PersonalArrayList<VertexPositionColor> i_Vertices)
 {
     i_Vertices.Add(new VertexPositionColor(new Vector3(-5.01f, 12, -1), Color.Black));
     i_Vertices.Add(new VertexPositionColor(new Vector3(-5.01f, 14, -1), Color.Black));
     i_Vertices.Add(new VertexPositionColor(new Vector3(-5.01f, 14, 3), Color.Black));
     i_Vertices.Add(new VertexPositionColor(new Vector3(-5.01f, 14, 3), Color.Black));
     i_Vertices.Add(new VertexPositionColor(new Vector3(-5.01f, 12, 3), Color.Black));
     i_Vertices.Add(new VertexPositionColor(new Vector3(-5.01f, 12, -1), Color.Black));
     i_Vertices.Add(new VertexPositionColor(new Vector3(-5.01f, 12, 3), Color.Black));
     i_Vertices.Add(new VertexPositionColor(new Vector3(-5.01f, 6, 1), Color.Black));
     i_Vertices.Add(new VertexPositionColor(new Vector3(-5.01f, 12, 1), Color.Black));
     i_Vertices.Add(new VertexPositionColor(new Vector3(-5.01f, 12, 3), Color.Black));
     i_Vertices.Add(new VertexPositionColor(new Vector3(-5.01f, 6, 3), Color.Black));
     i_Vertices.Add(new VertexPositionColor(new Vector3(-5.01f, 6, 1), Color.Black));
     i_Vertices.Add(new VertexPositionColor(new Vector3(-5.01f, 6, 1), Color.Black));
     i_Vertices.Add(new VertexPositionColor(new Vector3(-5.01f, 6, -3), Color.Black));
     i_Vertices.Add(new VertexPositionColor(new Vector3(-5.01f, 8, 1), Color.Black));
     i_Vertices.Add(new VertexPositionColor(new Vector3(-5.01f, 6, -3), Color.Black));
     i_Vertices.Add(new VertexPositionColor(new Vector3(-5.01f, 8, -3), Color.Black));
     i_Vertices.Add(new VertexPositionColor(new Vector3(-5.01f, 8, 1), Color.Black));
 }
Пример #7
0
        protected override void LoadContent()
        {
            base.LoadContent();

            m_BodyEffect = new BasicEffect(this.GraphicsDevice);
            BasicEffect.VertexColorEnabled = true;
            RotationOrder = eRotationOrder.YXZ;
            m_InputManager = Game.Services.GetService(typeof(IInputManager)) as IInputManager;
            PersonalArrayList<VertexPositionColor> vertices = new PersonalArrayList<VertexPositionColor>(48);
            vertices.Add(new VertexPositionColor(Vector3.Zero, Color.White));
            vertices.Add(new VertexPositionColor(new Vector3(-5, 5, 5), Color.Gray));
            vertices.Add(new VertexPositionColor(new Vector3(5, 5, 5), Color.Gray));
            vertices.Add(new VertexPositionColor(Vector3.Zero, Color.White));
            vertices.Add(new VertexPositionColor(new Vector3(5, 5, 5), Color.Gray));
            vertices.Add(new VertexPositionColor(new Vector3(5, 5, -5), Color.Gray));
            vertices.Add(new VertexPositionColor(Vector3.Zero, Color.White));
            vertices.Add(new VertexPositionColor(new Vector3(5, 5, -5), Color.Gray));
            vertices.Add(new VertexPositionColor(new Vector3(-5, 5, -5), Color.Gray));
            vertices.Add(new VertexPositionColor(Vector3.Zero, Color.White));
            vertices.Add(new VertexPositionColor(new Vector3(-5, 5, -5), Color.Gray));
            vertices.Add(new VertexPositionColor(new Vector3(-5, 5, 5), Color.Gray));
            vertices.Add(new VertexPositionColor(new Vector3(-5, 15, 5), Color.Gray));
            vertices.Add(new VertexPositionColor(new Vector3(-5, 15, -5), Color.Gray));
            vertices.Add(new VertexPositionColor(new Vector3(5, 15, 5), Color.Gray));
            vertices.Add(new VertexPositionColor(new Vector3(5, 15, 5), Color.Gray));
            vertices.Add(new VertexPositionColor(new Vector3(-5, 15, -5), Color.Gray));
            vertices.Add(new VertexPositionColor(new Vector3(5, 15, -5), Color.Gray));
            vertices.Add(new VertexPositionColor(new Vector3(-1, 15, 1), HandleColor));
            vertices.Add(new VertexPositionColor(new Vector3(-1, 20, 1), HandleColor));
            vertices.Add(new VertexPositionColor(new Vector3(1, 15, 1), HandleColor));
            vertices.Add(new VertexPositionColor(new Vector3(1, 15, 1), HandleColor));
            vertices.Add(new VertexPositionColor(new Vector3(-1, 20, 1), HandleColor));
            vertices.Add(new VertexPositionColor(new Vector3(1, 20, 1), HandleColor));
            vertices.Add(new VertexPositionColor(new Vector3(1, 15, 1), HandleColor));
            vertices.Add(new VertexPositionColor(new Vector3(1, 20, 1), HandleColor));
            vertices.Add(new VertexPositionColor(new Vector3(1, 15, -1), HandleColor));
            vertices.Add(new VertexPositionColor(new Vector3(1, 15, -1), HandleColor));
            vertices.Add(new VertexPositionColor(new Vector3(1, 20, 1), HandleColor));
            vertices.Add(new VertexPositionColor(new Vector3(1, 20, -1), HandleColor));
            vertices.Add(new VertexPositionColor(new Vector3(1, 15, -1), HandleColor));
            vertices.Add(new VertexPositionColor(new Vector3(1, 20, -1), HandleColor));
            vertices.Add(new VertexPositionColor(new Vector3(-1, 20, -1), HandleColor));
            vertices.Add(new VertexPositionColor(new Vector3(1, 15, -1), HandleColor));
            vertices.Add(new VertexPositionColor(new Vector3(-1, 20, -1), HandleColor));
            vertices.Add(new VertexPositionColor(new Vector3(-1, 15, -1), HandleColor));
            vertices.Add(new VertexPositionColor(new Vector3(-1, 15, 1), HandleColor));
            vertices.Add(new VertexPositionColor(new Vector3(-1, 15, -1), HandleColor));
            vertices.Add(new VertexPositionColor(new Vector3(-1, 20, -1), HandleColor));
            vertices.Add(new VertexPositionColor(new Vector3(-1, 15, 1), HandleColor));
            vertices.Add(new VertexPositionColor(new Vector3(-1, 20, -1), HandleColor));
            vertices.Add(new VertexPositionColor(new Vector3(-1, 20, 1), HandleColor));
            vertices.Add(new VertexPositionColor(new Vector3(1, 20, 1), HandleColor));
            vertices.Add(new VertexPositionColor(new Vector3(-1, 20, 1), HandleColor));
            vertices.Add(new VertexPositionColor(new Vector3(-1, 20, -1), HandleColor));
            vertices.Add(new VertexPositionColor(new Vector3(1, 20, 1), HandleColor));
            vertices.Add(new VertexPositionColor(new Vector3(-1, 20, -1), HandleColor));
            vertices.Add(new VertexPositionColor(new Vector3(1, 20, -1), HandleColor));

            m_SevivonBuffer = new VertexBuffer(this.GraphicsDevice, typeof(VertexPositionColor), vertices.Length, BufferUsage.WriteOnly);
            m_SevivonBuffer.SetData(vertices.ToArray(), 0, vertices.Length);
        }