2 using Microsoft.Xna.Framework;
3 using Microsoft.Xna.Framework.Graphics;
5 using System.Collections.Generic;
9 partial class LevelWall : IDisposable
17 public virtual float Alpha => 1.0f;
21 return Body.FixedRotation ?
22 Matrix.CreateTranslation(
new Vector3(ConvertUnits.ToDisplayUnits(
Body.Position), 0.0f)) :
23 Matrix.CreateRotationZ(
Body.Rotation) *
24 Matrix.CreateTranslation(
new Vector3(ConvertUnits.ToDisplayUnits(
Body.Position), 0.0f));
27 public void SetWallVertices(VertexPositionTexture[] wallVertices, VertexPositionTexture[] wallEdgeVertices, Texture2D wallTexture, Texture2D edgeTexture, Color color)
36 List<VertexPositionTexture> wallVertices = CaveGenerator.GenerateWallVertices(triangles,
level.
GenerationParams, zCoord);
38 wallVertices.ToArray(),
39 CaveGenerator.GenerateWallEdgeVertices(
Cells,
level, zCoord).ToArray(),
LevelGenerationParams GenerationParams
List< VoronoiCell > Cells
LevelWallVertexBuffer VertexBuffer
VertexBuffer WallEdgeBuffer
void SetWallVertices(VertexPositionTexture[] wallVertices, VertexPositionTexture[] wallEdgeVertices, Texture2D wallTexture, Texture2D edgeTexture, Color color)
VertexBuffer WallEdgeBuffer