예제 #1
0
        /// <summary> Make a new entry of this type with an optional name </summary>
        public GLAtomicBlock NewAtomicBlock(int bindingindex, string name = null)
        {
            GLAtomicBlock sb = new GLAtomicBlock(bindingindex);

            items[EnsureName(name)] = sb;
            return(sb);
        }
예제 #2
0
 /// <summary> Add this type with an optional name </summary>
 public GLAtomicBlock Add(GLAtomicBlock disp, string name = null)
 {
     System.Diagnostics.Debug.Assert(!items.ContainsValue(disp));
     items.Add(EnsureName(name), disp);
     return(disp);
 }