public abstract void BufferStorage <T0>([Flow(FlowDirection.In)] ARB target, [Flow(FlowDirection.In)] UIntPtr size, [Count(Parameter = "size"), Flow(FlowDirection.In)] Span <T0> data, [Flow(FlowDirection.In)] uint flags) where T0 : unmanaged;
public partial void ReadnPixels <T0>([Flow(FlowDirection.In)] int x, [Flow(FlowDirection.In)] int y, [Flow(FlowDirection.In)] uint width, [Flow(FlowDirection.In)] uint height, [Flow(FlowDirection.In)] ARB format, [Flow(FlowDirection.In)] PixelType type, [Flow(FlowDirection.In)] uint bufSize, [Count(Parameter = "bufSize"), Flow(FlowDirection.Out)] out T0 data) where T0 : unmanaged;
public partial void BindTransformFeedback([Flow(FlowDirection.In)] ARB target, [Flow(FlowDirection.In)] uint id);
/// <summary> /// To be added. /// </summary> /// <param name="target"> /// To be added. /// </param> /// <param name="size"> /// To be added. /// </param> /// <param name="data"> /// To be added. /// This parameter's element count is taken from size. /// </param> /// <param name="flags"> /// To be added. /// </param> public unsafe void BufferStorage <T0>([Flow(FlowDirection.In)] ARB target, [Flow(FlowDirection.In)] uint size, [Count(Parameter = "size"), Flow(FlowDirection.In)] Span <T0> data, [Flow(FlowDirection.In)] uint flags) where T0 : unmanaged { // IntPtrOverloader BufferStorage(target, new UIntPtr(size), data, flags); }
public abstract void ClipControl([Flow(FlowDirection.In)] ARB origin, [Flow(FlowDirection.In)] ARB depth);
public partial void ClearBufferData <T0>([Flow(FlowDirection.In)] ARB target, [Flow(FlowDirection.In)] ARB internalformat, [Flow(FlowDirection.In)] ARB format, [Flow(FlowDirection.In)] ARB type, [Count(Computed = "format, type"), Flow(FlowDirection.In)] in T0 data) where T0 : unmanaged;
public partial void CopyBufferSubData([Flow(FlowDirection.In)] CopyBufferSubDataTarget readTarget, [Flow(FlowDirection.In)] ARB writeTarget, [Flow(FlowDirection.In)] IntPtr readOffset, [Flow(FlowDirection.In)] IntPtr writeOffset, [Flow(FlowDirection.In)] UIntPtr size);
public abstract void FramebufferSampleLocations([Flow(FlowDirection.In)] ARB target, [Flow(FlowDirection.In)] uint start, [Flow(FlowDirection.In)] uint count, [Flow(FlowDirection.In)] Span <float> v);
public unsafe partial void *MapBufferRange([Flow(FlowDirection.In)] ARB target, [Flow(FlowDirection.In)] nint offset, [Flow(FlowDirection.In)] nuint length, [Flow(FlowDirection.In)] MapBufferAccessMask access);
public static unsafe void MultiDrawElementsIndirectCount <T0>(this ArbIndirectParameters thisApi, [Flow(FlowDirection.In)] PrimitiveType mode, [Flow(FlowDirection.In)] ARB type, [Flow(FlowDirection.In)] ReadOnlySpan <T0> indirect, [Flow(FlowDirection.In)] nint drawcount, [Flow(FlowDirection.In)] uint maxdrawcount, [Flow(FlowDirection.In)] uint stride) where T0 : unmanaged { // SpanOverloader thisApi.MultiDrawElementsIndirectCount(mode, type, in indirect.GetPinnableReference(), drawcount, maxdrawcount, stride); }
public partial void FlushMappedBufferRange([Flow(FlowDirection.In)] ARB target, [Flow(FlowDirection.In)] nint offset, [Flow(FlowDirection.In)] nuint length);
public partial void QueryCounter([Flow(FlowDirection.In)] uint id, [Flow(FlowDirection.In)] ARB target);
public partial void GetQueryObject([Flow(FlowDirection.In)] uint id, [Flow(FlowDirection.In)] ARB pname, [Count(Computed = "pname"), Flow(FlowDirection.Out)] out ulong @params);
public partial void BindImageTexture([Flow(FlowDirection.In)] uint unit, [Flow(FlowDirection.In)] uint texture, [Flow(FlowDirection.In)] int level, [Flow(FlowDirection.In)] Boolean layered, [Flow(FlowDirection.In)] int layer, [Flow(FlowDirection.In)] BufferAccessARB access, [Flow(FlowDirection.In)] ARB format);
public abstract void BlendEquation([Flow(FlowDirection.In)] uint buf, [Flow(FlowDirection.In)] ARB mode);
public abstract unsafe void FramebufferSampleLocations([Flow(FlowDirection.In)] ARB target, [Flow(FlowDirection.In)] uint start, [Flow(FlowDirection.In)] uint count, [Flow(FlowDirection.In)] float *v);
public abstract void BlendEquationSeparate([Flow(FlowDirection.In)] uint buf, [Flow(FlowDirection.In)] ARB modeRGB, [Flow(FlowDirection.In)] ARB modeAlpha);
public abstract void GetInternalformat([Flow(FlowDirection.In)] ARB target, [Flow(FlowDirection.In)] ARB internalformat, [Flow(FlowDirection.In)] ARB pname, [Flow(FlowDirection.In)] uint count, [Count(Parameter = "count"), Flow(FlowDirection.Out)] Span <int> @params);
public abstract void BlendFunc([Flow(FlowDirection.In)] uint buf, [Flow(FlowDirection.In)] ARB src, [Flow(FlowDirection.In)] ARB dst);
public unsafe partial void ClearBufferData([Flow(FlowDirection.In)] ARB target, [Flow(FlowDirection.In)] ARB internalformat, [Flow(FlowDirection.In)] ARB format, [Flow(FlowDirection.In)] ARB type, [Count(Computed = "format, type"), Flow(FlowDirection.In)] void *data);
public abstract void BlendFuncSeparate([Flow(FlowDirection.In)] uint buf, [Flow(FlowDirection.In)] ARB srcRGB, [Flow(FlowDirection.In)] ARB dstRGB, [Flow(FlowDirection.In)] ARB srcAlpha, [Flow(FlowDirection.In)] ARB dstAlpha);
public abstract void CopyImageSubData([Flow(FlowDirection.In)] uint srcName, [Flow(FlowDirection.In)] ARB srcTarget, [Flow(FlowDirection.In)] int srcLevel, [Flow(FlowDirection.In)] int srcX, [Flow(FlowDirection.In)] int srcY, [Flow(FlowDirection.In)] int srcZ, [Flow(FlowDirection.In)] uint dstName, [Flow(FlowDirection.In)] ARB dstTarget, [Flow(FlowDirection.In)] int dstLevel, [Flow(FlowDirection.In)] int dstX, [Flow(FlowDirection.In)] int dstY, [Flow(FlowDirection.In)] int dstZ, [Flow(FlowDirection.In)] uint srcWidth, [Flow(FlowDirection.In)] uint srcHeight, [Flow(FlowDirection.In)] uint srcDepth);
public abstract void PatchParameter([Flow(FlowDirection.In)] ARB pname, [Flow(FlowDirection.In)] int value);
/// <summary> /// To be added. /// </summary> /// <param name="target"> /// To be added. /// </param> /// <param name="size"> /// To be added. /// </param> /// <param name="data"> /// To be added. /// This parameter's element count is taken from size. /// </param> /// <param name="flags"> /// To be added. /// </param> public unsafe void BufferStorage([Flow(FlowDirection.In)] ARB target, [Flow(FlowDirection.In)] uint size, [Count(Parameter = "size"), Flow(FlowDirection.In)] void *data, [Flow(FlowDirection.In)] uint flags) { // IntPtrOverloader BufferStorage(target, new UIntPtr(size), data, flags); }
public abstract void PatchParameter([Flow(FlowDirection.In)] ARB pname, [Count(Computed = "pname"), Flow(FlowDirection.In)] ref float values);
public abstract unsafe void BufferStorage([Flow(FlowDirection.In)] ARB target, [Flow(FlowDirection.In)] UIntPtr size, [Count(Parameter = "size"), Flow(FlowDirection.In)] void *data, [Flow(FlowDirection.In)] uint flags);
public partial void InvalidateFramebuffer([Flow(FlowDirection.In)] ARB target, [Flow(FlowDirection.In)] uint numAttachments, [Count(Parameter = "numAttachments"), Flow(FlowDirection.In)] in ARB attachments);
public unsafe partial void ReadnPixels([Flow(FlowDirection.In)] int x, [Flow(FlowDirection.In)] int y, [Flow(FlowDirection.In)] uint width, [Flow(FlowDirection.In)] uint height, [Flow(FlowDirection.In)] ARB format, [Flow(FlowDirection.In)] PixelType type, [Flow(FlowDirection.In)] uint bufSize, [Count(Parameter = "bufSize"), Flow(FlowDirection.Out)] void *data);
public partial void ProvokingVertex([Flow(FlowDirection.In)] ARB mode);
protected void btnSubmit_Click(object sender, EventArgs e) { if (cbxAgree.Checked) { DataLayer dl = new DataLayer(); if ((ddlMembershipType.SelectedIndex == 1) && (ddlPhysicalGroup.SelectedIndex == 0)) { cvPhysicalGroup.IsValid = false; } else { string sPrice = "9.95"; string sMembershipType = "Online"; if (ddlMembershipType.SelectedIndex == 1) { sPrice = "29.95"; sMembershipType = "Full"; } string sOldMembershipType = dl.GetMembershipStatusBy_Email(User.Identity.Name); if (sOldMembershipType == "Trial") { ////////////////////////////////////////////////////////////////////////////////// // By default, this sample code is designed to post to our test server for // developer accounts: https://test.authorize.net/gateway/transact.dll // for real accounts (even in test mode), please make sure that you are // posting to: https://secure.authorize.net/gateway/transact.dll String post_url = "https://secure.authorize.net/gateway/transact.dll"; Hashtable post_values = new Hashtable(); //the API Login ID and Transaction Key must be replaced with valid values post_values.Add("x_login", "8n3jE77yAPK"); post_values.Add("x_tran_key", "6x7mz7V7Uw6F238P"); post_values.Add("x_delim_data", "TRUE"); post_values.Add("x_delim_char", '|'); post_values.Add("x_relay_response", "FALSE"); post_values.Add("x_type", "AUTH_CAPTURE"); post_values.Add("x_method", "CC"); post_values.Add("x_card_num", tbxBillingCreditCard.Text); post_values.Add("x_exp_date", ddlBillingExpirationMonth.SelectedValue.PadLeft(2, '0') + ddlBillingExpirationYear.SelectedValue.Remove(0, 2)); post_values.Add("x_amount", sPrice); post_values.Add("x_description", "ReferralNetworX.com Membership"); post_values.Add("x_first_name", tbxBillingFirstName.Text); post_values.Add("x_last_name", tbxBillingLastName.Text); post_values.Add("x_address", tbxBillingAddress.Text + " " + tbxBillingCity.Text); post_values.Add("x_state", ddlBillingState.SelectedValue); post_values.Add("x_zip", tbxBillingZip.Text); // Additional fields can be added here as outlined in the AIM integration // guide at: http://developer.authorize.net // This section takes the input fields and converts them to the proper format // for an http post. For example: "x_login=username&x_tran_key=a1B2c3D4" String post_string = ""; foreach (DictionaryEntry field in post_values) { post_string += field.Key + "=" + field.Value + "&"; } post_string = post_string.TrimEnd('&'); // create an HttpWebRequest object to communicate with Authorize.net HttpWebRequest objRequest = (HttpWebRequest)WebRequest.Create(post_url); objRequest.Method = "POST"; objRequest.ContentLength = post_string.Length; objRequest.ContentType = "application/x-www-form-urlencoded"; // post data is sent as a stream StreamWriter myWriter = null; myWriter = new StreamWriter(objRequest.GetRequestStream()); myWriter.Write(post_string); myWriter.Close(); // returned values are returned as a stream, then read into a string String post_response; HttpWebResponse objResponse = (HttpWebResponse)objRequest.GetResponse(); using (StreamReader responseStream = new StreamReader(objResponse.GetResponseStream())) { post_response = responseStream.ReadToEnd(); responseStream.Close(); } // the response string is broken into an array // The split character specified here must match the delimiting character specified above String[] response_array = post_response.Split('|'); //////////////////////////////////////////////////////////////////////////////// DateTime dtNextBillDate = DateTime.Now; string sSubscriptionID = "Free"; if (response_array[0] == "1") { dtNextBillDate = DateTime.Now.AddMonths(1); ARB arb = new ARB(); sSubscriptionID = arb.CreateSubscription(tbxBillingCreditCard.Text, ddlBillingExpirationYear.SelectedValue + "-" + ddlBillingExpirationMonth.SelectedValue, tbxBillingFirstName.Text, tbxBillingLastName.Text, User.Identity.Name, sPrice, dtNextBillDate); dl.UpgradeMembership(User.Identity.Name, sSubscriptionID, sMembershipType); } else if (response_array[0] == "2") { CustomValidator3.IsValid = false; } else if (response_array[0] == "3") { CustomValidator3.ErrorMessage = "There was an error in processing your transaction.<br />" + response_array[3]; CustomValidator3.IsValid = false; } else if (response_array[0] == "4") { CustomValidator3.ErrorMessage = "Held for review by Authorize.net."; CustomValidator3.IsValid = false; } upgradeform.Visible = false; receiptform.Visible = true; customernextbilldate.InnerText = dtNextBillDate.ToString("D"); customernextbilldate2.InnerText = dtNextBillDate.ToString("D"); customername.InnerText = tbxBillingLastName.Text + ", " + tbxBillingFirstName.Text; customersubscriptionid.InnerText = sSubscriptionID; customeraddress.InnerText = tbxBillingAddress.Text; customercity.InnerText = tbxBillingCity.Text; customerstate.InnerText = ddlBillingState.SelectedValue; customerzip.InnerText = tbxBillingZip.Text; customerlast4.InnerText = tbxBillingCreditCard.Text.Remove(0, tbxBillingCreditCard.Text.Length - 4); customerexpiration.InnerText = ddlBillingExpirationMonth.SelectedValue.PadLeft(2, '0') + "/" + ddlBillingExpirationYear.SelectedValue; receiptprice.InnerText = sPrice; } else { string sSubscriptionID = dl.GetSubscriptionIDBy_Email(User.Identity.Name); ARB arb = new ARB(); bool bSubscriptionComplete = arb.UpdateSubscription(sSubscriptionID, sPrice); if (bSubscriptionComplete) { dl.UpgradeMembership(User.Identity.Name, sSubscriptionID, sMembershipType); Session["resultColor"] = "#007700"; Session["resultTitle"] = "Subscription Updated"; Session["resultMessage"] = "Thank you for upgrading, we hope you enjoy your new subscription!"; Session["resultReturnURL"] = "Default.aspx"; Response.Redirect("Result.aspx"); } else { Session["resultColor"] = "#ff0000"; Session["resultTitle"] = "Error"; Session["resultMessage"] = "Something went wrong, your subscription was not updated."; Session["resultReturnURL"] = "Default.aspx"; Response.Redirect("Result.aspx"); } } SmtpMail.SmtpServer = "relay-hosting.secureserver.net"; MailMessage mm; mm = new MailMessage(); mm.BodyFormat = MailFormat.Html; mm.To = "[email protected];[email protected]"; mm.From = "*****@*****.**"; mm.Subject = "Someone upgraded their membership on ReferralNetworX.com!"; mm.Body = dl.GetFullMemberNameBy_Email(User.Identity.Name) + " upgraded their membership to " + sMembershipType + " status."; SmtpMail.Send(mm); mm = new MailMessage(); mm.BodyFormat = MailFormat.Html; mm.To = User.Identity.Name; mm.From = "*****@*****.**"; mm.Subject = "Thank you for upgrading!"; mm.Body = "We are glad to have your business and we are eager to get to know you! If you did not request a membership upgrade on ReferralNetworX.com please contact us by emailing [email protected]"; SmtpMail.Send(mm); } } else { CustomValidator2.IsValid = false; } }
public partial void BindImageTexture([Flow(FlowDirection.In)] uint unit, [Flow(FlowDirection.In)] uint texture, [Flow(FlowDirection.In)] int level, [Flow(FlowDirection.In)] bool layered, [Flow(FlowDirection.In)] int layer, [Flow(FlowDirection.In)] ARB access, [Flow(FlowDirection.In)] InternalFormat format);