Пример #1
0
 /// <summary>
 /// LoadContent will be called once per game and is the place to load
 /// all of your content.
 /// </summary>
 protected override void LoadContent()
 {
     // Create a new SpriteBatch, which can be used to draw textures.
     _spriteBatch   = new SpriteBatch(GraphicsDevice);
     _primBatch     = new PrimitiveBatch(GraphicsDevice);
     _font          = Content.Load <SpriteFont>("Arial");
     _circleTexture = CreateCircle((int)SphereRadius);
 }
Пример #2
0
 public GraphicsContext(GraphicsDevice device, PrimitiveBatch pBatch, SpriteBatch sBatch)
 {
     Device         = device;
     PrimitiveBatch = pBatch;
     SpriteBatch    = sBatch;
 }