Ejemplo n.º 1
0
 public BatchBillboardPrimitive(GraphicsDevice device,
                                Texture2D spriteSheet,
                                int frameWidth,
                                int frameHeight,
                                Point frame,
                                float width, float height, bool flipped, List <Matrix> relativeTransforms, List <Color> tints, List <Color> vertColors)
 {
     RelativeTransforms = relativeTransforms;
     UVs        = new BillboardPrimitive.BoardTextureCoords(spriteSheet.Width, spriteSheet.Height, frameWidth, frameHeight, frame, flipped);
     Width      = width;
     Tints      = tints;
     VertColors = vertColors;
     Height     = height;
     CreateVerticies(Color.White);
     Texture = spriteSheet;
 }
Ejemplo n.º 2
0
 public BatchBillboardPrimitive(GraphicsDevice device,
     Texture2D spriteSheet,
     int frameWidth,
     int frameHeight,
     Point frame,
     float width, float height, bool flipped, List<Matrix> relativeTransforms, List<Color> tints)
 {
     RelativeTransforms = relativeTransforms;
     UVs = new BillboardPrimitive.BoardTextureCoords(spriteSheet.Width, spriteSheet.Height, frameWidth, frameHeight, frame, flipped);
     Width = width;
     Tints = tints;
     Height = height;
     CreateVerticies(Color.White);
     ResetBuffer(device);
     Texture = spriteSheet;
 }