Esempio n. 1
0
        public override void Draw(Textures texture, Vector2R position, Color color, Vector2 scalevect, float rotation, float depth)
        {
            var v = new SpriteVertex(new Vector3(position.X, position.Y, depth), scalevect * 128, rotation, (int)texture, color);

            //Mesh.SetData(ref v);
            pendingVertices.Add(v);
        }
Esempio n. 2
0
        public override void AddPermanentDraw(Textures texture, Vector2R position, Color color, Vector2 scalevect, float rotation, int life)
        {
            var v = new SpriteVertex((Vector3)position, scalevect, rotation, (int)texture, color);

            pendingVertices.Add(v);//TODO:PERMS
        }