public void CreateDeviceDependentResources(DeviceResources resources) { this.deviceResources = resources; this.s_ScanCS.CreateDeviceDependentResources(resources); this.PartitioningMode = PartitioningMode.FractionalEven; this.CreateCSs(); this.CreateCSForPartitioningModes(); this.CreateCSBuffers(); }
protected override void Render() { this.mainGameComponent.ShowTessellated = this.ShowTessellated; this.mainGameComponent.PartitioningMode = this.PartitioningMode; // Get the projection & view matrix from the camera class XMMatrix mWorld = XMMatrix.Identity; XMMatrix mView = this.camera.GetViewMatrix(); XMMatrix mProj = this.camera.GetProjMatrix(); XMMatrix mWorldViewProjection = mWorld * mView * mProj; this.mainGameComponent.WorldViewProjectionMatrix = mWorldViewProjection; this.mainGameComponent.Render(); }