Example #1
0
        protected virtual void RaiseLoadContent(GraphicsDeviceEventArgs args)
        {
            var handler = LoadContent;

            if (handler != null)
            {
                handler(this, args);
            }
        }
Example #2
0
 /// <summary>
 /// Invoked after either control has created its graphics device.
 /// </summary>
 private void OnGraphicsControlLoadContent(object sender, GraphicsDeviceEventArgs e)
 {
     // Create our 3D cube object
     _cube.Initialize(e.GraphicsDevice);
 }
Example #3
0
 protected virtual void RaiseLoadContent(GraphicsDeviceEventArgs args)
 {
     var handler = LoadContent;
     if (handler != null)
         handler(this, args);
 }