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; }
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; }