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

            if (handler != null)
            {
                handler(this, args);
            }
        }
示例#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);
 }
示例#3
0
 protected virtual void RaiseLoadContent(GraphicsDeviceEventArgs args)
 {
     var handler = LoadContent;
     if (handler != null)
         handler(this, args);
 }