public CC3GraphicsContext(GraphicsDeviceManager xnaGraphicsDeviceManager) { _xnaGraphicsDeviceManager = xnaGraphicsDeviceManager; _xnaClearColor = CC3GraphicsContext._defaultXnaClearColor; _clearDepth = CC3GraphicsContext._defaultClearDepth; _clearStencil = CC3GraphicsContext._defaultClearStencil; _viewMatrix = CC3Matrix.CC3MatrixIdentity; _projectionMatrix = CC3Matrix.CC3MatrixIdentity; }
protected virtual void UpdateWorldMatrix() { _worldMatrix = CC3Matrix.CreateTranslationMatrix(this.WorldPosition + this.WorldTranslationChangeNeededToUpdate); }
public CC3Node(CC3Vector worldPosition) : this() { _worldMatrix = CC3Matrix.CreateTranslationMatrix(worldPosition); }
public CC3Node() { _worldTranslationChangeNeededToUpdate = CC3Vector.CC3VectorZero; _worldMatrix = CC3Matrix.CC3MatrixIdentity; }
private void UpdateViewMatrix() { _viewMatrix = CC3Matrix.CreateCameraViewMatrix(this.WorldPosition + this.WorldTranslationChangeNeededToUpdate, _cameraTarget, _cameraRotationChangeRelativeToTargetNeededToUpdate, _cameraUpDirection); _worldMatrix = _viewMatrix.Inverse(); this.FinishedUpdatingViewMatrix(); }