コード例 #1
0
        /// <summary>
        /// Delete this ShaderInclude.
        /// </summary>
        /// <param name="ctx">
        /// A <see cref="GraphicsContext"/> used for deleting this object.
        /// </param>
        public override void Delete(GraphicsContext ctx)
        {
            if (ctx == null)
            {
                throw new ArgumentNullException("ctx");
            }

            // Base implementation
            base.Delete(ctx);
            // Delete named string
            if (ctx.Caps.GlExtensions.ShadingLanguageInclude_ARB)
            {
                Gl.DeleteNamedStringARB(-1, IncludePath);
            }
        }