public LiveElements(PlayerImageRenderer playerImageRenderer, Microsoft.Kinect.Skeleton skeleton, SkeletonPointMap mapMethod, int playerID) { this.playerImageRenderer = playerImageRenderer; this.skeleton = skeleton; this.mapMethod = mapMethod; this.playerID = playerID; }
/// <summary> /// Initializes a new instance of the PaintersAlgorithmRenderer class. /// </summary> /// <param name="game">The related game object.</param> public PaintersAlgorithmRenderer(Game game) : base(game) { this.playerImageRenderer = new PlayerImageRenderer(game); this.cartoonElements = new CartoonElements(game, this.playerImageRenderer.SkeletonToColorMapViewPortCorrection, this.playerImageRenderer); }
/// <summary> /// Initializes a new instance of the CartoonRenderer class. /// </summary> /// <param name="game">The related game object.</param> /// <param name="map">The method used to map the SkeletonPoint to the target space.</param> public CartoonElements(Game game, SkeletonPointMap map, PlayerImageRenderer pir) : base(game) { this.mapMethod = map; this.playerImageRenderer = pir; }