コード例 #1
0
ファイル: GraphicsControl.cs プロジェクト: vazgriz/OpenGL.Net
        /// <summary>
        /// Construct a GraphicsControlEventArgs.
        /// </summary>
        /// <param name="ctx">
        /// The <see cref="GraphicsContext"/> used for the <see cref="GraphicsControl"/>.
        /// </param>
        /// <param name="framebuffer">
        /// The <see cref="GraphicsSurface"/> displaying the rendering result.
        /// </param>
        public GraphicsControlEventArgs(GraphicsContext ctx, GraphicsSurface framebuffer)
        {
            if (ctx == null)
            {
                throw new ArgumentNullException("ctx");
            }
            if (framebuffer == null)
            {
                throw new ArgumentNullException("framebuffer");
            }

            Context     = ctx;
            Framebuffer = framebuffer;
        }
コード例 #2
0
		/// <summary>
		/// Construct a GraphicsControlEventArgs.
		/// </summary>
		/// <param name="ctx">
		/// The <see cref="GraphicsContext"/> used for the <see cref="GraphicsControl"/>.
		/// </param>
		/// <param name="framebuffer">
		/// The <see cref="GraphicsSurface"/> displaying the rendering result.
		/// </param>
		public GraphicsControlEventArgs(GraphicsContext ctx, GraphicsSurface framebuffer)
		{
			if (ctx == null)
				throw new ArgumentNullException("ctx");
			if (framebuffer == null)
				throw new ArgumentNullException("framebuffer");

			Context = ctx;
			Framebuffer = framebuffer;
		}