Diggsey

Members
  • Content count

    0
  • Joined

  • Last visited

Community Reputation

107 Neutral

About Diggsey

  • Rank
    Newbie
  1. Binding D To C

    There's also this rather nice way to bind functions: void bindFunc(alias fptr)() {     fptr = cast(typeof(fptr))binder(__traits(identifier, fptr).ptr); } Can be used like so:   bindFunc!(glBlendColor); bindFunc!(glBlendEquation); bindFunc!(glBlendEquationi); bindFunc!(glBlendEquationSeparatei);