Example #1
0
 public BillboardPrimitive(GraphicsDevice device, Texture2D spriteSheet, int frameWidth, int frameHeight, Point frame, float width, float height, Color tint, bool flipped = false)
 {
     UVs    = new BoardTextureCoords(spriteSheet.Width, spriteSheet.Height, frameWidth, frameHeight, frame, flipped);
     Width  = width;
     Height = height;
     CreateVerticies(Color.White, tint);
 }
Example #2
0
 public BillboardPrimitive(GraphicsDevice device, Texture2D spriteSheet, int frameWidth, int frameHeight, Point frame, float width, float height, bool flipped = false)
 {
     UVs = new BoardTextureCoords(spriteSheet.Width, spriteSheet.Height, frameWidth, frameHeight, frame, flipped);
     Width = width;
     Height = height;
     CreateVerticies(Color.White);
     ResetBuffer(device);
 }