public static int GetNewID(GraphicsInterface gi) { int[] IDs = new int[1]; gi.GenRenderbuffers(1, IDs); return IDs[0]; }