Пример #1
0
        private void LoadSliderJointContent(GraphicsDevice graphicsDevice)
        {
            _sliderJointLineBrush = new LineBrush(_sliderJointLineThickness, _sliderJointColor);
            _sliderJointRectangleBrush = new RectangleBrush(10, 10, _sliderJointColor, _sliderJointColor);

            _sliderJointLineBrush.Load(graphicsDevice);
            _sliderJointRectangleBrush.Load(graphicsDevice);
        }
Пример #2
0
        private void LoadRevoluteJointContent(GraphicsDevice graphicsDevice)
        {
            _revoluteJointLineBrush = new LineBrush(_revoluteJointLineThickness, _revoluteJointColor);
            _revoluteJointRectangleBrush = new RectangleBrush(10, 10, _revoluteJointColor, _revoluteJointColor);

            _revoluteJointLineBrush.Load(graphicsDevice);
            _revoluteJointRectangleBrush.Load(graphicsDevice);
        }
Пример #3
0
        private void LoadSpringContent(GraphicsDevice graphicsDevice)
        {
            _springLineBrush = new LineBrush(_springLineThickness, _springLineColor);
            _springCircleBrush = new CircleBrush(2, _springLineColor, _springLineColor);

            _springLineBrush.Load(graphicsDevice);
            _springCircleBrush.Load(graphicsDevice);
        }
Пример #4
0
 private void LoadCoordinateAxisContent(GraphicsDevice graphicsDevice)
 {
     _coordinateAxisLineBrush = new LineBrush(_coordinateAxisLineThickness, _coordinateAxisColor);
     _coordinateAxisLineBrush.Load(graphicsDevice);
 }
Пример #5
0
 private void LoadAABBContent(GraphicsDevice graphicsDevice)
 {
     //load aabb texture
     _aabbLineBrush = new LineBrush(_aabbLineThickness, _aabbColor);
     _aabbLineBrush.Load(graphicsDevice);
 }
Пример #6
0
 private void LoadEdgeContent(GraphicsDevice graphicsDevice)
 {
     _edgeLineBrush = new LineBrush(_edgeLineThickness, _edgeColor);
     _edgeLineBrush.Load(graphicsDevice);
 }